Board index FlightGear Support Flying

Differntial braking

Controlling your aircraft, using the autopilot etc.

Differntial braking

Postby Samgordon » Mon Apr 02, 2018 10:19 pm

Any way to use differential braking in FlightGear?

Thanks.

Best.
Samgordon
 
Posts: 14
Joined: Sun Mar 25, 2018 2:11 pm

Re: Differntial braking

Postby legoboyvdlp » Mon Apr 02, 2018 10:47 pm

Try comma and period keys ;)
Comma is for left brake, period is for right brake.

If you want to setup hardware for that, i'm afraid you will need to ask someone else.
User avatar
legoboyvdlp
 
Posts: 5363
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Differntial braking

Postby Samgordon » Mon Apr 02, 2018 10:50 pm

Thanks.
Samgordon
 
Posts: 14
Joined: Sun Mar 25, 2018 2:11 pm

Re: Differntial braking

Postby sim » Sun Apr 08, 2018 5:01 pm

If you have a joystick chose a button for left brake and another button for right brake. Open your stick xml file and edit.
The code box below shows how each button script is written. Just ensure you renumber button 1 and button 2
if your own choice of buttons have a different number. You can delete the pop up tips once you test in FG and it works ok.
Code: Select all
<button n="1">
    <desc>X_leftBrake</desc>
    <binding>
        <command>property-assign</command>
        <property>/controls/gear/brake-left</property>
        <value type="double">1.0</value>
    </binding>  <repeatable type="bool">false</repeatable>
    <binding>
        <command>nasal</command>
        <script>gui.popupTip("LEFT BRAKE");</script>
    </binding>
    <mod-up>
        <binding>
            <command>property-assign</command>
            <property>/controls/gear/brake-left</property>
            <value type="double">0.0</value>
        </binding>
    </mod-up>
</button>

<button n="2">
    <desc>X_rightBrake</desc>
    <binding>
        <command>property-assign</command>
        <property>/controls/gear/brake-right</property>
        <value type="double">1.0</value>
    </binding>
    <repeatable type="bool">false</repeatable>
    <binding>
        <command>nasal</command>
        <script>gui.popupTip("RIGHT BRAKE");</script>
    </binding>
    <mod-up>
        <binding>
            <command>property-assign</command>
            <property>/controls/gear/brake-right</property>
            <value type="double">0.0</value>
        </binding>
    </mod-up>
</button>
Last edited by sim on Sun Apr 08, 2018 8:13 pm, edited 1 time in total.
User avatar
sim
 
Posts: 1365
Joined: Tue Jun 30, 2009 2:13 pm
Location: Shropshire England
Callsign: Fly4Fun
Version: 0.9.10 up
OS: 64 Win 10 HD6450

Re: Differntial braking

Postby wkitty42 » Sun Apr 08, 2018 5:17 pm

FWIW: OCD kicking in... i've cleaned up the formatting of the above code...

[edit] reformatted code removed as it is cleaned up in above post [/edit]
Last edited by wkitty42 on Sun Apr 08, 2018 8:25 pm, edited 1 time in total.
"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: 4301
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Differntial braking

Postby sim » Sun Apr 08, 2018 8:09 pm

:? Thanks Kitty. Will substitute your cleaned up codebox into my own post so they're both identical. :wink:
User avatar
sim
 
Posts: 1365
Joined: Tue Jun 30, 2009 2:13 pm
Location: Shropshire England
Callsign: Fly4Fun
Version: 0.9.10 up
OS: 64 Win 10 HD6450

Re: Differntial braking

Postby wkitty42 » Sun Apr 08, 2018 8:23 pm

that's cool... i hate ugly formatted code... it gives me hives and makes me twitch :mrgreen:

i'll edit my previous so it isn't doubled here...
"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: 4301
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5


Return to Flying

Who is online

Users browsing this forum: No registered users and 1 guest