Sim: Add keys for MCT/FLX and CL

This commit is contained in:
Joshua Davidson 2018-06-22 21:46:14 -04:00
parent d455079069
commit 159a8871cb
4 changed files with 39 additions and 1 deletions

View file

@ -1011,6 +1011,16 @@
</script>
</binding>
</key>
<key n="6">
<name>CTRL-f</name>
<desc>MCT/FLX power</desc>
<binding>
<command>nasal</command>
<script>
systems.doMCTThrust();
</script>
</binding>
</key>
<key n="24">
<name>Ctrl-x</name>
<desc>Reset zoom to default</desc>
@ -1255,6 +1265,16 @@
</script>
</binding>
</key>
<key n="70">
<name>SHIFT-f</name>
<desc>CL power</desc>
<binding>
<command>nasal</command>
<script>
systems.doCLThrust();
</script>
</binding>
</key>
<key n="88">
<name>X</name>
<desc>Increase field of view</desc>

View file

@ -124,6 +124,14 @@
<halign>left</halign>
<label>SHIFT + D - Disconnect Autopilot</label>
</text>
<text>
<halign>left</halign>
<label>CTRL + F - Set MCT/FLX Thrust</label>
</text>
<text>
<halign>left</halign>
<label>SHIFT + F - Set CL Thrust</label>
</text>
</group>

View file

@ -70,6 +70,16 @@ var doIdleThrust = func {
setprop("/controls/engines/engine[1]/throttle", 0.0);
}
var doCLThrust = func {
setprop("/controls/engines/engine[0]/throttle", 0.63);
setprop("/controls/engines/engine[1]/throttle", 0.63);
}
var doMCTThrust = func {
setprop("/controls/engines/engine[0]/throttle", 0.8);
setprop("/controls/engines/engine[1]/throttle", 0.8);
}
var doTOGAThrust = func {
setprop("/controls/engines/engine[0]/throttle", 1.0);
setprop("/controls/engines/engine[1]/throttle", 1.0);

View file

@ -1 +1 @@
4508
4509