Board index FlightGear Support Hardware

Thrustmaster T.Flight Hotas X joystick config XML file

Joysticks, pedals, monitors.

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby DistantRain » Wed May 26, 2010 11:09 am

I took a look at what flug did. The hat switch is no longer my priority as I find it quite nice now. The other issue I have is with changing the functions for Mods and buttons. I would like to add Thrust Vector and Air Brake and few other things. I personally don't know how to accomplish this as XML is very foreign to me. And as newbie as I am, the part where I'm quite lost is

Code: Select all
interpolate("/controls/gear/brake-left", 1, 0.075);


Where is the directory "/controls/gear/brake-left?" How does it recognize the function for those commands in "*/controls/*?" How do we know where these properties are? Is there a possible list or reference for me to use so that I could edit out the commands to my liking?

I've run js_demo and none of the keys for js_demo returns the same keys for flug's XML, but he runs Windows XP and I am running Linux so some variation must exist.

I seek some of your guy's guidance. :)
I am a proud head CEO of Distantrain. Founder, and Co-producer of Distantrain.
Senior Commander in Chief
Please PM him with any questions regarding Distantrain.
DistantRain
 
Posts: 75
Joined: Sat Apr 17, 2010 6:53 am
Callsign: Distantrain
Version: GIT
OS: Gentoo

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby DistantRain » Sat Jun 12, 2010 12:47 am

Okay, I know I'm pulling a somewhat an old thread here but I'm in need of a help. I'm not sure how to change the Hat switch for the above to say on the Aviator, you could hold the Trigger button and navigate wherever the Hat switch moves: if you press up, it goes up; if you press up,left, it goes up left; if you press up, right, it goes in up, right, and it stays there.

Also, is there a list of references for things like "brake-left," brake-right," "thrust-reverse," etc? The directory tree that's listed in xml file is not as helpful with just the xml.

I'm not familiar with XML at all so many functions as "Mod1" "Mod2" and such, though I understand they're used in Joystick as press this first and press the other, I'm not quite sure how to write them as such - perhaps I'll learn what flug has done.
I am a proud head CEO of Distantrain. Founder, and Co-producer of Distantrain.
Senior Commander in Chief
Please PM him with any questions regarding Distantrain.
DistantRain
 
Posts: 75
Joined: Sat Apr 17, 2010 6:53 am
Callsign: Distantrain
Version: GIT
OS: Gentoo

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby redneck » Wed Jun 23, 2010 6:39 pm

Geez, I just happen to be getting this joystick in about a week, and thought I'd ask for help before I get it, so I wouldn't have to wait to use it. :mrgreen: All I asked for was how to use the hat switch to pan my view, but I think I'll have to check out flug's latest config. I bet it will take some getting used to though. Plus, I'll definitely have to see about getting the screensaver turned off. It can be a real scare, especially if you're pushing the limits of your piloting skill.
Call Signs: redneck, ATCredn (unspecified freq atc)
FGFSCopilot
FGFSCopilotATCEdition
System Specs
Model: Alienware M15x, OS: Windows 7 Professional 64-bit, RAM: 3 GB, CPU: Intel i3 quad core at 2.4 GHz, GPU: Nvidea GeForce GTX 460M 1.5 GB GDDR5
redneck
 
Posts: 3617
Joined: Mon Feb 02, 2009 3:17 am
Location: Pennsylvania, USA
Version: 240

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby DistantRain » Wed Jun 23, 2010 10:38 pm

Using flug's setting, you'd press the Square button on your throttle or number 5 as you're moving your hat switches around. Also, if you press the top-right, the screen moves to your left. If you press the bottom-right, the screen switches to your right. Because his settings are 90 degrees panning around, without the usual move top-right and it moves diagonally top-right or moving bottom-right will move diagonally bottom-right. I'm not too into this feature though as I'd like my hat switch to move to the direction I ask for it, or else I'll be using my mouse to move a few degree's down or up just to see if there's any nearby airport as I'm making my final approach in a turn. But unfortunately, I haven't learned XML enough to understand how to change them yet.

But yeah, play around. I might need to make some changes soon too, if I learn how to learn XML and learn what it is I need to do to get the result I want.
I am a proud head CEO of Distantrain. Founder, and Co-producer of Distantrain.
Senior Commander in Chief
Please PM him with any questions regarding Distantrain.
DistantRain
 
Posts: 75
Joined: Sat Apr 17, 2010 6:53 am
Callsign: Distantrain
Version: GIT
OS: Gentoo

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby redneck » Wed Jun 23, 2010 11:41 pm

