Board index FlightGear Support Hardware

Thrustmaster T.Flight Hotas One file xml

Joysticks, pedals, monitors.

Thrustmaster T.Flight Hotas One file xml

Postby gabfus » Sat May 08, 2021 6:10 pm

Hello, I think that base configuration of hotas one is wrond, it is more sensible and the fly is hard.

You have a best xml configuration of this joystick?

thanks
gabfus
 
Posts: 3
Joined: Sat May 08, 2021 6:08 pm

Re: Thrustmaster T.Flight Hotas One file xml

Postby wkitty42 » Sat May 08, 2021 8:49 pm

wrong how? you can adjust it in the sim... there's a dialog for it if you need/want to change some settings... more than that and you have to manually edit the file to add your adjustments...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Thrustmaster T.Flight Hotas One file xml

Postby gabfus » Wed Jun 02, 2021 3:08 pm

Hello
someone use this joystick "thrustmaster hotas one" and can pass me the xml configuration?
So you have a basic setup?

this is mine (but I can't control the cessna c172p,I think that is more sensible on each axis)

Code: Select all
<?xml version="1.0"?>

<PropertyList>
  <name type="string">Thrustmaster T.Flight Hotas One</name>
  <axis>
    <desc type="string">Aileron</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/aileron</property>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
      <power type="double">1</power>
    </binding>
  </axis>
  <axis n="1">
    <desc type="string">Elevator</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/elevator</property>
      <factor type="double">-1</factor>
      <offset type="double">0</offset>
      <power type="double">1</power>
    </binding>
  </axis>
  <axis n="2">
    <desc type="string">Throttle (all)</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.throttleAxis();</script>
    </binding>
  </axis>
  <axis n="5">
    <desc type="string">Rudder</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/rudder</property>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
      <power type="double">1</power>
    </binding>
  </axis>
  <axis n="6">
    <desc type="string">Hat Switch: View Direction (use mod buttons for different effects)</desc>
    <number>
      <unix type="string">8</unix>
      <mac type="string">8</mac>
      <windows type="string">6</windows>
    </number>
    <low>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-heading-offset-deg</property>
        <step type="double">5</step>
        <offset type="double">1</offset>
      </binding>
    </low>
    <high>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-heading-offset-deg</property>
        <step type="double">-5</step>
        <offset type="double">1</offset>
      </binding>
    </high>
    <binding n="0" type="string">
    </binding>
    <binding n="0">
      <setting type="double">0</setting>
    </binding>
  </axis>
  <axis n="7">
    <desc type="string">Hat Switch: View Elevation (use mod buttons for different effects)</desc>
    <number>
      <unix type="string">9</unix>
      <mac type="string">9</mac>
      <windows type="string">7</windows>
    </number>
    <low>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-pitch-offset-deg</property>
        <step type="double">5</step>
        <offset type="double">1</offset>
      </binding>
    </low>
    <high>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">property-adjust</command>
        <property type="string">/sim/current-view/goal-pitch-offset-deg</property>
        <step type="double">-5</step>
        <offset type="double">1</offset>
      </binding>
    </high>
    <binding n="0" type="string">
    </binding>
    <binding n="0">
      <setting type="double">0</setting>
    </binding>
  </axis>
  <button>
    <desc type="string">Brakes</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.applyBrakes(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.applyBrakes(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="1">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
      c172p.reset_view(1);
      setprop("/sim/current-view/goal-heading-offset-deg",0.0);
      setprop("/sim/current-view/goal-pitch-offset-deg",0.0);
      </script>
      <module type="string">__js1</module>
      <offset type="double">1</offset>
    </binding>
    <repeatable type="string">false</repeatable>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="2">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
        setprop("/controls/circuit-breakers/autopilot",0);
      </script>
      <module type="string">__js1</module>
    </binding>
    <repeatable type="string">false</repeatable>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">
          setprop("/controls/circuit-breakers/autopilot",1);
        </script>
        <module type="string">__js1</module>
      </binding>
    </mod-up>
  </button>
  <button n="3">
    <desc type="string">View Cycle Forwards</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">view.stepView(1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="4">
    <desc type="string">Flaps Up</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.flapsDown(-1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="5">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
        setprop("/controls/circuit-breakers/autopilot",1);
        setprop("/autopilot/KAP140/annunciators/ap/state",1);
        setprop("/autopilot/KAP140/settings/target-alt-ft",4000);
        setprop("/autopilot/KAP140/annunciators/alt-arm/",1);
      </script>
      <module type="string">__js1</module>
    </binding>
    <repeatable type="string">false</repeatable>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">
         
        </script>
        <module type="string">__js1</module>
      </binding>
    </mod-up>
  </button>
  <button n="7">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
        setprop("/controls/circuit-breakers/autopilot",1);
        setprop("/autopilot/KAP140/annunciators/ap/state",1);
      </script>
      <module type="string">__js1</module>
    </binding>
    <repeatable type="string">false</repeatable>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">
         
        </script>
        <module type="string">__js1</module>
      </binding>
    </mod-up>
  </button>
  <button n="8">
    <desc type="string">Flaps Down</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.flapsDown(1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="10">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">
        var brake = !getprop("/sim/model/c172p/brake-parking");
        setprop("/sim/model/c172p/brake-parking", brake);
        if (brake=="1") gui.popupTip("Parking brake engaged");
        else gui.popupTip("Parking brake disengaged");
      </script>
      <module type="string">__js1</module>
    </binding>
    <repeatable type="string">false</repeatable>
    <mod-up>
      <binding type="string">
      </binding>
    </mod-up>
  </button>
  <button n="11">
    <desc type="string">FGCom PTT</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.ptt(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.ptt(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="12">
    <desc type="string">Elevator Trim Up</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(-1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="13">
    <desc type="string">Elevator Trim Down</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="14">
    <desc type="string">Custom</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.startEngine(1)</script>
      <module type="string">__js1</module>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.startEngine(0)</script>
        <module type="string">__js1</module>
      </binding>
    </mod-up>
  </button>
</PropertyList>


thank you
Last edited by Johan G on Thu Jun 03, 2021 11:17 am, edited 1 time in total.
Reason: Added [code] tags. They can be added manually or with the [^_ ] button above the text editing box.
gabfus
 
Posts: 3
Joined: Sat May 08, 2021 6:08 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 5 guests