Any way to use differential braking in FlightGear?
Thanks.
Best.
<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>
<axis n="3">
<desc>Rudder</desc>
<binding>
<command>property-scale</command>
<property>/controls/flight/rudder</property>
<power type="double">1.0</power>
</binding>
<binding>
<command>property-scale</command>
<property>/controls/gear/brake-steering</property>
<power type="double">1.0</power>
</binding>
</axis>
<binding>
<command>nasal</command>
<script>
var rp = getprop("/controls/flight/rudder");
if (rp > 0) {
setprop("/controls/gear/brake-right",rp)
} else {
setprop("/controls/gear/brake-left",-rp);
}
</script>
</binding>
<axis n="3">
<desc>Rudder</desc>
<binding>
<command>property-scale</command>
<property>/controls/flight/rudder</property>
<power type="double">1.0</power>
</binding>
<binding>
<command>nasal</command>
<script>
mod1 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier1");
mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");
if (mod1 == 0 and mod2 == 0) {
#
} elsif(mod1 == 1 and mod2 == 0) {
var rp = getprop("/controls/flight/rudder");
if (rp > 0) {
setprop("/controls/gear/brake-right",rp)
} else {
setprop("/controls/gear/brake-left",-rp);
}
} elsif(mod1==0 and mod2==1) {
var rp = getprop("/controls/flight/rudder");
setprop("/controls/gear/brake-steering",rp)
} elsif(mod1==1 and mod2==1) {
#
}
</script>
</binding>
</axis>
Users browsing this forum: No registered users and 8 guests