Nasal fixup
This commit is contained in:
parent
96e1b7332b
commit
f69ed58384
4 changed files with 16 additions and 26 deletions
|
@ -719,6 +719,10 @@
|
|||
<max-athr-thrust type="double">0.94</max-athr-thrust>
|
||||
<throttle-output type="double">0</throttle-output>
|
||||
<throttle-fdm type="double">0</throttle-fdm>
|
||||
<reverser type="double">0</reverser>
|
||||
<igniter-a type="bool">0</igniter-a>
|
||||
<igniter-b type="bool">0</igniter-b>
|
||||
<last-igniter type="string">B</last-igniter>
|
||||
</engine>
|
||||
<engine n="1">
|
||||
<cutoff type="bool">true</cutoff>
|
||||
|
@ -732,6 +736,10 @@
|
|||
<max-athr-thrust type="double">0.94</max-athr-thrust>
|
||||
<throttle-output type="double">0</throttle-output>
|
||||
<throttle-fdm type="double">0</throttle-fdm>
|
||||
<reverser type="double">0</reverser>
|
||||
<igniter-a type="bool">0</igniter-a>
|
||||
<igniter-b type="bool">0</igniter-b>
|
||||
<last-igniter type="string">B</last-igniter>
|
||||
</engine>
|
||||
<engine n="2">
|
||||
<cutoff type="bool">true</cutoff>
|
||||
|
|
|
@ -17,15 +17,6 @@ var egt_lightdn_time = 10;
|
|||
var shutdown_time = 20;
|
||||
var egt_shutdown_time = 20;
|
||||
|
||||
setprop("/controls/engines/engine[0]/reverser", 0);
|
||||
setprop("/controls/engines/engine[1]/reverser", 0);
|
||||
setprop("/controls/engines/engine[0]/igniter-a", 0);
|
||||
setprop("/controls/engines/engine[1]/igniter-a", 0);
|
||||
setprop("/controls/engines/engine[0]/igniter-b", 0);
|
||||
setprop("/controls/engines/engine[1]/igniter-b", 0);
|
||||
setprop("/controls/engines/engine[0]/last-igniter", "B");
|
||||
setprop("/controls/engines/engine[1]/last-igniter", "B");
|
||||
|
||||
var eng_init = func {
|
||||
setprop("/controls/engines/engine[0]/man-start", 0);
|
||||
setprop("/controls/engines/engine[1]/man-start", 0);
|
||||
|
|
|
@ -50,7 +50,7 @@ var doTOGAThrust = func {
|
|||
|
||||
# Reverse Thrust System
|
||||
var toggleFastRevThrust = func {
|
||||
if (pts.Systems.Thrust.state[0].getValue() == "IDLE" and pts.Systems.Thrust.state[1].getValue() == "IDLE" and pts.Controls.Engines.Engine.reverser[0].getValue() == "0" and pts.Controls.Engines.Engine.reverser[1].getValue() == "0" and pts.Gear.wow[1].getValue() == 1 and pts.Gear.wow[2].getValue() == 1) {
|
||||
if (pts.Systems.Thrust.state[0].getValue() == "IDLE" and pts.Systems.Thrust.state[1].getValue() == "IDLE" and pts.Controls.Engines.Engine.reverser[0].getValue() == 0 and pts.Controls.Engines.Engine.reverser[1].getValue() == 0 and pts.Gear.wow[1].getValue() == 1 and pts.Gear.wow[2].getValue() == 1) {
|
||||
if (pts.Sim.Input.Selected.engine[0].getBoolValue()) {
|
||||
interpolate("/engines/engine[0]/reverser-pos-norm", 1, 1.4);
|
||||
pts.Controls.Engines.Engine.reverser[0].setValue(1);
|
||||
|
@ -63,7 +63,7 @@ var toggleFastRevThrust = func {
|
|||
pts.Controls.Engines.Engine.throttleRev[1].setValue(0.65);
|
||||
pts.Fdm.JSBsim.Propulsion.Engine.reverserAngle[1].setValue(3.14);
|
||||
}
|
||||
} else if (pts.Controls.Engines.Engine.reverser[0].getValue() == "1" or pts.Controls.Engines.Engine.reverser[1].getValue() == "1") {
|
||||
} else if (pts.Controls.Engines.Engine.reverser[0].getValue() == 1 or pts.Controls.Engines.Engine.reverser[1].getValue() == 1) {
|
||||
interpolate("/engines/engine[0]/reverser-pos-norm", 0, 1.0);
|
||||
interpolate("/engines/engine[1]/reverser-pos-norm", 0, 1.0);
|
||||
pts.Controls.Engines.Engine.throttleRev[0].setValue(0);
|
||||
|
@ -80,26 +80,26 @@ var doRevThrust = func {
|
|||
# Can't select reverse if not on the ground
|
||||
return;
|
||||
}
|
||||
if (pts.Sim.Input.Selected.engine[0].getBoolValue() and pts.Controls.Engines.Engine.reverser[0].getValue() == "1") {
|
||||
if (pts.Sim.Input.Selected.engine[0].getBoolValue() and pts.Controls.Engines.Engine.reverser[0].getValue() == 1) {
|
||||
var pos = pts.Controls.Engines.Engine.throttleRev[0].getValue();
|
||||
if (pos < 0.649) {
|
||||
pts.Controls.Engines.Engine.throttleRev[0].setValue(pos + 0.15);
|
||||
}
|
||||
}
|
||||
if (pts.Sim.Input.Selected.engine[1].getBoolValue() and pts.Controls.Engines.Engine.reverser[1].getValue() == "1") {
|
||||
if (pts.Sim.Input.Selected.engine[1].getBoolValue() and pts.Controls.Engines.Engine.reverser[1].getValue() == 1) {
|
||||
var pos = pts.Controls.Engines.Engine.throttleRev[1].getValue();
|
||||
if (pos < 0.649) {
|
||||
pts.Controls.Engines.Engine.throttleRev[1].setValue(pos + 0.15);
|
||||
}
|
||||
}
|
||||
|
||||
if (pts.Sim.Input.Selected.engine[0].getBoolValue() and pts.Systems.Thrust.state[0].getValue() == "IDLE" and pts.Controls.Engines.Engine.reverser[0].getValue() == "0") {
|
||||
if (pts.Sim.Input.Selected.engine[0].getBoolValue() and pts.Systems.Thrust.state[0].getValue() == "IDLE" and pts.Controls.Engines.Engine.reverser[0].getValue() == 0) {
|
||||
interpolate("/engines/engine[0]/reverser-pos-norm", 1, 1.4);
|
||||
pts.Controls.Engines.Engine.throttleRev[0].setValue(0.05);
|
||||
pts.Controls.Engines.Engine.reverser[0].setValue(1);
|
||||
pts.Fdm.JSBsim.Propulsion.Engine.reverserAngle[0].setValue(3.14);
|
||||
}
|
||||
if (pts.Sim.Input.Selected.engine[1].getBoolValue() and pts.Systems.Thrust.state[1].getValue() == "IDLE" and pts.Controls.Engines.Engine.reverser[1].getValue() == "0") {
|
||||
if (pts.Sim.Input.Selected.engine[1].getBoolValue() and pts.Systems.Thrust.state[1].getValue() == "IDLE" and pts.Controls.Engines.Engine.reverser[1].getValue() == 0) {
|
||||
interpolate("/engines/engine[1]/reverser-pos-norm", 1, 1.4);
|
||||
pts.Controls.Engines.Engine.throttleRev[1].setValue(0.05);
|
||||
pts.Controls.Engines.Engine.reverser[1].setValue(1);
|
||||
|
@ -108,7 +108,7 @@ var doRevThrust = func {
|
|||
}
|
||||
|
||||
var unRevThrust = func {
|
||||
if (pts.Sim.Input.Selected.engine[0].getBoolValue() and pts.Controls.Engines.Engine.reverser[0].getValue() == "1") {
|
||||
if (pts.Sim.Input.Selected.engine[0].getBoolValue() and pts.Controls.Engines.Engine.reverser[0].getValue() == 1) {
|
||||
var pos = pts.Controls.Engines.Engine.throttleRev[0].getValue();
|
||||
if (pos > 0.051) {
|
||||
pts.Controls.Engines.Engine.throttleRev[0].setValue(pos - 0.15);
|
||||
|
@ -119,7 +119,7 @@ var unRevThrust = func {
|
|||
pts.Fdm.JSBsim.Propulsion.Engine.reverserAngle[0].setValue(0);
|
||||
}
|
||||
}
|
||||
if (pts.Sim.Input.Selected.engine[1].getBoolValue() and pts.Controls.Engines.Engine.reverser[1].getValue() == "1") {
|
||||
if (pts.Sim.Input.Selected.engine[1].getBoolValue() and pts.Controls.Engines.Engine.reverser[1].getValue() == 1) {
|
||||
var pos = pts.Controls.Engines.Engine.throttleRev[1].getValue();
|
||||
if (pos > 0.051) {
|
||||
pts.Controls.Engines.Engine.throttleRev[1].setValue(pos - 0.15);
|
||||
|
|
|
@ -17,15 +17,6 @@ var egt_lightdn_time = 10;
|
|||
var shutdown_time = 20;
|
||||
var egt_shutdown_time = 20;
|
||||
|
||||
setprop("/controls/engines/engine[0]/reverser", 0);
|
||||
setprop("/controls/engines/engine[1]/reverser", 0);
|
||||
setprop("/controls/engines/engine[0]/igniter-a", 0);
|
||||
setprop("/controls/engines/engine[1]/igniter-a", 0);
|
||||
setprop("/controls/engines/engine[0]/igniter-b", 0);
|
||||
setprop("/controls/engines/engine[1]/igniter-b", 0);
|
||||
setprop("/controls/engines/engine[0]/last-igniter", "B");
|
||||
setprop("/controls/engines/engine[1]/last-igniter", "B");
|
||||
|
||||
var eng_init = func {
|
||||
setprop("/controls/engines/engine[0]/man-start", 0);
|
||||
setprop("/controls/engines/engine[1]/man-start", 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue