System: Ignition improvement
This commit is contained in:
parent
9c31af2ce6
commit
5dcb70a423
1 changed files with 20 additions and 2 deletions
|
@ -66,11 +66,18 @@
|
|||
<channel name="Engine Start/Stop"> <!-- Do NOT execrate! -->
|
||||
|
||||
<!-- Engine 1 -->
|
||||
<switch name="/systems/ignition/can-run-1">
|
||||
<default value="0"/>
|
||||
<test value="1">
|
||||
propulsion/tank[5]/contents-lbs ge 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/systems/ignition/cutoff-1">
|
||||
<default value="1"/>
|
||||
<test logic="AND" value="0">
|
||||
/controls/engines/engine[0]/cutoff-switch eq 0
|
||||
propulsion/tank[5]/contents-lbs ge 1
|
||||
/systems/ignition/can-run-1 eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
@ -156,6 +163,7 @@
|
|||
<test logic="AND" value="1"> <!-- Because JSBsim will kill the engine if we cut out early -->
|
||||
/engines/engine[0]/n2-actual ge /systems/ignition/starter-cutoff-n2
|
||||
/systems/ignition/cutoff-1 eq 0
|
||||
/systems/ignition/can-run-1 eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
@ -164,6 +172,7 @@
|
|||
<test logic="AND" value="1">
|
||||
/systems/ignition/auto-start-1 eq 1
|
||||
/systems/ignition/cutoff-delay-1 lt 1
|
||||
/systems/ignition/can-run-1 eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
@ -184,11 +193,18 @@
|
|||
</switch>
|
||||
|
||||
<!-- Engine 2 -->
|
||||
<switch name="/systems/ignition/can-run-2">
|
||||
<default value="0"/>
|
||||
<test value="1">
|
||||
propulsion/tank[6]/contents-lbs ge 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/systems/ignition/cutoff-2">
|
||||
<default value="1"/>
|
||||
<test logic="AND" value="0">
|
||||
/controls/engines/engine[1]/cutoff-switch eq 0
|
||||
propulsion/tank[6]/contents-lbs ge 1
|
||||
/systems/ignition/can-run-2 eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
@ -274,6 +290,7 @@
|
|||
<test logic="AND" value="1"> <!-- Because JSBsim will kill the engine if we cut out early -->
|
||||
/engines/engine[1]/n2-actual ge /systems/ignition/starter-cutoff-n2
|
||||
/systems/ignition/cutoff-2 eq 0
|
||||
/systems/ignition/can-run-2 eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
@ -282,6 +299,7 @@
|
|||
<test logic="AND" value="1">
|
||||
/systems/ignition/auto-start-2 eq 1
|
||||
/systems/ignition/cutoff-delay-2 lt 1
|
||||
/systems/ignition/can-run-2 eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
|
Loading…
Reference in a new issue