2020-06-25 23:27:26 +00:00
|
|
|
<!-- Airbus A320 FWC -->
|
|
|
|
|
|
|
|
<!-- Copyright (c) 2020 Jonathan Redpath -->
|
|
|
|
|
|
|
|
<system name="A320: FWC Phase Computation">
|
|
|
|
|
|
|
|
<channel name="FWC Phase Logic Timers" execrate="8">
|
|
|
|
|
|
|
|
<actuator name="/ECAM/timer/ground-calc">
|
|
|
|
<description>Timer for the ECAM phase system</description>
|
2020-11-18 16:58:09 +00:00
|
|
|
<input>/ECAM/logic/ground-calc-immediate</input>
|
2020-10-20 21:24:29 +00:00
|
|
|
<rate_limit sense="decr">120</rate_limit> <!-- Instant -->
|
2020-06-25 23:27:26 +00:00
|
|
|
<rate_limit sense="incr">1</rate_limit> <!-- 1 second -->
|
|
|
|
</actuator>
|
2020-11-02 17:51:31 +00:00
|
|
|
|
|
|
|
<actuator name="/ECAM/phases/phase-calculation/engine-1-or-2-running">
|
|
|
|
<input>/ECAM/phases/phase-calculation/one-engine-running</input>
|
|
|
|
<rate_limit sense="decr">120</rate_limit>
|
|
|
|
<rate_limit sense="incr">0.03333333333</rate_limit>
|
|
|
|
</actuator>
|
|
|
|
|
|
|
|
<actuator name="/ECAM/phases/monostable/phase-1-300-output">
|
|
|
|
<input>/ECAM/phases/monostable/phase-1-300</input>
|
|
|
|
<rate_limit sense="incr">0.00333333333</rate_limit>
|
|
|
|
<rate_limit sense="decr">120</rate_limit>
|
|
|
|
</actuator>
|
|
|
|
|
2020-06-25 23:27:26 +00:00
|
|
|
</channel>
|
|
|
|
|
2020-07-19 13:01:13 +00:00
|
|
|
<channel name="FWC Phase Logic and Switches" execrate="4">
|
2020-06-25 23:27:26 +00:00
|
|
|
|
|
|
|
<switch name="/ECAM/flipflop/speed-gt-80-set">
|
|
|
|
<default value="0"/>
|
|
|
|
<test value="0">
|
|
|
|
/sim/time/elapsed-sec lt 10
|
|
|
|
</test>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
<test logic="AND">
|
|
|
|
/systems/navigation/adr/output/cas-1 gt 83
|
|
|
|
/systems/navigation/adr/output/cas-2 gt 83
|
|
|
|
</test>
|
|
|
|
<test logic="AND">
|
|
|
|
/systems/navigation/adr/output/cas-2 gt 83
|
|
|
|
/systems/navigation/adr/output/cas-3 gt 83
|
|
|
|
</test>
|
|
|
|
<test logic="AND">
|
|
|
|
/systems/navigation/adr/output/cas-1 gt 83
|
|
|
|
/systems/navigation/adr/output/cas-3 gt 83
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/flipflop/speed-gt-80-reset">
|
|
|
|
<default value="0"/>
|
|
|
|
<test value="0">
|
|
|
|
/sim/time/elapsed-sec lt 10
|
|
|
|
</test>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
<test logic="AND">
|
|
|
|
/systems/navigation/adr/output/cas-1 lt 77
|
|
|
|
/systems/navigation/adr/output/cas-2 lt 77
|
|
|
|
</test>
|
|
|
|
<test logic="AND">
|
|
|
|
/systems/navigation/adr/output/cas-2 lt 77
|
|
|
|
/systems/navigation/adr/output/cas-3 lt 77
|
|
|
|
</test>
|
|
|
|
<test logic="AND">
|
|
|
|
/systems/navigation/adr/output/cas-1 lt 77
|
|
|
|
/systems/navigation/adr/output/cas-3 lt 77
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/flipflop/radar-altimeter-5-set">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
/position/gear-agl-ft lt 5
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/flipflop/radar-altimeter-5-reset">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
/gear/gear[1]/compression-norm eq 0
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2020-11-18 16:58:09 +00:00
|
|
|
<switch name="/ECAM/logic/ground-calc-immediate">
|
2020-06-25 23:27:26 +00:00
|
|
|
<default value="0"/>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
/ECAM/flipflop/radar-altimeter-5-output eq 1
|
|
|
|
/position/gear-agl-ft lt 5
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2020-10-20 21:24:29 +00:00
|
|
|
<switch name="/ECAM/phases/monostable/phase-1-300-output">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/phases/monostable/phase-1-300-output ne 1
|
|
|
|
/ECAM/phases/monostable/phase-1-300 eq 1
|
|
|
|
</test>
|
|
|
|
</switch>
|
2020-11-02 17:51:31 +00:00
|
|
|
|
|
|
|
<switch name="/ECAM/phases/phase-calculation/altitude-ge-1500">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/position/gear-agl-ft ge 1500
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/phase-calculation/altitude-flipflop-set">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/phases/phase-calculation/altitude-ge-1500 eq 1
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/phase-calculation/altitude-flipflop-reset">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/position/gear-agl-ft lt 800
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
</channel>
|
|
|
|
|
|
|
|
<channel name="Phase Calcs" execrate="4">
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/timer/eng1idle">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/engines/engine[0]/n2 ge 59.4
|
|
|
|
/controls/engines/engine[0]/cutoff-switch eq 0
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/timer/eng2idle">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/engines/engine[1]/n2 ge 59.4
|
|
|
|
/controls/engines/engine[1]/cutoff-switch eq 0
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/phase-calculation/engine-1-off">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
<test logic="OR">
|
|
|
|
/ECAM/phases/timer/eng1idle-output eq 0
|
|
|
|
/controls/engines/engine[0]/cutoff-switch eq 1
|
|
|
|
</test>
|
|
|
|
<test logic="OR">
|
|
|
|
/ECAM/timer/ground-calc eq 1
|
|
|
|
/ECAM/phases/timer/eng1idle eq 0
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/phase-calculation/engine-2-off">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
<test logic="OR">
|
|
|
|
/ECAM/phases/timer/eng2idle-output eq 0
|
|
|
|
/controls/engines/engine[1]/cutoff-switch eq 1
|
|
|
|
</test>
|
|
|
|
<test logic="OR">
|
|
|
|
/ECAM/timer/ground-calc eq 1
|
|
|
|
/ECAM/phases/timer/eng2idle eq 0
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/phase-calculation/engines-1-2-not-running">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/phases/phase-calculation/engine-1-off eq 1
|
|
|
|
/ECAM/phases/phase-calculation/engine-2-off eq 1
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/phase-calculation/one-engine-running">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
/engines/engine[0]/state eq 3
|
|
|
|
/engines/engine[1]/state eq 3
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/phase-calculation/takeoff-power-logic">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
<test logic="OR">
|
|
|
|
<test logic="AND">
|
|
|
|
/controls/engines/engine[0]/throttle ge 0.779
|
2021-04-23 17:21:07 +00:00
|
|
|
fadec/limit/flex-active eq 1
|
2020-11-02 17:51:31 +00:00
|
|
|
</test>
|
|
|
|
<test logic="AND">
|
|
|
|
/controls/engines/engine[0]/throttle ge 0.99
|
2021-04-23 17:21:07 +00:00
|
|
|
fadec/limit/flex-active eq 0
|
2020-11-02 17:51:31 +00:00
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
<test logic="OR">
|
|
|
|
<test logic="AND">
|
|
|
|
/controls/engines/engine[1]/throttle ge 0.779
|
2021-04-23 17:21:07 +00:00
|
|
|
fadec/limit/flex-active eq 1
|
2020-11-02 17:51:31 +00:00
|
|
|
</test>
|
|
|
|
<test logic="AND">
|
|
|
|
/controls/engines/engine[1]/throttle ge 0.99
|
2021-04-23 17:21:07 +00:00
|
|
|
fadec/limit/flex-active eq 0
|
2020-11-02 17:51:31 +00:00
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<actuator name="/ECAM/phases/phase-calculation/takeoff-power-timer">
|
|
|
|
<input>/ECAM/phases/phase-calculation/takeoff-power-logic</input>
|
|
|
|
<rate_limit sense="incr">120</rate_limit>
|
|
|
|
<rate_limit sense="decr">0.01666666666</rate_limit>
|
|
|
|
</actuator>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/phase-calculation/takeoff-power">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
/ECAM/phases/phase-calculation/takeoff-power-logic eq 1
|
|
|
|
<test logic="AND">
|
|
|
|
/ECAM/phases/phase-calculation/takeoff-power-timer ne 0
|
|
|
|
/ECAM/phases/phase-calculation/altitude-ge-1500 eq 0
|
|
|
|
/controls/engines/engine[0]/throttle ge 0.599
|
|
|
|
/controls/engines/engine[1]/throttle ge 0.599
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
2021-01-30 16:12:34 +00:00
|
|
|
|
|
|
|
<switch name="/ECAM/phases/monostable/phase-8">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
/ECAM/warning-phase eq 8
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2020-06-25 23:27:26 +00:00
|
|
|
</channel>
|
|
|
|
|
|
|
|
</system>
|