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>
|
|
|
|
|
2021-06-22 14:26:56 +00:00
|
|
|
<actuator name="/ECAM/phases/monostable/phase-1-300-timer">
|
2020-11-02 17:51:31 +00:00
|
|
|
<input>/ECAM/phases/monostable/phase-1-300</input>
|
2021-06-22 14:26:56 +00:00
|
|
|
<rate_limit sense="decr">0.00333333333</rate_limit>
|
|
|
|
<rate_limit sense="incr">120</rate_limit>
|
2020-11-02 17:51:31 +00:00
|
|
|
</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">
|
2021-11-26 17:10:30 +00:00
|
|
|
/ECAM/flipflop/radar-altimeter-5-set eq 1
|
2020-06-25 23:27:26 +00:00
|
|
|
/ECAM/flipflop/radar-altimeter-5-output eq 1
|
2021-11-26 17:10:30 +00:00
|
|
|
/gear/gear[1]/compression-norm ne 0
|
2020-06-25 23:27:26 +00:00
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2020-10-20 21:24:29 +00:00
|
|
|
<switch name="/ECAM/phases/monostable/phase-1-300-output">
|
|
|
|
<default value="0"/>
|
2021-06-22 14:26:56 +00:00
|
|
|
<test logic="OR" value="1">
|
|
|
|
/ECAM/phases/monostable/phase-1-300-timer ne 0
|
2020-10-20 21:24:29 +00:00
|
|
|
/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/engines-1-2-not-running">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
2021-11-25 20:39:19 +00:00
|
|
|
/ECAM/warnings/logic/eng/JE1NORUN eq 1
|
|
|
|
/ECAM/warnings/logic/eng/JE2NORUN eq 1
|
2020-11-02 17:51:31 +00:00
|
|
|
</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">
|
2021-05-03 21:55:32 +00:00
|
|
|
fadec/control-1/detent ge 4
|
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">
|
2021-05-03 21:55:32 +00:00
|
|
|
fadec/control-1/detent eq 6
|
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">
|
2021-05-03 21:55:32 +00:00
|
|
|
fadec/control-2/detent ge 4
|
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">
|
2021-05-03 21:55:32 +00:00
|
|
|
fadec/control-2/detent eq 6
|
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
|
2021-05-03 21:55:32 +00:00
|
|
|
fadec/control-1/detent ge 2
|
|
|
|
fadec/control-2/detent ge 2
|
2020-11-02 17:51:31 +00:00
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
2021-06-22 14:26:56 +00:00
|
|
|
|
|
|
|
<switch name="/ECAM/phases/monostable/phase-5">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/phases/phase-calculation/takeoff-power eq 1
|
|
|
|
/ECAM/phases/phase-calculation/altitude-ge-1500 eq 0
|
|
|
|
/ECAM/logic/ground-calc-immediate eq 0
|
|
|
|
/ECAM/phases/monostable/gnd-output ne 1
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/monostable/phase-7">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/phases/phase-calculation/takeoff-power eq 0
|
|
|
|
/ECAM/phases/phase-calculation/altitude-ge-1500 eq 0
|
|
|
|
/ECAM/phases/phase-calculation/altitude-ge-800 eq 0
|
|
|
|
/ECAM/logic/ground-calc-immediate eq 0
|
|
|
|
/ECAM/phases/monostable/gnd-output ne 1
|
|
|
|
</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>
|
|
|
|
|
2021-06-22 14:26:56 +00:00
|
|
|
<switch name="/ECAM/phases/monostable/phase-9">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/warning-phase eq 9
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/flipflop/phase-10-set">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/warning-phase eq 9
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/flipflop/phase-10-reset">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/timer/ground-calc eq 1
|
|
|
|
/controls/engines/engine[0]/fire-btn eq 1
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/monostable/phase-1-300">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/phases/phase-calculation/engines-1-2-not-running eq 1
|
|
|
|
/ECAM/logic/ground-calc-immediate eq 1
|
|
|
|
/ECAM/warning-phase eq 9
|
|
|
|
/ECAM/phases/flipflop/phase-10-output eq 1
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/flipflop/phase-2-set">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
/ECAM/warning-phase eq 3
|
|
|
|
/ECAM/warning-phase eq 8
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/ECAM/phases/flipflop/phase-2-reset">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/ECAM/phases/monostable-80kt eq 0
|
|
|
|
/ECAM/warning-phase ne 9
|
|
|
|
/ECAM/timer/ground-calc eq 1
|
|
|
|
<test logic="OR">
|
|
|
|
/ECAM/phases/monostable/phase-9-output eq 0
|
|
|
|
/ECAM/phases/monostable/to-power-set-output eq 0
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
|
2020-06-25 23:27:26 +00:00
|
|
|
</channel>
|
|
|
|
|
|
|
|
</system>
|