Well then, I like the idea of using mod-up with the hat switch to allow me to glance around and then reset my view. But, I'd also prefer to actually have the screen pan in the direction I move the hat switch. I hadn't realized that wasn't the case when looking at the xml, as I'm still trying to understand this stuff myself.
I still can't even imagine having a 12 button joystick with an analog throttle and a hat switch. I'm stepping up from a dying 3-axis, 3-button joystick. Like, to think that I may not have to touch the mouse or keyboard, except to set up and use the AP, is just beyond my comprehension atm.
Call Signs: redneck, ATCredn (unspecified freq atc)
FGFSCopilot
FGFSCopilotATCEdition
System Specs
Model: Alienware M15x, OS: Windows 7 Professional 64-bit, RAM: 3 GB, CPU: Intel i3 quad core at 2.4 GHz, GPU: Nvidea GeForce GTX 460M 1.5 GB GDDR5
redneck
 
Posts: 3617
Joined: Mon Feb 02, 2009 3:17 am
Location: Pennsylvania, USA
Version: 240

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby redneck » Fri Jun 25, 2010 11:56 pm

So, it came. I'm trying the latest xml that was posted here. I'm still not used to it at all. But, I can finally fly helis with some precision. I just flew up and did a few pedal turns. I'm so happy :mrgreen:
Call Signs: redneck, ATCredn (unspecified freq atc)
FGFSCopilot
FGFSCopilotATCEdition
System Specs
Model: Alienware M15x, OS: Windows 7 Professional 64-bit, RAM: 3 GB, CPU: Intel i3 quad core at 2.4 GHz, GPU: Nvidea GeForce GTX 460M 1.5 GB GDDR5
redneck
 
Posts: 3617
Joined: Mon Feb 02, 2009 3:17 am
Location: Pennsylvania, USA
Version: 240

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby DistantRain » Sat Jun 26, 2010 1:41 am

Nice! Let me know how you like it after flying some planes and how you change your joystick settings. :P I'll be curious. I'm liking this joystick a lot. :mrgreen:
I am a proud head CEO of Distantrain. Founder, and Co-producer of Distantrain.
Senior Commander in Chief
Please PM him with any questions regarding Distantrain.
DistantRain
 
Posts: 75
Joined: Sat Apr 17, 2010 6:53 am
Callsign: Distantrain
Version: GIT
OS: Gentoo

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby DistantRain » Mon Nov 01, 2010 1:09 am

I'm curious how to set the trigger button plus hat switch, allowing me to move the viewer to the hat switch's angle. I could do this with Saitek Aviator's control. I tried to use the similar function as the Aviator but it didn't work for Thrustmaster T. Flight Hotas X. What do I need to do?
I am a proud head CEO of Distantrain. Founder, and Co-producer of Distantrain.
Senior Commander in Chief
Please PM him with any questions regarding Distantrain.
DistantRain
 
Posts: 75
Joined: Sat Apr 17, 2010 6:53 am
Callsign: Distantrain
Version: GIT
OS: Gentoo

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby redneck » Mon Nov 01, 2010 3:46 pm

DistantRain wrote:Nice! Let me know how you like it after flying some planes and how you change your joystick settings. :P I'll be curious. I'm liking this joystick a lot. :mrgreen:

Sorry, I don't remember seeing that post there. Anyway, it's great. The only mods I've made so far is that button 1 resets the view, but does not switch back to the cockpit view, and the trigger, now, not only engages brakes, but uses differential braking when rudder is applied, and deploys spoilers and speedbrakes at the same time.
As for your question about the view thing, Idk, sorry.
Call Signs: redneck, ATCredn (unspecified freq atc)
FGFSCopilot
FGFSCopilotATCEdition
System Specs
Model: Alienware M15x, OS: Windows 7 Professional 64-bit, RAM: 3 GB, CPU: Intel i3 quad core at 2.4 GHz, GPU: Nvidea GeForce GTX 460M 1.5 GB GDDR5
redneck
 
Posts: 3617
Joined: Mon Feb 02, 2009 3:17 am
Location: Pennsylvania, USA
Version: 240

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby 439Tiger » Sat Jan 01, 2011 4:01 am

Hello,

I created this file using bits and pieces of different xml files. I'm very new at this. The config listed in an earlier post below is way too much for me at this time.

I'm still having the same problem though...js_demo recognizes my stick and so does the joystick info on the help screen. But Flightgear still goes to the default joystick. My operating system is Windows 7 and it does recognize my game controller as a T.Flight Hotas X

I've tried substituting the code below inside the default/joystick.xml file but then the program crashes.

I'm using XML Marker as my xml editor.



Code: Select all

<?xml version="1.0"?>

<!--
************************************************************************
* Bindings for T.Flight Hotas X joystick
*
*
* Axis 0: ailerons
* Axis 1: elevator
* Axis 3: rudder (stick twist)
* Axis 2: throttle
* Axis 4: rudder (toggle switch on throttle)
* Axis 6: hat l/r
* Axis:7: hat up/down
*
* Button 0: all brakes
* Button 1: change view
* Button 2: elevator trim down
* Button 3: elevator trim up
* Button 4: flap down
* Button 5: flap up
* Button 6: flap down
* Button 7: gear up/down
************************************************************************
-->
<PropertyList>

   <name type="string">T.Flight Hotas X</name>
   <name type="string">Hotas X</name>
   <name type="string">Thrustmaster Hotas X</name>


 
 <axis n="0">
  <desc>Aileron</desc>
  <direction>right</direction>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/aileron</property>
   <offset type="double">0.0</offset>
   <factor type="double">1.0</factor>
   <power type="int">1</power>
  </binding>
 </axis>

 <axis n="1">
  <desc>Elevator</desc>
  <direction>down/forward</direction>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/elevator</property>
   <factor type="double">-1.0</factor>
   <power type="int">1</power>
  </binding>
 </axis>

<axis n="2">
  <desc>Throttle</desc>
  <direction>forward</direction>
  <binding>
   <command>nasal</command>
   <script>controls.throttleAxis()</script>
  </binding>
 </axis>

 <axis n="3">
  <desc>Rudder</desc>
  <direction>right</direction>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
   <factor type="double">1.0</factor>
   <power type="int">1</power>
  </binding>
 </axis>

<axis n="4">
  <desc>Rudder</desc>
  <direction>right</direction>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
   <factor type="double">1.0</factor>
   <power type="int">1</power>
  </binding>
 </axis>

 <axis n="6">
  <desc>View Direction</desc>
  <direction>left</direction>
  <low>
   <repeatable>true</repeatable>
   <binding>
    <command>nasal</command>
    <script>view.panViewDir(1)</script>
   </binding>
  </low>
  <high>
   <repeatable>true</repeatable>
   <binding>
    <command>nasal</command>
    <script>view.panViewDir(-1)</script>
   </binding>
  </high>
 </axis>

 <axis n="7">
  <desc>View Elevation</desc>
  <direction>upward</direction>
  <low>
   <repeatable>true</repeatable>
   <binding>
    <command>nasal</command>
    <script>view.panViewPitch(1)</script>
   </binding>
  </low>
  <high>
   <repeatable>true</repeatable>
   <binding>
    <command>nasal</command>
    <script>view.panViewPitch(-1)</script>
   </binding>
  </high>
 </axis>

 <button n="0">
  <desc>Brakes</desc>
  <binding>
   <command>nasal</command>
   <script>controls.applyBrakes(1)</script>
  </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>controls.applyBrakes(0)</script>
   </binding>
  </mod-up>
 </button>

 <button n="1">
  <desc>View Cycle</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>view.stepView(1)</script>
  </binding>
 </button>

  <button n="2">
  <desc>Elevator trim down</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
   <command>property-adjust</command>
   <property>/controls/flight/elevator-trim</property>
   <step type="double">-0.001</step>
  </binding>
 </button>

<button n="3">
  <desc>Elevator trim up</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
   <command>property-adjust</command>
   <property>/controls/flight/elevator-trim</property>
   <step type="double">0.001</step>
  </binding>
 </button>

 <button n="4">
  <desc>Flaps Down</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.flapsDown(1)</script>
  </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0)</script>
   </binding>
  </mod-up>
 </button>

 <button n="5">
  <desc>Flaps Up</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.flapsDown(-1)</script>
  </binding>
  <mod-up>
   <binding>
    <command>nasal</command>
    <script>controls.flapsDown(0)</script>
   </binding>
  </mod-up>
 </button>

 <button n="7">
  <desc>Landing Gear Toggle</desc>
  <repeatable>false</repeatable>
  <binding>
   <command>nasal</command>
   <script>controls.gearToggle()</script>
  </binding>
 </button>

</PropertyList>

<!-- end of  T.Flight Hotas X.xml -->


I've been working at this all day and I don't know what I'm doing wrong...Any help would be much appreciated.
Specializing in Canadian built aircraft and aircraft flown by the RCAF

http://www.flightgearcanada.ca/ or: https://sites.google.com/site/flightgearcanada/
User avatar
439Tiger
 
Posts: 1163
Joined: Sat Jan 01, 2011 3:39 am
Location: St-Georges-de-Beauce, Québec, Canada (CYSG)
Callsign: C-CYSG
Version: 2.10.03
OS: Windoze 7

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby Mobius1 » Sat Jan 01, 2011 5:43 am

