1
0
Fork 0

Control: spoiler dont... fix the dang thing...

This commit is contained in:
Josh Davidson 2021-05-20 17:11:13 -04:00
parent 1582936ec2
commit a3659e027f

View file

@ -25,37 +25,23 @@
</test>
</switch>
<switch name="spoilers/throttle[0]">
<default value="/controls/engines/engine[0]/throttle"/>
<test logic="OR" value="0">
/controls/engines/engine[0]/reverse-cmd eq 1
</test>
</switch>
<switch name="spoilers/throttle[1]">
<default value="/controls/engines/engine[1]/throttle"/>
<test logic="OR" value="0">
/controls/engines/engine[1]/reverse-cmd eq 1
</test>
</switch>
<switch name="spoilers/auto-speedbrake-cmd">
<default value="spoilers/auto-speedbrake-cmd"/>
<test logic="OR" value="0"> <!-- Reset -->
spoilers/throttle[0] ge 0.01
spoilers/throttle[1] ge 0.01
fadec/control-1/detent ne 0
fadec/control-2/detent ne 0
/controls/flight/speedbrake-arm ne 1
</test>
<test logic="AND" value="1"> <!-- EXT Set -->
spoilers/throttle[0] lt 0.01
spoilers/throttle[1] lt 0.01
fadec/control-1/detent eq 0
fadec/control-2/detent eq 0
/controls/flight/speedbrake-arm eq 1
spoilers/main-gear-and eq 1
/velocities/groundspeed-kt ge 72
</test>
<test logic="AND" value="0.20"> <!-- PLD Set 10 degrees -->
spoilers/throttle[0] lt 0.01
spoilers/throttle[1] lt 0.01
fadec/control-1/detent eq 0
fadec/control-2/detent eq 0
/controls/flight/speedbrake-arm eq 1
spoilers/main-gear-or eq 1
/velocities/groundspeed-kt ge 72