2019-10-15 15:46:38 +00:00
<?xml version="1.0"?>
<!-- Copyright (c) 2019 Jonathan Redpath (legoboyvdlp), Joshua Davidson (Octal450) -->
<system name= "A320: Hydraulic" >
<property value= "500" > /systems/hydraulic/sys-incr-rate</property> <!-- 2 seconds per 1000 psi -->
2022-01-03 20:46:42 +00:00
<channel name= "Reservoir Quantity" execrate= "8" >
2019-10-15 15:46:38 +00:00
<!-- Blue -->
<switch name= "/systems/hydraulic/blue-qty-cmd" >
<default value= "/systems/hydraulic/blue-qty-input" />
<test value= "0" >
/systems/failures/hydraulic/blue-leak eq 1
</test>
</switch>
<switch name= "/systems/hydraulic/blue-qty-decr-rate" >
<default value= "100" /> <!-- Instant -->
<test value= "0.25" >
/systems/failures/hydraulic/blue-leak eq 1
</test>
</switch>
<actuator name= "/systems/hydraulic/blue-qty" >
<input > /systems/hydraulic/blue-qty-cmd</input>
<rate_limit sense= "incr" > 100</rate_limit> <!-- Instant -->
<rate_limit sense= "decr" > /systems/hydraulic/blue-qty-decr-rate</rate_limit>
</actuator>
<!-- Green -->
2021-07-25 00:12:54 +00:00
<switch name= "/systems/hydraulic/green-qty-cmd-cmd" >
2019-10-15 15:46:38 +00:00
<default value= "/systems/hydraulic/green-qty-input" />
<test value= "0" >
/systems/failures/hydraulic/green-leak eq 1
</test>
</switch>
2021-07-25 00:12:54 +00:00
<fcs_function name= "/systems/hydraulic/green-qty-cmd" >
<function >
<sum >
<property > /systems/hydraulic/green-qty-cmd-cmd</property>
<product >
<value > 2.1</value>
<property > /gear/gear[0]/position-norm</property>
</product>
</sum>
</function>
</fcs_function>
2019-10-15 15:46:38 +00:00
<switch name= "/systems/hydraulic/green-qty-decr-rate" >
<default value= "100" /> <!-- Instant -->
<test value= "0.25" >
/systems/failures/hydraulic/green-leak eq 1
</test>
</switch>
<actuator name= "/systems/hydraulic/green-qty" >
<input > /systems/hydraulic/green-qty-cmd</input>
<rate_limit sense= "incr" > 100</rate_limit> <!-- Instant -->
<rate_limit sense= "decr" > /systems/hydraulic/green-qty-decr-rate</rate_limit>
</actuator>
<!-- Yellow -->
<switch name= "/systems/hydraulic/yellow-qty-cmd" >
<default value= "/systems/hydraulic/yellow-qty-input" />
<test value= "0" >
/systems/failures/hydraulic/yellow-leak eq 1
</test>
</switch>
<switch name= "/systems/hydraulic/yellow-qty-decr-rate" >
<default value= "100" /> <!-- Instant -->
<test value= "0.25" >
/systems/failures/hydraulic/yellow-leak eq 1
</test>
</switch>
<actuator name= "/systems/hydraulic/yellow-qty" >
<input > /systems/hydraulic/yellow-qty-cmd</input>
<rate_limit sense= "incr" > 100</rate_limit> <!-- Instant -->
<rate_limit sense= "decr" > /systems/hydraulic/yellow-qty-decr-rate</rate_limit>
</actuator>
</channel>
2022-01-03 20:46:42 +00:00
<channel name= "Sources" execrate= "8" >
2019-10-15 15:46:38 +00:00
<!-- Common -->
<switch name= "/systems/hydraulic/sys-decr-rate" >
<default value= "150" /> <!-- 1 second per 150 psi -->
<test value= "500" > <!-- 2 seconds per 1000 psi for ACCONFIG -->
/systems/acconfig/autoconfig-running eq 1
</test>
</switch>
<!-- RAT Blue -->
<kinematic name= "/systems/hydraulic/sources/rat/position" >
<input > /systems/electrical/some-electric-thingie/rat-deploy</input>
<traverse >
<setting >
<position > 0.0</position>
<time > 0.0</time>
</setting>
<setting >
<position > 1.0</position>
<time > 2.5</time>
</setting>
</traverse>
</kinematic>
2020-06-05 18:14:01 +00:00
<fcs_function name= "/systems/hydraulic/sources/rat/door-position" >
<function >
<product >
<value > 5</value>
<property > /systems/hydraulic/sources/rat/position</property>
</product>
</function>
<clipto >
<min > 0</min>
<max > 1</max>
</clipto>
</fcs_function>
<fcs_function name= "/systems/hydraulic/sources/rat/arm-position" >
<function >
<sum >
<value > -0.2</value>
<product >
<property > /systems/hydraulic/sources/rat/position</property>
<value > 1.25</value>
</product>
</sum>
</function>
<clipto >
<min > 0</min>
<max > 1</max>
</clipto>
</fcs_function>
2020-06-05 21:48:53 +00:00
<scheduled_gain name= "/systems/hydraulic/sources/rat/rat-airspeed-cmd" >
<input > velocities/vc-kts</input>
<table >
2022-04-12 00:17:06 +00:00
<independentVar lookup= "row" > aero/alpha-deg-fixed</independentVar>
2020-06-05 21:48:53 +00:00
<tableData >
-60 0
0 1
60 0
</tableData>
</table>
</scheduled_gain>
<lag_filter name= "/systems/hydraulic/sources/rat/rat-airspeed" >
<input > /systems/hydraulic/sources/rat/rat-airspeed-cmd</input>
<c1 > 10</c1>
</lag_filter>
2020-06-05 20:56:05 +00:00
<fcs_function name= "/systems/hydraulic/sources/rat/rat-speed-rpm" >
<function >
<table >
2020-06-05 21:48:53 +00:00
<independentVar lookup= "row" > /systems/hydraulic/sources/rat/rat-airspeed</independentVar> <!-- use this meantime so it can stall. But ADR failures will break RAT which is bad... -->
2020-06-05 20:56:05 +00:00
<tableData >
2020-06-05 21:48:53 +00:00
50 0
85 150
90 2500
100 4800
350 6540
2020-06-05 20:56:05 +00:00
</tableData>
</table>
</function>
</fcs_function>
2019-10-15 15:46:38 +00:00
<fcs_function name= "/systems/hydraulic/sources/rat/source-psi" >
<function >
2019-10-15 18:03:43 +00:00
<ifthen >
<eq >
<property > /systems/hydraulic/sources/rat/position</property>
<value > 1</value>
</eq>
<table >
2020-06-05 21:48:53 +00:00
<independentVar lookup= "row" > /systems/hydraulic/sources/rat/rat-airspeed</independentVar>
2019-10-15 18:03:43 +00:00
<tableData >
2020-06-05 21:48:53 +00:00
90 0
100 2500
2019-10-15 18:03:43 +00:00
</tableData>
</table>
<value > 0</value>
</ifthen>
2019-10-15 15:46:38 +00:00
</function>
</fcs_function>
<switch name= "/systems/hydraulic/sources/rat/output-psi" >
<default value= "/systems/hydraulic/sources/rat/source-psi" />
</switch>
2022-01-03 21:43:55 +00:00
<!-- TODO PSI according to flow rate
0 L / M = 2987 psi
23 L / M = 2854 psi
32 L / M = 2175 psi
Power Draw 45A at speed of 7600 RPM to 8000 RPM max load
Startup Draw 138A
-->
2019-10-15 15:46:38 +00:00
<!-- Elec Blue -->
<switch name= "/systems/hydraulic/sources/blue-elec/pump-operate" >
<default value= "0" />
<test logic= "AND" value= "1" >
/controls/hydraulic/switches/blue-elec-ovrd eq 1
/controls/hydraulic/switches/blue-elec eq 1
position/wow eq 1
</test>
<test logic= "AND" value= "1" >
<test logic= "OR" >
/controls/hydraulic/switches/blue-elec-ovrd eq 1
/controls/hydraulic/switches/blue-elec eq 1
</test>
<test logic= "OR" >
/engines/engine[0]/state eq 3
/engines/engine[1]/state eq 3
</test>
/systems/electrical/bus/ac-1 ge 110
</test>
<test logic= "AND" value= "1" >
/systems/electrical/bus/ac-1 ge 110
/systems/electrical/relay/apu-glc/contact-pos eq 1
/systems/hydraulic/sources/blue-elec/pump-operate-apu-timer ne 0
</test>
</switch>
<switch name= "/systems/hydraulic/sources/blue-elec/pump-operate-apu" >
<default value= "0" />
<test logic= "AND" value= "1" >
gear/unit[0]/WOW eq 0
/systems/electrical/bus/ac-1 ge 110
<test logic= "OR" >
/engines/engine[0]/state ne 3
/engines/engine[1]/state ne 3
</test>
/systems/electrical/relay/apu-glc/contact-pos eq 1
</test>
</switch>
<actuator name= "/systems/hydraulic/sources/blue-elec/pump-operate-apu-timer" >
2020-06-05 21:48:53 +00:00
<input > /systems/hydraulic/sources/blue-elec/pump-operate-apu</input>
<rate_limit sense= "incr" > 100</rate_limit> <!-- Instant -->
<rate_limit sense= "decr" > 0.0083333</rate_limit> <!-- 120 seconds -->
</actuator>
2019-10-15 15:46:38 +00:00
<fcs_function name= "/systems/hydraulic/sources/blue-elec/source-psi" >
<function >
<ifthen >
<nq >
<property > /systems/failures/hydraulic/blue-elec</property>
<value > 1</value>
</nq>
<table >
<independentVar lookup= "row" > /systems/hydraulic/sources/blue-elec/pump-operate</independentVar>
<tableData >
2020-06-05 21:48:53 +00:00
0 0
1 3000
2019-10-15 15:46:38 +00:00
</tableData>
</table>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
<switch name= "/systems/hydraulic/sources/blue-elec/output-psi" >
<default value= "0" />
<test value= "/systems/hydraulic/sources/blue-elec/source-psi" >
/systems/failures/hydraulic/blue-elec eq 0
</test>
</switch>
2022-01-03 21:43:55 +00:00
<!-- TODO PSI according to flow rate
0 L / M = 3000 psi
140 L / M = 2854 psi
-->
2019-10-15 15:46:38 +00:00
<!-- EDP Green -->
<fcs_function name= "/systems/hydraulic/sources/green-edp/source-psi" >
<function >
<ifthen >
<nq >
<property > /systems/failures/hydraulic/green-edp</property>
<value > 1</value>
</nq>
<table >
<independentVar lookup= "row" > /engines/engine[0]/n2-actual</independentVar>
<tableData >
2020-06-05 21:48:53 +00:00
40 0
45 3000
2019-10-15 15:46:38 +00:00
</tableData>
</table>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
2019-10-15 18:03:43 +00:00
<actuator name= "/systems/hydraulic/sources/green-edp/fire-valve" >
<input > /controls/engines/engine[0]/fire-btn</input>
<rate_limit > 0.25</rate_limit> <!-- 4 seconds -->
</actuator>
2019-10-15 15:46:38 +00:00
<switch name= "/systems/hydraulic/sources/green-edp/output-psi" >
<default value= "0" />
<test value= "/systems/hydraulic/sources/green-edp/source-psi" >
/controls/hydraulic/switches/green-edp eq 1
</test>
</switch>
<!-- Elec Yellow -->
<switch name= "/systems/hydraulic/sources/yellow-elec/pump-operate" >
<default value= "0" />
<test logic= "AND" value= "1" >
/controls/hydraulic/switches/yellow-elec eq 1
2020-10-18 16:42:36 +00:00
/systems/failures/hydraulic/yellow-elec ne 1
2019-10-15 15:46:38 +00:00
<test logic= "OR" > <!-- TODO: via 3XX CB 122VU -->
2021-10-26 19:23:59 +00:00
/systems/electrical/relay/ext-epc/output ge 110
2019-10-15 15:46:38 +00:00
/systems/electrical/bus/ac-2 ge 110
</test>
</test>
</switch>
2022-01-03 21:43:55 +00:00
<!-- TODO PSI according to flow rate
0 L / M = 2987 psi
23 L / M = 2842 psi
32 L / M = 2175 psi
Power Draw 45A at full speed of 7700 RPM
Startup 138A
-->
2019-10-15 15:46:38 +00:00
<fcs_function name= "/systems/hydraulic/sources/yellow-elec/source-psi" >
<function >
2020-10-18 16:42:36 +00:00
<table >
<independentVar lookup= "row" > /systems/hydraulic/sources/yellow-elec/pump-operate</independentVar>
<tableData >
0 0
1 3000
</tableData>
</table>
2019-10-15 15:46:38 +00:00
</function>
</fcs_function>
<switch name= "/systems/hydraulic/sources/yellow-elec/output-psi" >
<default value= "0" />
<test value= "/systems/hydraulic/sources/yellow-elec/source-psi" >
/systems/failures/hydraulic/yellow-elec eq 0
</test>
</switch>
2022-01-03 21:43:55 +00:00
<!-- TODO PSI according to flow rate
0 L / M = 3000 psi
140 L / M = 2854 psi
-->
2019-10-15 15:46:38 +00:00
<!-- EDP Yellow -->
<fcs_function name= "/systems/hydraulic/sources/yellow-edp/source-psi" >
<function >
<ifthen >
<nq >
<property > /systems/failures/hydraulic/yellow-edp</property>
<value > 1</value>
</nq>
<table >
<independentVar lookup= "row" > /engines/engine[1]/n2-actual</independentVar>
<tableData >
2020-06-05 21:48:53 +00:00
40 0
2019-10-15 15:46:38 +00:00
45 3000
</tableData>
</table>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
2019-10-15 18:03:43 +00:00
<actuator name= "/systems/hydraulic/sources/yellow-edp/fire-valve" >
<input > /controls/engines/engine[1]/fire-btn</input>
<rate_limit > 0.25</rate_limit> <!-- 4 seconds -->
</actuator>
2019-10-15 15:46:38 +00:00
<switch name= "/systems/hydraulic/sources/yellow-edp/output-psi" >
<default value= "0" />
<test value= "/systems/hydraulic/sources/yellow-edp/source-psi" >
/controls/hydraulic/switches/yellow-edp eq 1
</test>
</switch>
2022-01-03 20:46:42 +00:00
</channel>
<channel name= "Pressure Totals" execrate= "8" >
2019-10-15 15:46:38 +00:00
<!-- Blue PSI -->
<fcs_function name= "/systems/hydraulic/blue-psi-cmd" >
<function >
<ifthen >
<ge >
<property > /systems/hydraulic/blue-qty</property>
<value > 1.0</value>
</ge>
<max >
<property > /systems/hydraulic/sources/blue-elec/output-psi</property>
<property > /systems/hydraulic/sources/rat/output-psi</property>
</max>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
<actuator name= "/systems/hydraulic/blue-psi" >
<input > /systems/hydraulic/blue-psi-cmd</input>
<rate_limit sense= "incr" > /systems/hydraulic/sys-incr-rate</rate_limit>
<rate_limit sense= "decr" > /systems/hydraulic/sys-decr-rate</rate_limit>
</actuator>
<!-- Green PSI -->
<fcs_function name= "/systems/hydraulic/green-psi-cmd-pump" >
<function >
<ifthen >
<ge >
<property > /systems/hydraulic/green-qty</property>
<value > 1.0</value>
</ge>
<property > /systems/hydraulic/sources/green-edp/output-psi</property>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
<fcs_function name= "/systems/hydraulic/green-psi-cmd" >
<function >
2022-01-03 21:43:55 +00:00
<product >
<ifthen >
<ge >
<property > /systems/hydraulic/green-qty</property>
<value > 1.0</value>
</ge>
<max >
<property > /systems/hydraulic/green-psi-cmd-pump</property>
<property > /systems/hydraulic/sources/ptu/yellow-green</property>
</max>
<value > 0</value>
</ifthen>
2022-01-03 21:47:35 +00:00
<difference >
<value > 1</value>
<property > /systems/hydraulic/sources/green-edp/fire-valve</property>
</difference>
2022-01-03 21:43:55 +00:00
</product>
2019-10-15 15:46:38 +00:00
</function>
</fcs_function>
<actuator name= "/systems/hydraulic/green-psi" >
<input > /systems/hydraulic/green-psi-cmd</input>
<rate_limit sense= "incr" > /systems/hydraulic/sys-incr-rate</rate_limit>
<rate_limit sense= "decr" > /systems/hydraulic/sys-decr-rate</rate_limit>
</actuator>
2019-10-15 18:03:43 +00:00
<pure_gain name= "/systems/hydraulic/green-psi-ptu" >
<input > /systems/hydraulic/green-psi</input>
<gain > 0.9</gain>
</pure_gain>
2019-10-15 15:46:38 +00:00
<!-- Yellow PSI -->
<fcs_function name= "/systems/hydraulic/yellow-psi-cmd-pump" >
<function >
<ifthen >
<ge >
<property > /systems/hydraulic/yellow-qty</property>
<value > 1.0</value>
</ge>
<max >
<property > /systems/hydraulic/sources/yellow-edp/output-psi</property>
<property > /systems/hydraulic/sources/yellow-elec/output-psi</property>
</max>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
<fcs_function name= "/systems/hydraulic/yellow-psi-cmd" >
<function >
2022-01-03 21:43:55 +00:00
<product >
<ifthen >
<ge >
<property > /systems/hydraulic/yellow-qty</property>
<value > 1.0</value>
</ge>
<max >
<property > /systems/hydraulic/yellow-psi-cmd-pump</property>
<property > /systems/hydraulic/sources/ptu/green-yellow</property>
</max>
<value > 0</value>
</ifthen>
2022-01-03 21:47:35 +00:00
<difference >
<value > 1</value>
<property > /systems/hydraulic/sources/yellow-edp/fire-valve</property>
</difference>
2022-01-03 21:43:55 +00:00
</product>
2019-10-15 15:46:38 +00:00
</function>
</fcs_function>
2020-11-29 23:08:21 +00:00
2019-10-15 15:46:38 +00:00
<actuator name= "/systems/hydraulic/yellow-psi" >
<input > /systems/hydraulic/yellow-psi-cmd</input>
<rate_limit sense= "incr" > /systems/hydraulic/sys-incr-rate</rate_limit>
<rate_limit sense= "decr" > /systems/hydraulic/sys-decr-rate</rate_limit>
</actuator>
2019-10-15 18:03:43 +00:00
<pure_gain name= "/systems/hydraulic/yellow-psi-ptu" >
<input > /systems/hydraulic/yellow-psi</input>
<gain > 0.9</gain>
</pure_gain>
2020-11-29 23:08:21 +00:00
<fcs_function name= "/systems/hydraulic/yellow-accumulator-psi-cmd" >
<function >
<ifthen >
<and >
<ge >
<property > /systems/hydraulic/yellow-psi</property>
<value > 0</value>
</ge>
<ge >
<property > /systems/hydraulic/yellow-psi</property>
<property > /systems/hydraulic/yellow-accumulator-psi-cmd</property>
</ge>
</and>
<max >
<property > /systems/hydraulic/yellow-psi</property>
<property > /systems/hydraulic/yellow-accumulator-psi-cmd</property>
</max>
<property > /systems/hydraulic/yellow-accumulator-psi-cmd</property>
</ifthen>
</function>
</fcs_function>
<actuator name= "/systems/hydraulic/yellow-accumulator-psi" >
<input > /systems/hydraulic/yellow-accumulator-psi-cmd</input>
<rate_limit sense= "incr" > /systems/hydraulic/sys-incr-rate</rate_limit>
<rate_limit sense= "decr" > /systems/hydraulic/sys-decr-rate</rate_limit>
</actuator>
2019-10-15 18:03:43 +00:00
2019-10-15 15:46:38 +00:00
<fcs_function name= "/systems/hydraulic/yellow-psi-diff" >
<function >
<difference >
<property > /systems/hydraulic/yellow-psi</property>
<property > /systems/hydraulic/green-psi</property>
</difference>
</function>
</fcs_function>
2022-01-03 21:43:55 +00:00
</channel>
<channel name= "Power Transfer Unit" execrate= "8" >
<!-- PTU -->
<!-- todo - add yellow pump running to close cargo doors inhibits PTU -->
2020-04-25 15:03:56 +00:00
<switch name= "/systems/hydraulic/sources/ptu/ptu-inhibited" >
2020-04-29 19:26:27 +00:00
<default value= "0" />
<test logic= "AND" value= "1" >
2022-01-03 21:43:55 +00:00
/systems/electrical/bus/dc-service-bus ge 25
2020-04-29 19:26:27 +00:00
/gear/gear[0]/compression-norm ne 0
<test logic= "OR" >
<test logic= "AND" >
/sim/model/autopush/enabled eq 1
/controls/gear/brake-parking eq 0
</test>
/controls/gear/brake-parking eq 1
2020-04-25 15:03:56 +00:00
</test>
2020-04-29 19:26:27 +00:00
<test logic= "OR" >
<test logic= "AND" >
/controls/engines/engine[0]/cutoff-switch eq 0
/controls/engines/engine[1]/cutoff-switch eq 1
</test>
<test logic= "AND" >
/controls/engines/engine[0]/cutoff-switch eq 1
/controls/engines/engine[1]/cutoff-switch eq 0
</test>
2020-04-25 15:03:56 +00:00
</test>
</test>
</switch>
<switch name= "/systems/hydraulic/sources/ptu/ptu-hydraulic-condition" >
2019-10-15 18:03:43 +00:00
<test logic= "AND" value= "0" >
/systems/hydraulic/yellow-psi-diff gt -250
/systems/hydraulic/yellow-psi-diff lt 250
2020-04-25 15:03:56 +00:00
/systems/hydraulic/sources/ptu/ptu-hydraulic-condition eq 1
2019-10-15 18:03:43 +00:00
</test>
<test logic= "AND" value= "1" >
<test logic= "OR" >
/systems/hydraulic/yellow-psi-diff ge 250
/systems/hydraulic/yellow-psi-diff le -250
</test>
2020-04-25 15:03:56 +00:00
/systems/hydraulic/sources/ptu/ptu-hydraulic-condition eq 1
2019-10-15 18:03:43 +00:00
</test>
<test logic= "AND" value= "1" >
<test logic= "OR" >
/systems/hydraulic/yellow-psi-diff gt 500
/systems/hydraulic/yellow-psi-diff lt -500
</test>
2020-04-25 15:03:56 +00:00
/systems/hydraulic/sources/ptu/ptu-hydraulic-condition eq 0
2019-10-15 15:46:38 +00:00
</test>
</switch>
2022-01-03 21:43:55 +00:00
<!-- Direction -->
2019-10-15 15:46:38 +00:00
<switch name= "/systems/hydraulic/sources/ptu/green-yellow" >
<default value= "0" />
2019-10-15 18:03:43 +00:00
<test logic= "AND" value= "/systems/hydraulic/green-psi-ptu" >
2022-01-03 21:43:55 +00:00
<test logic= "OR" >
/position/altitude-ft ge 1500
/gear/gear[0]/compression-norm ne 0
</test>
/systems/electrical/bus/dc-service-bus ge 25
2019-10-15 15:46:38 +00:00
/controls/hydraulic/switches/ptu eq 1
2020-04-25 15:03:56 +00:00
/systems/hydraulic/sources/ptu/ptu-hydraulic-condition eq 1
/systems/hydraulic/sources/ptu/ptu-inhibited eq 0
2019-10-15 15:46:38 +00:00
/systems/failures/hydraulic/ptu ne 1
</test>
</switch>
2022-01-03 21:43:55 +00:00
<switch name= "/systems/hydraulic/sources/ptu/yellow-green" >
<default value= "0" />
<test logic= "AND" value= "/systems/hydraulic/yellow-psi-ptu" >
<test logic= "OR" >
2022-01-03 21:47:35 +00:00
/position/gear-agl-ft ge 1500
2022-01-03 21:43:55 +00:00
/gear/gear[0]/compression-norm ne 0
</test>
/systems/electrical/bus/dc-service-bus ge 25
/controls/hydraulic/switches/ptu eq 1
/systems/hydraulic/sources/ptu/ptu-hydraulic-condition eq 1
/systems/hydraulic/sources/ptu/ptu-inhibited eq 0
/systems/failures/hydraulic/ptu ne 1
</test>
</switch>
<!-- fade in loop sound over 1 second -->
2020-04-25 15:03:56 +00:00
<switch name= "/systems/hydraulic/sources/ptu/ptu-loop-sound-cmd" >
<default value= "0" />
<test logic= "OR" value= "1" >
/systems/hydraulic/sources/ptu/yellow-green ne 0
/systems/hydraulic/sources/ptu/green-yellow ne 0
</test>
</switch>
<actuator name= "/systems/hydraulic/sources/ptu/ptu-loop-sound" >
<input > /systems/hydraulic/sources/ptu/ptu-loop-sound-cmd</input>
<rate_limit sense= "incr" > 1</rate_limit>
2020-10-20 21:24:29 +00:00
<rate_limit sense= "decr" > 120</rate_limit> <!-- instant -->
2020-04-25 15:03:56 +00:00
</actuator>
2019-10-15 15:46:38 +00:00
</channel>
2020-09-12 17:13:34 +00:00
<channel name= "Brakes" execrate= "8" >
<switch name= "/systems/hydraulic/brakes/mode" >
<default value= "0" />
<test logic= "AND" value= "1" >
/controls/gear/brake-parking ne 1
2021-02-08 15:45:57 +00:00
/controls/gear/nws-switch eq 1
2020-09-12 17:13:34 +00:00
/systems/hydraulic/green-psi ge 2500
</test>
<test logic= "AND" value= "2" >
/controls/gear/brake-parking ne 1
2021-02-08 15:45:57 +00:00
/controls/gear/nws-switch eq 1
2020-09-12 17:13:34 +00:00
/systems/hydraulic/yellow-psi ge 2500
</test>
<test logic= "AND" value= "2" >
/controls/gear/brake-parking ne 1
2020-11-29 23:08:21 +00:00
/systems/hydraulic/yellow-accumulator-psi-cmd ge 0
2020-09-12 17:13:34 +00:00
</test>
</switch>
2021-06-08 15:53:09 +00:00
2022-01-03 20:46:42 +00:00
<lag_filter name= "/systems/hydraulic/yellow-accumulator-psi-output-filter" >
2021-06-08 15:53:09 +00:00
<input > /systems/hydraulic/yellow-accumulator-psi</input>
<c1 > 9</c1>
</lag_filter>
2022-01-03 20:46:42 +00:00
<switch name= "/systems/hydraulic/yellow-accumulator-psi-output" >
<default value= "/systems/hydraulic/yellow-accumulator-psi-output-filter" />
<test value= "0" >
/systems/electrical/bus/dc-ess lt 25
</test>
</switch>
2021-06-08 15:53:09 +00:00
<switch name= "/systems/hydraulic/brakes/pressure-left-psi-input" >
<default value= "0" />
<test logic= "AND" value= "/systems/hydraulic/brakes/pressure-left-psi" >
/systems/hydraulic/brakes/mode ne 1
</test>
</switch>
<switch name= "/systems/hydraulic/brakes/pressure-right-psi-input" >
<default value= "0" />
<test logic= "AND" value= "/systems/hydraulic/brakes/pressure-right-psi" >
/systems/hydraulic/brakes/mode ne 1
</test>
</switch>
2022-01-03 20:46:42 +00:00
<lag_filter name= "/systems/hydraulic/brakes/pressure-left-psi-output-filter" >
2021-06-08 15:53:09 +00:00
<input > /systems/hydraulic/brakes/pressure-left-psi-input</input>
<c1 > 9</c1>
</lag_filter>
2022-01-03 20:46:42 +00:00
<switch name= "/systems/hydraulic/brakes/pressure-left-psi-output" >
<default value= "/systems/hydraulic/brakes/pressure-left-psi-output-filter" />
<test value= "0" >
/systems/electrical/bus/dc-ess lt 25
</test>
</switch>
<lag_filter name= "/systems/hydraulic/brakes/pressure-right-psi-output-filter" >
2021-06-08 15:53:09 +00:00
<input > /systems/hydraulic/brakes/pressure-right-psi-input</input>
<c1 > 9</c1>
</lag_filter>
2022-01-03 20:46:42 +00:00
<switch name= "/systems/hydraulic/brakes/pressure-right-psi-output" >
<default value= "/systems/hydraulic/brakes/pressure-right-psi-output-filter" />
<test value= "0" >
/systems/electrical/bus/dc-ess lt 25
</test>
</switch>
2020-09-12 17:13:34 +00:00
</channel>
2022-01-03 20:46:42 +00:00
<channel name= "Relays for Warnings" execrate= "8" >
2019-10-15 15:46:38 +00:00
2022-01-03 20:46:42 +00:00
<switch name= "/systems/hydraulic/relays/blue-reservoir-low-qty-switch" >
2019-10-15 15:46:38 +00:00
<default value= "0" />
2022-01-03 20:46:42 +00:00
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-1 ge 25
/systems/hydraulic/blue-qty lt 2.2
2019-10-15 15:46:38 +00:00
</test>
</switch>
2022-01-03 20:46:42 +00:00
<switch name= "/systems/hydraulic/relays/green-reservoir-low-qty-switch" >
2019-10-15 15:46:38 +00:00
<default value= "0" />
2022-01-03 20:46:42 +00:00
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-1 ge 25
/systems/hydraulic/green-qty lt 3.0
</test>
</switch>
<switch name= "/systems/hydraulic/relays/yellow-reservoir-low-qty-switch" >
<default value= "0" />
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-1 ge 25
/systems/hydraulic/yellow-qty lt 3.0
2019-10-15 15:46:38 +00:00
</test>
</switch>
2022-01-03 20:46:42 +00:00
<switch name= "/systems/hydraulic/relays/green-reservoir-low-qty-air-press-fault" >
2019-10-15 15:46:38 +00:00
<default value= "0" />
2022-01-03 20:46:42 +00:00
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-1 ge 25
<test logic= "OR" >
/systems/hydraulic/relays/green-reservoir-low-qty-switch eq 1
/systems/failures/hydraulic/green-reservoir-air-press-lo eq 1
2019-10-15 15:46:38 +00:00
</test>
</test>
</switch>
2022-01-03 20:46:42 +00:00
<switch name= "/systems/hydraulic/relays/yellow-reservoir-low-qty-air-press-fault" >
2019-10-15 15:46:38 +00:00
<default value= "0" />
2022-01-03 20:46:42 +00:00
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-2 ge 25
<test logic= "OR" >
/systems/hydraulic/relays/yellow-reservoir-low-qty-switch eq 1
/systems/failures/hydraulic/yellow-reservoir-air-press-lo eq 1
2019-10-15 15:46:38 +00:00
</test>
</test>
</switch>
2022-01-03 20:46:42 +00:00
<switch name= "/systems/hydraulic/relays/blue-reservoir-overheat" >
2019-10-15 15:46:38 +00:00
<default value= "0" />
2022-01-03 20:46:42 +00:00
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-ess ge 25
/systems/failures/hydraulic/blue-reservoir-ovht eq 1
</test>
</switch>
<switch name= "/systems/hydraulic/relays/green-reservoir-overheat" >
<default value= "0" />
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-1 ge 25
/systems/failures/hydraulic/green-reservoir-ovht eq 1
2019-10-15 15:46:38 +00:00
</test>
</switch>
2020-10-18 16:37:23 +00:00
2022-01-03 20:46:42 +00:00
<switch name= "/systems/hydraulic/relays/yellow-reservoir-overheat" >
<default value= "0" />
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-2 ge 25
/systems/failures/hydraulic/yellow-reservoir-ovht eq 1
</test>
</switch>
<!-- These are a physical switch, so there is no need for transducer power -->
2021-01-31 17:24:49 +00:00
<switch name= "/systems/hydraulic/warnings/blue-lo-pr" >
2020-10-18 16:37:23 +00:00
<default value= "0" />
<test logic= "OR" value= "1" >
<test logic= "AND" >
/systems/hydraulic/blue-psi lt 1750
2021-01-31 17:24:49 +00:00
/systems/hydraulic/warnings/blue-lo-pr eq 1
2020-10-18 16:37:23 +00:00
</test>
/systems/hydraulic/blue-psi lt 1450
</test>
</switch>
2021-01-31 17:24:49 +00:00
<switch name= "/systems/hydraulic/warnings/green-lo-pr" >
2020-10-18 16:37:23 +00:00
<default value= "0" />
<test logic= "OR" value= "1" >
<test logic= "AND" >
/systems/hydraulic/green-psi lt 1750
2021-01-31 17:24:49 +00:00
/systems/hydraulic/warnings/green-lo-pr eq 1
2020-10-18 16:37:23 +00:00
</test>
/systems/hydraulic/green-psi lt 1450
</test>
</switch>
2021-01-31 17:24:49 +00:00
<switch name= "/systems/hydraulic/warnings/yellow-lo-pr" >
2020-10-18 16:37:23 +00:00
<default value= "0" />
<test logic= "OR" value= "1" >
<test logic= "AND" >
/systems/hydraulic/yellow-psi lt 1750
2021-01-31 17:24:49 +00:00
/systems/hydraulic/warnings/yellow-lo-pr eq 1
2020-10-18 16:37:23 +00:00
</test>
/systems/hydraulic/yellow-psi lt 1450
</test>
</switch>
2019-10-15 15:46:38 +00:00
</channel>
2022-01-03 20:46:42 +00:00
<channel name= "Lights" execrate= "8" >
<switch name= "/systems/hydraulic/lights/ptu-fault" >
<default value= "0" />
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-2 ge 25
<test logic= "OR" >
/systems/hydraulic/relays/yellow-reservoir-overheat eq 1
/systems/hydraulic/relays/green-reservoir-overheat eq 1
<test logic= "AND" >
<test logic= "OR" >
/systems/hydraulic/relays/green-reservoir-low-qty-air-press-fault eq 1
/systems/hydraulic/relays/yellow-reservoir-low-qty-air-press-fault eq 1
</test>
/controls/hydraulic/switches/ptu eq 1
</test>
</test>
</test>
</switch>
<switch name= "/systems/hydraulic/lights/green-edp-fault" >
<default value= "0" />
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-1 ge 25
<test logic= "OR" >
/systems/hydraulic/relays/green-reservoir-overheat eq 1
<test logic= "AND" >
<test logic= "OR" >
<test logic= "AND" >
/systems/hydraulic/sources/green-edp/output-psi le 1750
/engines/engine[0]/state eq 3 <!-- TODO - oil pressure 73 - 25 SCH 09 -->
</test>
/systems/hydraulic/relays/green-reservoir-low-qty-air-press-fault eq 1
</test>
/controls/hydraulic/switches/green-edp eq 1
</test>
</test>
</test>
</switch>
<switch name= "/systems/hydraulic/lights/yellow-edp-fault" >
<default value= "0" />
<test logic= "AND" value= "1" >
/systems/electrical/bus/dc-2 ge 25
<test logic= "OR" >
/systems/hydraulic/relays/yellow-reservoir-overheat eq 1
<test logic= "AND" >
<test logic= "OR" >
<test logic= "AND" >
/systems/hydraulic/sources/yellow-edp/output-psi le 1750
/engines/engine[1]/state eq 3 <!-- TODO - oil pressure 73 - 25 SCH 09 -->
</test>
/systems/hydraulic/relays/yellow-reservoir-low-qty-air-press-fault eq 1
</test>
/controls/hydraulic/switches/yellow-edp eq 1
</test>
</test>
</test>
</switch>
<switch name= "/systems/hydraulic/lights/blue-elec-fault" >
<default value= "0" />
<test logic= "OR" value= "1" >
/systems/hydraulic/relays/blue-reservoir-overheat eq 1
/systems/failures/hydraulic/blue-elec-ovht eq 1
<test logic= "AND" >
<test logic= "OR" >
/systems/hydraulic/relays/blue-reservoir-low-qty-switch eq 1
/systems/failures/hydraulic/blue-reservoir-air-press-lo eq 1
<test logic= "AND" >
/systems/hydraulic/sources/blue-elec/output-psi le 1450
<test logic= "OR" >
/engines/engine[0]/state eq 3 <!-- TODO - oil pressure 73 - 25 SCH 09 -->
/engines/engine[1]/state eq 3
/controls/hydraulic/switches/blue-elec-ovrd eq 1
</test>
</test>
</test>
/controls/hydraulic/switches/blue-elec eq 1
</test>
</test>
</switch>
<switch name= "/systems/hydraulic/lights/yellow-elec-fault" >
<default value= "0" />
<test logic= "OR" value= "1" >
/systems/hydraulic/relays/yellow-reservoir-overheat eq 1
/systems/failures/hydraulic/yellow-elec-ovht eq 1
<test logic= "AND" >
<test logic= "OR" >
/systems/hydraulic/relays/yellow-reservoir-low-qty-switch eq 1
/systems/failures/hydraulic/yellow-reservoir-air-press-lo eq 1
/systems/hydraulic/sources/yellow-elec/output-psi le 1450
</test>
/controls/hydraulic/switches/yellow-elec eq 1
</test>
</test>
</switch>
</channel>
2019-10-15 15:46:38 +00:00
</system>