Hi there. I had the same problem earlier, and I'm far from the most experienced here, but I seem to have solved it myself.

Once you've edited the T.Flight Hotas X XML file, you need to go into the file Flightgear/data/joysticks.xml. Then add this line to it:
Code: Select all
<js-named include="Path to your joystick's xml file"/>
Obviously, in lieu of the text in quotations, copy the path to your joystick's XML file, starting with Input -- but leave the quotations.
For example, I use a Genius F23 joystick. (Don't laugh because it's crappy, just go with it :P ) After editing the XML file titled "F23", I would go to the joysticks.xml file and input the following line:
Code: Select all
<js-named include="Input/Joysticks/Genius/f23.xml"/>
Make sure to put the above line in between the tags <PropertyList> </PropertyList>!

There may already be two lines there -- in that case, the first one will be the one you will need to fill in with the path to your joystick's XML file. There was also a second line in my case -- this caused problems for me, so I deleted it and the problem was solved. I don't know if that was the right thing to do, but I haven't noticed any problem with it. You may want to do the same.

Like I said, I'm not very experienced with this either, but it worked for me.

Hope this helps!

Cheers,
Will
I'm back!

Anxious to start MPing again!
Mobius1
 
Posts: 72
Joined: Mon Sep 07, 2009 10:56 pm
Location: Chester, SC (KDCM)

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby 439Tiger » Sat Jan 01, 2011 5:02 pm

It works!!! Thank you so much Will. I think what I was missing was the exclamation mark after the last property list. You just made my day!!! I wish you and your family a Happy New Year or as way say here: Bonne Année!!!

Bob
Specializing in Canadian built aircraft and aircraft flown by the RCAF

http://www.flightgearcanada.ca/ or: https://sites.google.com/site/flightgearcanada/
User avatar
439Tiger
 
Posts: 1163
Joined: Sat Jan 01, 2011 3:39 am
Location: St-Georges-de-Beauce, Québec, Canada (CYSG)
Callsign: C-CYSG
Version: 2.10.03
OS: Windoze 7

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby Mobius1 » Sat Jan 01, 2011 11:11 pm

Glad I could be of assistance, but... the exclamation mark being bolded along with the <PropertyList></PropertyList> was actually just a fail on my part. No exclamation mark is actually needed. :lol: Regardless, Happy New Year as well then. :)
I'm back!

Anxious to start MPing again!
Mobius1
 
Posts: 72
Joined: Mon Sep 07, 2009 10:56 pm
Location: Chester, SC (KDCM)

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby BeanerECMO » Fri Jan 28, 2011 6:46 pm

System:
Windows 7 Ultimate (x64) (build 7600)
Install Language: English (United States)
HP-Pavilion RK574AA-ABA a1730n
2.40 gigahertz AMD Athlon 64 X2 Dual Core
4 Gb RAM; Ready Boost 4Gb
NVIDIA GeForce 9800 GT w/ 1Gb VRAM
T.Flight HOTAS X joystick system

I want to thank all the previous posters re: T.Flight HOTAS X joystick system xml file development. :D It sure has kept me from reinventing "the wheel". My 'druthers' for three of the function 'buttons" are: 1) twist joystick for panning; 2) "coolie hat" for aileron and elevator trim; and 3) rocker for rudder/steering. I have a question re: brake operation. I can go to full power and the aircraft just sits there, which means that I'm chained down in the chocks with the brakes applied; how does one release the brakes? I haven't installed the HOTAS X.xml file yet, so the question may already be answered after installing the file. :?:
BeanerECMO
 
Posts: 2
Joined: Fri Jan 28, 2011 5:19 pm
Location: FL
Callsign: BeanerECMO
Version: 2
OS: W7U x64

Re: Thrustmaster T.Flight Hotas X joystick config XML file

Postby redneck » Fri Jan 28, 2011 8:34 pm

Simply toggle parking brake with Shift+B. If you have anymore similar questions, please, when running FG, go to the menu and click Help>Common Aircraft Keys.

As for your joystick questions: sorry, but I'm not the expert here on that.
Call Signs: redneck, ATCredn (unspecified freq atc)
FGFSCopilot
FGFSCopilotATCEdition
System Specs
Model: Alienware M15x, OS: Windows 7 Professional 64-bit, RAM: 3 GB, CPU: Intel i3 quad core at 2.4 GHz, GPU: Nvidea GeForce GTX 460M 1.5 GB GDDR5
redneck
 
Posts: 3617
Joined: Mon Feb 02, 2009 3:17 am
Location: Pennsylvania, USA
Version: 240

PreviousNext

Return to Hardware

Who is online

Users browsing this forum: No registered users and 3 guests