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 8: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. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 540
Joined: Sat Sep 25, 2010 6:38 pm
Location: Denmark - but I am Swiss
Pronouns: he/his
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 9: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 (KC-137R, F-16, A330, C-32J, MH-60)
Flying with Thrustmaster FCS Flight Pack + MFD Cougar
Aviation media on IG at: @j_maverick16.aviation
User avatar
J Maverick 16
 
Posts: 910
Joined: Sat Feb 01, 2014 7:26 pm
Location: Northern Italy
Callsign: J-Mav16
Version: 2020.3.19
OS: macOS

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby vanosten » Tue Dec 11, 2018 9: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. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 540
Joined: Sat Sep 25, 2010 6:38 pm
Location: Denmark - but I am Swiss
Pronouns: he/his
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 9:11 pm

Surely you can modify the file to the correct axises?
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby vanosten » Wed Dec 12, 2018 7: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. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 540
Joined: Sat Sep 25, 2010 6:38 pm
Location: Denmark - but I am Swiss
Pronouns: he/his
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 11: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: 1219
Joined: Wed Jun 23, 2010 6:58 am
Location: Portugal
Callsign: Tarnish99
Version: latest Git
OS: Windows 10/11

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby J Maverick 16 » Thu Dec 13, 2018 11: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 (KC-137R, F-16, A330, C-32J, MH-60)
Flying with Thrustmaster FCS Flight Pack + MFD Cougar
Aviation media on IG at: @j_maverick16.aviation
User avatar
J Maverick 16
 
Posts: 910
Joined: Sat Feb 01, 2014 7:26 pm
Location: Northern Italy
Callsign: J-Mav16
Version: 2020.3.19
OS: macOS

Re: Left and right brakes config for Thrustmaster TWCS attac

Postby vanosten » Thu Dec 13, 2018 7: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. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 540
Joined: Sat Sep 25, 2010 6:38 pm
Location: Denmark - but I am Swiss
Pronouns: he/his
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 2: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: 1431
Joined: Tue Jun 30, 2009 3: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 4 guests