Board index FlightGear Support Hardware

Left and right brakes config for Thrustmaster TWCS attached

Joysticks, pedals, monitors.

Left and right brakes config for Thrustmaster TWCS attached

Postby vanosten » Sun Dec 09, 2018 7:40 am

Hi

I bought the T.16000M FCS Flight Pack, where the rudder pedals are connected to the throttle. Unfortunately I fail to be able to create a xml-config file for the left and right brakes. Has anyone succeeded?
Maintaining osm2city
vanosten
 
Posts: 398
Joined: Sat Sep 25, 2010 5:38 pm
Location: Denmark - but I am Swiss
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby J Maverick 16 » Mon Dec 10, 2018 8:47 am

In the TWCS-Throttle.xml file I have this:

Code: Select all
<axis n="3">
    <desc type="string">Brake Right</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/gear/brake-right</property>
      <factor type="double">-0.5</factor>
      <offset type="double">1</offset>
    </binding>
  </axis>
  <axis n="4">
    <desc type="string">Brake Left</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/gear/brake-left</property>
      <factor type="double">-0.5</factor>
      <offset type="double">1</offset>
    </binding>
  </axis>


See if it helps ;)
Cheers, Mav
Breakin' the sound barrier every day!

Scenery designer, basic livery maker, aircraft developer (current project: F-16).
Using Thrustmaster FCS Flight Pack.
Follow me also on Instagram & Twitter @j_maverick16, Google+ and YouTube.
User avatar
J Maverick 16
 
Posts: 744
Joined: Sat Feb 01, 2014 6:26 pm
Location: Northern Italy
Callsign: J-Mav16, OPFOR96
Version: 2018.2.1
OS: macOS 10.12

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby vanosten » Tue Dec 11, 2018 8:00 pm

Unfortunately not. I should have told that I am on Windows. There the right brake axis is 5, the left maybe 8.
Maintaining osm2city
vanosten
 
Posts: 398
Joined: Sat Sep 25, 2010 5:38 pm
Location: Denmark - but I am Swiss
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby legoboyvdlp » Tue Dec 11, 2018 8:11 pm

Surely you can modify the file to the correct axises?
User avatar
legoboyvdlp
 
Posts: 6640
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby vanosten » Wed Dec 12, 2018 6:31 pm

I know how to that, but it does not work. The Properties in Windows show activity for all axes. However also using bin/fgjs.exe I do not get any readings for the left brake. So I wonder whether I have to buy a converter to connect the pedals directly through USB to the computer instead of through the throttle :-(

(The right brake works with axis=5 and
Code: Select all
<factor type="double">-1.0</factor>
<offset type="double">0.0</offset>
)
Maintaining osm2city
vanosten
 
Posts: 398
Joined: Sat Sep 25, 2010 5:38 pm
Location: Denmark - but I am Swiss
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby Alant » Wed Dec 12, 2018 10:32 pm

Have you checked using Windows Control-Panel -> Devices and Printers -> Thrustmaster-x (Right Click) Game Controller settings - > Properties ?
This should show you if Windows can read all of your buttons and controls, and how they are assigned.

Alan
Alant
 
Posts: 841
Joined: Wed Jun 23, 2010 5:58 am
Location: Portugal
Callsign: Tarnish99
Version: from Git
OS: Windows 10

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby J Maverick 16 » Thu Dec 13, 2018 10:28 am

There's also a USB adapter included for the pedals btw.
Regards, Mav
Breakin' the sound barrier every day!

Scenery designer, basic livery maker, aircraft developer (current project: F-16).
Using Thrustmaster FCS Flight Pack.
Follow me also on Instagram & Twitter @j_maverick16, Google+ and YouTube.
User avatar
J Maverick 16
 
Posts: 744
Joined: Sat Feb 01, 2014 6:26 pm
Location: Northern Italy
Callsign: J-Mav16, OPFOR96
Version: 2018.2.1
OS: macOS 10.12

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby vanosten » Thu Dec 13, 2018 6:22 pm

The USB adapter is not included in the bundle, so I might just need to buy it.

I did some tests with DCS - no problems. The Windows property shows all buttons and axis moving correctly. I also tried to make a different profile with T.A.R.G.E.T. Still FlightGear refused to recognised the re-assigned axis.

My conclusion right now: Use a USB-adapter. Until then a will make a hack in the configuration, so I will use the right brake axis plus the rudder axis to do calculate differential braking (assuming that you only use differential braking in the direction you want to make a tight turn).
Maintaining osm2city
vanosten
 
Posts: 398
Joined: Sat Sep 25, 2010 5:38 pm
Location: Denmark - but I am Swiss
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby sim » Sun Dec 16, 2018 1:42 pm

My Twist Rudder axis is axis 3 but it operates just the rudder alone.
So in blue is a sample new code which uses the <high> and <low> points of axis 3 to apply left brake
when full left rudder is applied and right brake when full right rudder is applied.
Might help those with twist joystick rudder control
also blue code would work if added to any other axis for example aileron axis (as long as it's operated on the ground!)
Left and Right brake scripts could also be written to two separate buttons. Then LOL throw your pedals away! :lol:
Note code is untested so if it works brakes on the wrong side you'll need to swap-over the words "left" and "right"

<axis n="3"> <desc>Rudder</desc> <dead-band type="double">0.04</dead-band> <tolerance type="double">0.02</tolerance> <binding> <command>property-scale</command> <property>/controls/flight/rudder</property> <offset type="double">0.0</offset>
<factor type="double">1.0</factor> <squared type="bool">true</squared> </binding>
<low> <repeatable type="bool">true</repeatable>
<binding> <command>nasal</command>
<script>setprop("/controls/gear/brake-left", 1)</script>
</binding> </low>
<high> <repeatable type="bool">true</repeatable>
<binding> <command>nasal</command>
<script>setprop("/controls/gear/brake-right", 1)</script>
</binding> </high></axis>
User avatar
sim
 
Posts: 1421
Joined: Tue Jun 30, 2009 2:13 pm
Location: Shropshire England
Callsign: Fly4Fun
Version: 0.9.10 up
OS: 64 Win 10 HD6450


Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests