1
0
Fork 0
A320-family/Systems/a320-fcs.xml

1527 lines
40 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
2019-10-14 16:48:35 +00:00
<!-- Airbus A320 FCS -->
2022-01-11 02:17:41 +00:00
<!-- Copyright (c) 2022 Josh Davidson (Octal450) -->
2019-10-14 16:48:35 +00:00
<system name="A320: FCS">
<property value="0">/controls/flight/flaps-input-last</property>
2019-10-14 16:48:35 +00:00
<channel name="Surface Droop">
<fcs_function name="hydraulics/aileron-droop">
<function>
<table>
<independentVar lookup="row">aero/qbar-psf</independentVar>
2019-10-14 16:48:35 +00:00
<tableData>
7 1
31 0
</tableData>
</table>
</function>
</fcs_function>
<fcs_function name="hydraulics/aileron-droop-rate">
<function>
<table>
<independentVar lookup="row">aero/qbar-psf</independentVar>
<tableData>
7 0.333333
31 2
2019-10-14 16:48:35 +00:00
</tableData>
</table>
</function>
</fcs_function>
<fcs_function name="hydraulics/elevator-droop">
<function>
<table>
<independentVar lookup="row">aero/qbar-psf</independentVar>
2019-10-14 16:48:35 +00:00
<tableData>
8 1
32 0
</tableData>
</table>
</function>
</fcs_function>
<fcs_function name="hydraulics/elevator-droop-rate">
<function>
<table>
<independentVar lookup="row">aero/qbar-psf</independentVar>
<tableData>
8 0.333333
32 2
2019-10-14 16:48:35 +00:00
</tableData>
</table>
</function>
</fcs_function>
<fcs_function name="hydraulics/rudder-swing">
<function>
<table>
<independentVar lookup="row">/velocities/airspeed-kt</independentVar> <!-- rudder is rather large at 7m2... so it doesn't take much speed to stop it -->
<tableData>
12 1.0
35 0.0
</tableData>
</table>
</function>
</fcs_function>
2019-10-14 16:48:35 +00:00
<actuator name="spoilers/anti-droop-cmd">
<input>fbw/spoiler-output</input>
<rate_limit sense="incr">0.9</rate_limit>
<rate_limit sense="decr">2.5</rate_limit>
</actuator>
<fcs_function name="spoilers/anti-droop-final">
<function>
<table>
<independentVar lookup="row">spoilers/anti-droop-cmd</independentVar>
<tableData>
0.5 0.0
1.0 1.0
</tableData>
</table>
</function>
</fcs_function>
</channel>
<channel name="Aileron L">
2022-08-16 16:04:48 +00:00
<summer name="hydraulics/aileron-l/input">
<input>fbw/aileron-output</input>
<input>-fbw/laf/output-ail</input>
<clipto>
<min>-1.0</min>
<max>1.0</max>
</clipto>
</summer>
2019-10-14 16:48:35 +00:00
<fcs_function name="hydraulics/aileron-l/extended">
<function>
<sum>
<value>-1</value>
2022-08-16 16:04:48 +00:00
<property>hydraulics/aileron-l/input</property>
2019-10-14 16:48:35 +00:00
</sum>
</function>
</fcs_function>
<fcs_function name="hydraulics/aileron-l/retracted">
<function>
<sum>
2022-08-16 16:04:48 +00:00
<property>hydraulics/aileron-l/input</property>
2019-10-14 16:48:35 +00:00
<table>
<independentVar lookup="row">/fdm/jsbsim/fcs/flap-pos-deg</independentVar>
<tableData>
1 0.00
5 0.26
</tableData>
</table>
</sum>
</function>
</fcs_function>
<switch name="hydraulics/aileron-l/pressure-switch-or">
<default value="0"/>
<test logic="OR" value="1">
2020-11-25 21:39:16 +00:00
<test logic="AND">
/systems/fctl/elac1 eq 1
/systems/hydraulic/blue-psi ge 1500
</test>
<test logic="AND">
/systems/fctl/elac2 eq 1
/systems/hydraulic/green-psi ge 1500
</test>
2019-10-14 16:48:35 +00:00
</test>
</switch>
<switch name="hydraulics/aileron-l/actuator-enabled">
<default value="0"/>
<test logic="AND" value="1">
hydraulics/aileron-l/pressure-switch-or eq 1
/systems/failures/aileron-left eq 0
</test>
</switch>
2019-10-14 16:48:35 +00:00
<switch name="hydraulics/aileron-l/switch">
<default value="hydraulics/aileron-droop"/>
<test logic="AND" value="hydraulics/aileron-l/extended">
hydraulics/aileron-l/actuator-enabled eq 1
2019-10-14 16:48:35 +00:00
spoilers/anti-droop-final ne 0
/gear/gear[1]/wow eq 1
/gear/gear[2]/wow eq 1
</test>
<test value="hydraulics/aileron-l/retracted">
hydraulics/aileron-l/actuator-enabled eq 1
2019-10-14 16:48:35 +00:00
</test>
<clipto>
<min>-1.0</min>
<max>1.0</max>
</clipto>
</switch>
<pure_gain name="hydraulics/aileron-l/cmd-deg">
2019-10-14 16:48:35 +00:00
<input>hydraulics/aileron-l/switch</input>
<gain>25</gain>
</pure_gain>
2019-10-14 16:48:35 +00:00
<switch name="hydraulics/aileron-l/rate">
<default value="hydraulics/aileron-droop-rate"/>
<test value="82">
hydraulics/aileron-l/actuator-enabled eq 1
</test>
</switch>
2019-10-14 16:48:35 +00:00
<actuator name="hydraulics/aileron-l/final-actuator">
<input>hydraulics/aileron-l/cmd-deg</input>
<rate_limit>hydraulics/aileron-l/rate</rate_limit>
2019-10-14 16:48:35 +00:00
<lag>26.5</lag>
<output>hydraulics/aileron-l/final-deg</output>
</actuator>
</channel>
<channel name="Aileron R">
2022-08-16 16:04:48 +00:00
<summer name="hydraulics/aileron-r/input">
<input>fbw/aileron-output</input>
<input>fbw/laf/output-ail</input>
<clipto>
<min>-1.0</min>
<max>1.0</max>
</clipto>
</summer>
2019-10-14 16:48:35 +00:00
<fcs_function name="hydraulics/aileron-r/extended">
<function>
<product>
<sum>
<value>1</value>
2022-08-16 16:04:48 +00:00
<property>hydraulics/aileron-r/input</property>
2019-10-14 16:48:35 +00:00
</sum>
<value>-1.0</value>
</product>
</function>
</fcs_function>
<fcs_function name="hydraulics/aileron-r/retracted">
<function>
<sum>
<product>
2022-08-16 16:04:48 +00:00
<property>hydraulics/aileron-r/input</property>
2019-10-14 16:48:35 +00:00
<value>-1.0</value>
</product>
<table>
<independentVar lookup="row">/fdm/jsbsim/fcs/flap-pos-deg</independentVar>
<tableData>
1 0.00
5 0.26
</tableData>
</table>
</sum>
</function>
</fcs_function>
<switch name="hydraulics/aileron-r/pressure-switch-or">
<default value="0"/>
<test logic="OR" value="1">
2020-11-25 21:39:16 +00:00
<test logic="AND">
/systems/fctl/elac1 eq 1
/systems/hydraulic/green-psi ge 1500
</test>
<test logic="AND">
/systems/fctl/elac2 eq 1
/systems/hydraulic/blue-psi ge 1500
</test>
2019-10-14 16:48:35 +00:00
</test>
</switch>
<switch name="hydraulics/aileron-r/actuator-enabled">
<default value="0"/>
<test logic="AND" value="1">
hydraulics/aileron-r/pressure-switch-or eq 1
/systems/failures/aileron-right eq 0
</test>
</switch>
2019-10-14 16:48:35 +00:00
<switch name="hydraulics/aileron-r/switch">
<default value="hydraulics/aileron-droop"/>
<test logic="AND" value="hydraulics/aileron-r/extended">
hydraulics/aileron-r/actuator-enabled eq 1
2019-10-14 16:48:35 +00:00
spoilers/anti-droop-final ne 0
/gear/gear[1]/wow eq 1
/gear/gear[2]/wow eq 1
</test>
<test value="hydraulics/aileron-r/retracted">
hydraulics/aileron-r/actuator-enabled eq 1
2019-10-14 16:48:35 +00:00
</test>
<clipto>
<min>-1.0</min>
<max>1.0</max>
</clipto>
</switch>
<pure_gain name="hydraulics/aileron-r/cmd-deg">
2019-10-14 16:48:35 +00:00
<input>hydraulics/aileron-r/switch</input>
<gain>25</gain>
</pure_gain>
2019-10-14 16:48:35 +00:00
<switch name="hydraulics/aileron-r/rate">
<default value="hydraulics/aileron-droop-rate"/>
<test value="82">
hydraulics/aileron-r/actuator-enabled eq 1
</test>
</switch>
2019-10-14 16:48:35 +00:00
<actuator name="hydraulics/aileron-r/final-actuator">
<input>hydraulics/aileron-r/cmd-deg</input>
<rate_limit>hydraulics/aileron-r/rate</rate_limit>
2019-10-14 16:48:35 +00:00
<lag>26.5</lag>
<output>hydraulics/aileron-r/final-deg</output>
</actuator>
</channel>
<channel name="Elevator Common">
<aerosurface_scale name="hydraulics/elevator-output-scale">
<input>fbw/elevator-output</input>
<range>
<min>-0.6666666666666666666666666666666</min> <!-- -20 degrees -->
<max>0.5</max> <!-- 15 degrees -->
2019-10-14 16:48:35 +00:00
</range>
</aerosurface_scale>
<switch name="hydraulics/elevator-output-switch">
<default value="hydraulics/elevator-output-scale"/>
<test value="fbw/elevator-output">
/velocities/groundspeed-kt lt 75
</test>
</switch>
</channel>
<channel name="Elevator L">
<switch name="hydraulics/elevator-l/pressure-switch-or">
<default value="0"/>
<test logic="OR" value="1">
<test logic="AND">
<test logic="OR">
/systems/fctl/elac1 eq 1
/systems/fctl/sec1 eq 1
</test>
/systems/hydraulic/blue-psi ge 1500
</test>
<test logic="AND">
<test logic="OR">
/systems/fctl/elac2 eq 1
/systems/fctl/sec2 eq 1
</test>
/systems/hydraulic/green-psi ge 1500
</test>
2019-10-14 16:48:35 +00:00
</test>
</switch>
<switch name="hydraulics/elevator-l/actuator-enabled">
<default value="0"/>
<test logic="AND" value="1"> <!-- Don't use pressure-switch-or -->
<test logic="OR">
/systems/hydraulic/blue-psi ge 1500
/systems/hydraulic/green-psi ge 1500
</test>
/systems/failures/elevator-left eq 0
</test>
</switch>
<switch name="hydraulics/elevator-l/switch">
<default value="hydraulics/elevator-droop"/>
<test logic="AND" value="0"> <!-- Only pitch trim available -->
hydraulics/elevator-l/actuator-enabled eq 1
/systems/fctl/elac1 eq 0
/systems/fctl/sec1 eq 0
/systems/fctl/elac2 eq 0
/systems/fctl/sec2 eq 0
</test>
2019-10-14 16:48:35 +00:00
<test logic="AND" value="hydraulics/elevator-output-switch">
hydraulics/elevator-l/actuator-enabled eq 1
2019-10-14 16:48:35 +00:00
hydraulics/elevator-l/pressure-switch-or eq 1
</test>
<clipto>
<min>-1.0</min>
<max>1.0</max>
</clipto>
</switch>
<pure_gain name="hydraulics/elevator-l/cmd-deg">
2019-10-14 16:48:35 +00:00
<input>hydraulics/elevator-l/switch</input>
<gain>30</gain>
<clipto>
2019-10-14 16:48:35 +00:00
<min>-30</min>
<max>15</max>
</clipto>
</pure_gain>
2019-10-14 16:48:35 +00:00
<switch name="hydraulics/elevator-l/rate">
<default value="hydraulics/elevator-droop-rate"/>
<test value="82">
hydraulics/elevator-l/actuator-enabled eq 1
</test>
</switch>
2019-10-14 16:48:35 +00:00
<actuator name="hydraulics/elevator-l/final-actuator">
<input>hydraulics/elevator-l/cmd-deg</input>
<rate_limit>hydraulics/elevator-l/rate</rate_limit>
2019-10-14 16:48:35 +00:00
<lag>26.5</lag>
<output>hydraulics/elevator-l/final-deg</output>
</actuator>
</channel>
<channel name="Elevator R">
<switch name="hydraulics/elevator-r/pressure-switch-or">
<default value="0"/>
<test logic="OR" value="1">
<test logic="AND">
<test logic="OR">
/systems/fctl/elac1 eq 1
/systems/fctl/sec1 eq 1
</test>
/systems/hydraulic/blue-psi ge 1500
</test>
<test logic="AND">
<test logic="OR">
/systems/fctl/elac2 eq 1
/systems/fctl/sec2 eq 1
</test>
/systems/hydraulic/yellow-psi ge 1500
</test>
2019-10-14 16:48:35 +00:00
</test>
</switch>
<switch name="hydraulics/elevator-r/actuator-enabled">
<default value="0"/>
<test logic="AND" value="1"> <!-- Don't use pressure-switch-or -->
<test logic="OR">
/systems/hydraulic/blue-psi ge 1500
/systems/hydraulic/yellow-psi ge 1500
</test>
/systems/failures/elevator-left eq 0
</test>
</switch>
<switch name="hydraulics/elevator-r/switch">
<default value="hydraulics/elevator-droop"/>
<test logic="AND" value="0"> <!-- Only pitch trim available -->
hydraulics/elevator-r/actuator-enabled eq 1
/systems/fctl/elac1 eq 0
/systems/fctl/sec1 eq 0
/systems/fctl/elac2 eq 0
/systems/fctl/sec2 eq 0
</test>
2019-10-14 16:48:35 +00:00
<test logic="AND" value="hydraulics/elevator-output-switch">
hydraulics/elevator-r/actuator-enabled eq 1
2019-10-14 16:48:35 +00:00
hydraulics/elevator-r/pressure-switch-or eq 1
</test>
<clipto>
<min>-1.0</min>
<max>1.0</max>
</clipto>
</switch>
<pure_gain name="hydraulics/elevator-r/cmd-deg">
2019-10-14 16:48:35 +00:00
<input>hydraulics/elevator-r/switch</input>
<gain>30</gain>
<clipto>
2019-10-14 16:48:35 +00:00
<min>-30</min>
<max>15</max>
</clipto>
</pure_gain>
2019-10-14 16:48:35 +00:00
<switch name="hydraulics/elevator-r/rate">
<default value="hydraulics/elevator-droop-rate"/>
<test value="82">
hydraulics/elevator-r/actuator-enabled eq 1
</test>
</switch>
2019-10-14 16:48:35 +00:00
<actuator name="hydraulics/elevator-r/final-actuator">
<input>hydraulics/elevator-r/cmd-deg</input>
<rate_limit>hydraulics/elevator-r/rate</rate_limit>
2019-10-14 16:48:35 +00:00
<lag>26.5</lag>
<output>hydraulics/elevator-r/final-deg</output>
</actuator>
</channel>
<channel name="Stabilizer">
2019-10-14 16:48:35 +00:00
2020-11-23 17:54:32 +00:00
<switch name="hydraulics/stabilizer/rate">
<default value="0"/> <!-- only mechanical input to hyd actuator. So it does need hydraulic power -->
2020-12-01 16:25:31 +00:00
<test value="0">
/systems/failures/fctl/ths-jam eq 1
</test>
<test logic="OR" value="0.25">
/systems/hydraulic/yellow-psi ge 1500
2019-10-14 16:48:35 +00:00
/systems/hydraulic/green-psi ge 1500
2020-12-01 16:25:31 +00:00
/systems/acconfig/autoconfig-running eq 1
2019-10-14 16:48:35 +00:00
</test>
</switch>
2020-11-23 17:54:32 +00:00
<aerosurface_scale name="hydraulics/stabilizer/cmd-deg">
2019-10-14 16:48:35 +00:00
<input>/controls/flight/elevator-trim</input>
<domain>
<min>-1.0</min>
<max>0.296296</max>
2019-10-14 16:48:35 +00:00
</domain>
<range>
<min>-13.5</min>
2019-10-14 16:48:35 +00:00
<max>4.0</max>
</range>
</aerosurface_scale>
2020-11-23 17:54:32 +00:00
<actuator name="hydraulics/stabilizer/final-actuator">
<input>hydraulics/stabilizer/cmd-deg</input>
<rate_limit>hydraulics/stabilizer/rate</rate_limit>
2019-10-14 16:48:35 +00:00
<lag>22.5</lag>
2020-11-23 17:54:32 +00:00
<output>hydraulics/stabilizer/final-deg</output>
2019-10-14 16:48:35 +00:00
</actuator>
</channel>
<channel name="Rudder">
<switch name="hydraulics/rudder/pressure-switch-or">
<default value="0"/>
<test logic="OR" value="1">
/systems/hydraulic/green-psi ge 1500
/systems/hydraulic/blue-psi ge 1500
/systems/hydraulic/yellow-psi ge 1500
</test>
</switch>
<switch name="/systems/fctl/yawdamper-1-active">
<default value="0"/>
<test logic="AND" value="1">
/systems/fctl/fac1-healthy-signal eq 1
/systems/hydraulic/green-psi ge 1500
<test logic="OR">
/systems/navigation/adr/operating-1 eq 1
/systems/navigation/adr/operating-3 eq 1
</test>
/systems/failures/fctl/yaw-damper-1 eq 0
</test>
</switch>
<switch name="/systems/fctl/yawdamper-2-active">
<default value="0"/>
<test logic="AND" value="1">
/systems/fctl/fac2-healthy-signal eq 1
/systems/hydraulic/yellow-psi ge 1500
<test logic="OR">
/systems/navigation/adr/operating-2 eq 1
/systems/navigation/adr/operating-3 eq 1
</test>
/systems/failures/fctl/yaw-damper-2 eq 0
</test>
</switch>
<switch name="/systems/fctl/yawdamper-active">
<default value="0"/>
<test logic="OR" value="1">
/systems/fctl/yawdamper-1-active eq 1
/systems/fctl/yawdamper-2-active eq 1
</test>
</switch>
<switch name="hydraulics/rudder/trim-autopilot">
<default value="0"/>
<test logic="AND" value="/controls/flight/rudder-trim">
/it-autoflight/output/ap1 eq 0
/it-autoflight/output/ap2 eq 0
</test>
</switch>
<pure_gain name="hydraulics/rudder/trim-cmd-deg">
<input>hydraulics/rudder/trim-autopilot</input>
<gain>20</gain>
</pure_gain>
2019-10-14 16:48:35 +00:00
<switch name="hydraulics/rudder/trim-rate">
<default value="0"/>
<test logic="OR" value="1">
<test logic="AND">
/systems/electrical/bus/dc-ess ge 25
/systems/fctl/fac1-healthy-signal eq 1
</test>
<test logic="AND">
/systems/electrical/bus/dc-2 ge 25
/systems/fctl/fac2-healthy-signal eq 1
</test>
</test>
</switch>
<actuator name="hydraulics/rudder/trim-deg">
<input>hydraulics/rudder/trim-cmd-deg</input>
<rate_limit>hydraulics/rudder/trim-rate</rate_limit>
</actuator>
2019-10-14 16:48:35 +00:00
<aerosurface_scale name="hydraulics/rudder/trim-norm">
<input>hydraulics/rudder/trim-deg</input>
<domain>
<min>-20</min>
<max>20</max>
</domain>
2019-10-14 16:48:35 +00:00
<range>
<min>-0.8</min>
<max>0.8</max>
</range>
</aerosurface_scale>
<summer name="hydraulics/rudder/summer">
<input>fbw/rudder-output</input>
<input>hydraulics/rudder/trim-norm</input>
<clipto>
<min>-1</min>
<max>1</max>
</clipto>
</summer>
<fcs_function name="hydraulics/rudder/swing-deg">
<function>
<product>
<property>hydraulics/rudder-swing</property>
<sin>
<toradians>
<difference>
<property>/orientation/heading-deg</property>
<property>/environment/wind-from-heading-deg</property>
</difference>
</toradians>
</sin>
<property>/environment/wind-speed-kt</property>
<value>1.6666</value>
</product>
</function>
<clipto>
<min>-25.0</min>
<max>25.0</max>
</clipto>
</fcs_function>
<aerosurface_scale name="hydraulics/rudder/swing-norm">
<input>hydraulics/rudder/swing-deg</input>
<domain>
<min>-25</min>
<max>25</max>
</domain>
<range>
<min>-1.0</min>
<max>1.0</max>
</range>
</aerosurface_scale>
2019-10-14 16:48:35 +00:00
<switch name="hydraulics/rudder/switch">
<default value="hydraulics/rudder/swing-norm"/>
<test logic="AND" value="hydraulics/rudder/summer">
hydraulics/rudder/pressure-switch-or ne 0
</test>
2019-10-14 16:48:35 +00:00
<clipto>
<min>fbw/yaw/max-deg-scale-neg</min>
<max>fbw/yaw/max-deg-scale</max>
</clipto>
</switch>
<pure_gain name="hydraulics/rudder/cmd-deg">
2019-10-14 16:48:35 +00:00
<input>hydraulics/rudder/switch</input>
<gain>25</gain>
</pure_gain>
2019-10-14 16:48:35 +00:00
2020-07-16 16:00:10 +00:00
<switch name="hydraulics/rudder/rate">
<default value="80"/>
<test logic="OR" value="25"> <!-- returns to center from centering spring / damping / aero -->
2020-07-16 16:00:10 +00:00
hydraulics/rudder/pressure-switch-or eq 0
</test>
</switch>
2019-10-14 16:48:35 +00:00
<actuator name="hydraulics/rudder/final-actuator">
<input>hydraulics/rudder/cmd-deg</input>
2020-07-16 16:00:10 +00:00
<rate_limit>hydraulics/rudder/rate</rate_limit>
2019-10-14 16:48:35 +00:00
<lag>25.5</lag>
<output>hydraulics/rudder/final-deg</output>
</actuator>
</channel>
<channel name="SFCC"> <!-- 40 for IAE, 35 for CFM/PW is simulated here properly, do NOT change it into seperate unless you like buggy behavior! -->
<switch name="/controls/flight/flaps-input">
<default value="0"/> <!-- 0 -->
<test logic="AND" value="1"> <!-- 1/1+F -->
/controls/flight/flaps ge 0.2
/controls/flight/flaps lt 0.4
</test>
<test logic="AND" value="2"> <!-- 2 -->
/controls/flight/flaps ge 0.4
/controls/flight/flaps lt 0.6
</test>
<test logic="AND" value="3"> <!-- 3 -->
/controls/flight/flaps ge 0.6
/controls/flight/flaps lt 0.8
</test>
<test logic="AND" value="4"> <!-- FULL -->
/controls/flight/flaps ge 0.8
</test>
<output>/controls/flight/flaps-input-out</output>
</switch>
<switch name="/controls/flight/flaps-1f-enable"> <!-- Flip flop, controls 1 vs 1+F -->
<default value="/controls/flight/flaps-1f-enable"/>
<test logic="OR" value="0"> <!-- Reset -->
/controls/flight/flaps-input ne 1
/instrumentation/airspeed-indicator/indicated-speed-kt ge 210
</test>
<test logic="AND" value="1"> <!-- 0 to 1 -->
/controls/flight/flaps-input eq 1
/controls/flight/flaps-input-last eq 0
/instrumentation/airspeed-indicator/indicated-speed-kt le 100
</test>
<test logic="AND" value="1"> <!-- 2/3/FULL to 1 -->
/controls/flight/flaps-input eq 1
/controls/flight/flaps-input-last ge 2
/instrumentation/airspeed-indicator/indicated-speed-kt lt 210
</test>
</switch>
<pure_gain name="/controls/flight/flaps-input-last"> <!-- This is very important for the logic of the flipflop, do not refactor removing this -->
<input>/controls/flight/flaps-input</input>
<gain>1.0</gain>
</pure_gain>
<switch name="/controls/flight/flaps-pos"> <!-- Split 1 and 1+F -->
<default value="0"/> <!-- 0 -->
<test logic="AND" value="1"> <!-- 1 -->
/controls/flight/flaps ge 0.2
/controls/flight/flaps lt 0.4
/controls/flight/flaps-1f-enable ne 1
</test>
<test logic="AND" value="2"> <!-- 1+F -->
/controls/flight/flaps ge 0.2
/controls/flight/flaps lt 0.4
/controls/flight/flaps-1f-enable eq 1
</test>
<test logic="AND" value="3"> <!-- 2 -->
/controls/flight/flaps ge 0.4
/controls/flight/flaps lt 0.6
</test>
<test logic="AND" value="4"> <!-- 3 -->
/controls/flight/flaps ge 0.6
/controls/flight/flaps lt 0.8
</test>
<test logic="AND" value="5"> <!-- FULL -->
/controls/flight/flaps ge 0.8
</test>
<output>/controls/flight/flaps-input-out</output>
</switch>
<switch name="/controls/flight/flaps-cmd">
<default value="0"/>
<test value="10"> <!-- 1+F -->
/controls/flight/flaps-pos eq 2
</test>
<test value="15"> <!-- 2 -->
/controls/flight/flaps-pos eq 3
</test>
<test value="20"> <!-- 3 -->
/controls/flight/flaps-pos eq 4
</test>
<test value="40"> <!-- Or 35 --> <!-- FULL -->
/controls/flight/flaps-pos eq 5
</test>
<clipto>
<min>0</min>
<max>/options/maxflap</max>
</clipto>
</switch>
<switch name="/controls/flight/slats-cmd">
<default value="0"/>
<test value="27"> <!-- FULL -->
/controls/flight/flaps-input eq 4
</test>
<test value="22"> <!-- 2/3 -->
/controls/flight/flaps-input ge 2
</test>
<test value="18"> <!-- 1/1+F -->
/controls/flight/flaps-input eq 1
</test>
</switch>
2019-10-14 16:48:35 +00:00
<switch name="fcs/sfcc/unit1-avail">
<default value="0"/>
<test logic="OR" value="1">
/systems/electrical/bus/dc-ess ge 25
</test>
</switch>
<switch name="fcs/sfcc/unit2-avail">
<default value="0"/>
<test logic="OR" value="1">
/systems/electrical/bus/dc-2 ge 25
</test>
</switch>
</channel>
<channel name="Flaps"> <!-- 40 for IAE, 35 for CFM/PW is simulated here properly, do NOT change it into seperate unless you like buggy behavior! -->
2019-10-14 16:48:35 +00:00
<switch name="fcs/flap-pos-rate">
<default value="0.0"/>
<test value="100">
/systems/acconfig/autoconfig-running eq 1
</test>
<test logic="AND" value="1.16666666">
/systems/hydraulic/green-psi ge 1500
/systems/hydraulic/yellow-psi ge 1500
fcs/sfcc/unit1-avail eq 1
fcs/sfcc/unit2-avail eq 1
</test>
<test logic="AND" value="0.58333333">
/systems/hydraulic/green-psi ge 1500
fcs/sfcc/unit1-avail eq 1
fcs/sfcc/unit2-avail eq 0
</test>
<test logic="AND" value="0.58333333">
/systems/hydraulic/yellow-psi ge 1500
fcs/sfcc/unit1-avail eq 0
fcs/sfcc/unit2-avail eq 1
</test>
<test logic="AND" value="0.58333333">
/systems/hydraulic/green-psi ge 1500
/systems/hydraulic/yellow-psi lt 1500
</test>
<test logic="AND" value="0.58333333">
/systems/hydraulic/green-psi lt 1500
/systems/hydraulic/yellow-psi ge 1500
</test>
</switch>
<actuator name="rubbish/flap-pos-deg">
<input>/controls/flight/flaps-cmd</input>
2019-10-14 16:48:35 +00:00
<rate_limit>fcs/flap-pos-rate</rate_limit>
<output>fcs/flap-pos-deg</output>
</actuator>
<aerosurface_scale name="rubbish/flap-pos-norm">
<input>fcs/flap-pos-deg</input>
<domain>
<min>0</min>
<max>40</max>
2019-10-14 16:48:35 +00:00
</domain>
<range>
<min>0</min>
<max>1</max>
</range>
<output>fcs/flap-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Slats">
<switch name="fcs/sfcc/slat-locked-cmd">
2020-07-13 22:26:01 +00:00
<default value="0"/>
<test logic="AND" value="1">
<test logic="OR">
fcs/sfcc/unit1-avail eq 1
fcs/sfcc/unit2-avail eq 1
</test>
fcs/sfcc/slat-locked-cmd eq 1
/systems/navigation/adr/operating-2 eq 1
2020-07-13 22:26:01 +00:00
<test logic="OR">
/gear/gear[1]/wow ne 1
/systems/navigation/adr/output/cas-2 ge 60
2020-07-13 22:26:01 +00:00
</test>
<test logic="OR">
/systems/navigation/adr/output/aoa-2 gt 7.6
/systems/navigation/adr/output/cas-2 lt 154
2020-07-13 22:26:01 +00:00
</test>
</test>
<test logic="AND" value="1">
<test logic="OR">
fcs/sfcc/unit1-avail eq 1
fcs/sfcc/unit2-avail eq 1
</test>
fcs/sfcc/slat-locked-cmd eq 0
2020-07-13 22:26:01 +00:00
/controls/flight/flaps-input ne 0
/systems/navigation/adr/operating-2 eq 1
2020-07-13 22:26:01 +00:00
<test logic="OR">
/gear/gear[1]/wow ne 1
/systems/navigation/adr/output/cas-2 ge 60
2020-07-13 22:26:01 +00:00
</test>
<test logic="OR">
/systems/navigation/adr/output/aoa-2 gt 8.5
/systems/navigation/adr/output/cas-2 lt 148
2020-07-13 22:26:01 +00:00
</test>
</test>
</switch>
<switch name="fcs/sfcc/slat-locked">
2020-07-13 22:26:01 +00:00
<default value="0"/>
<test logic="AND" value="1">
/controls/flight/flaps-input eq 0
fcs/slat-pos-deg le 18.01
fcs/sfcc/slat-locked-cmd eq 1
2020-07-13 22:26:01 +00:00
</test>
</switch>
2019-10-14 16:48:35 +00:00
<switch name="fcs/slat-pos-rate">
<default value="0.0"/>
2020-07-13 22:26:01 +00:00
<test logic="AND" value="0.0">
/controls/flight/flaps-input eq 0
fcs/slat-pos-deg le 18.01
fcs/sfcc/slat-locked eq 1
2020-07-13 22:26:01 +00:00
</test>
2019-10-14 16:48:35 +00:00
<test value="100">
/systems/acconfig/autoconfig-running eq 1
</test>
<test logic="AND" value="1.35">
/systems/hydraulic/blue-psi ge 1500
/systems/hydraulic/green-psi ge 1500
fcs/sfcc/unit1-avail eq 1
fcs/sfcc/unit2-avail eq 1
</test>
<test logic="AND" value="0.675">
/systems/hydraulic/blue-psi ge 1500
fcs/sfcc/unit1-avail eq 1
fcs/sfcc/unit2-avail eq 0
</test>
<test logic="AND" value="0.675">
/systems/hydraulic/green-psi ge 1500
fcs/sfcc/unit1-avail eq 0
fcs/sfcc/unit2-avail eq 1
</test>
<test logic="AND" value="0.675">
/systems/hydraulic/blue-psi ge 1500
/systems/hydraulic/green-psi lt 1500
</test>
<test logic="AND" value="0.675">
/systems/hydraulic/blue-psi lt 1500
/systems/hydraulic/green-psi ge 1500
</test>
</switch>
<actuator name="rubbish/slat-pos-deg">
<input>/controls/flight/slats-cmd</input>
2019-10-14 16:48:35 +00:00
<rate_limit>fcs/slat-pos-rate</rate_limit>
<output>fcs/slat-pos-deg</output>
</actuator>
<aerosurface_scale name="rubbish/slat-pos-norm">
<input>fcs/slat-pos-deg</input>
<domain>
<min>0</min>
<max>27</max>
</domain>
<range>
<min>0</min>
<max>1</max>
</range>
<output>fcs/slat-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Gear Common">
<switch name="/controls/gear/lever">
<default value="1"/>
<test value="0">
/controls/gear/lever-cockpit le 1
</test>
</switch>
</channel>
<channel name="Nose Gear">
<switch name="gear/unit[0]/rate-incr">
<default value="0"/>
<test logic="AND" value="1000">
/systems/acconfig/autoconfig-running eq 1
position/wow eq 1
</test>
<test value="0">
/systems/failures/gear/nose-actuator eq 1
</test>
2022-12-12 15:36:03 +00:00
<test value="0.0833333"> <!-- About 12 sec -->
/systems/hydraulic/green-psi ge 1500
</test>
<test logic="AND" value="0.0166667"> <!-- About 60 sec -->
/controls/hydraulic/switches/gear-gravity-ext eq 1
/accelerations/pilot-g ge 0.5
</test>
</switch>
<switch name="gear/unit[0]/rate-decr">
<default value="0"/>
<test logic="AND" value="1000">
/systems/acconfig/autoconfig-running eq 1
position/wow eq 1
</test>
<test value="0">
/systems/failures/gear/nose-actuator eq 1
</test>
<test value="0.0952381"> <!-- About 10.5 sec -->
/systems/hydraulic/green-psi ge 1500
</test>
</switch>
<actuator name="gear/unit[0]/pos-norm-actuator">
<input>/controls/gear/lever</input>
<rate_limit sense="incr">gear/unit[0]/rate-incr</rate_limit>
<rate_limit sense="decr">gear/unit[0]/rate-decr</rate_limit>
<output>gear/unit[0]/pos-norm</output>
</actuator>
</channel>
<channel name="Left Main Gear">
<switch name="gear/unit[1]/rate-incr">
<default value="0"/>
<test logic="AND" value="1000">
/systems/acconfig/autoconfig-running eq 1
position/wow eq 1
</test>
<test value="0">
/systems/failures/gear/left-actuator eq 1
</test>
<test value="0.0625"> <!-- About 16 sec -->
/systems/hydraulic/green-psi ge 1500
</test>
<test logic="AND" value="0.0222222"> <!-- About 45 sec -->
/controls/hydraulic/switches/gear-gravity-ext eq 1
/accelerations/pilot-g ge 0.5
</test>
</switch>
<switch name="gear/unit[1]/rate-decr">
<default value="0"/>
<test logic="AND" value="1000">
/systems/acconfig/autoconfig-running eq 1
position/wow eq 1
</test>
<test value="0">
/systems/failures/gear/left-actuator eq 1
</test>
<test value="0.1111111"> <!-- About 9 sec -->
/systems/hydraulic/green-psi ge 1500
</test>
</switch>
<actuator name="gear/unit[1]/pos-norm-actuator">
<input>/controls/gear/lever</input>
<rate_limit sense="incr">gear/unit[1]/rate-incr</rate_limit>
<rate_limit sense="decr">gear/unit[1]/rate-decr</rate_limit>
<output>gear/unit[1]/pos-norm</output>
</actuator>
</channel>
<channel name="Right Main Gear">
<switch name="gear/unit[2]/rate-incr">
<default value="0"/>
<test logic="AND" value="1000">
/systems/acconfig/autoconfig-running eq 1
position/wow eq 1
</test>
<test value="0">
/systems/failures/gear/right-actuator eq 1
</test>
<test value="0.0625"> <!-- About 16 sec -->
/systems/hydraulic/green-psi ge 1500
</test>
<test logic="AND" value="0.0222222"> <!-- About 45 sec -->
/controls/hydraulic/switches/gear-gravity-ext eq 1
/accelerations/pilot-g ge 0.5
</test>
</switch>
<switch name="gear/unit[2]/rate-decr">
<default value="0"/>
<test logic="AND" value="1000">
/systems/acconfig/autoconfig-running eq 1
position/wow eq 1
</test>
<test value="0">
/systems/failures/gear/right-actuator eq 1
</test>
<test value="0.1111111"> <!-- About 9 sec -->
/systems/hydraulic/green-psi ge 1500
</test>
</switch>
<actuator name="gear/unit[2]/pos-norm-actuator">
<input>/controls/gear/lever</input>
<rate_limit sense="incr">gear/unit[2]/rate-incr</rate_limit>
<rate_limit sense="decr">gear/unit[2]/rate-decr</rate_limit>
<output>gear/unit[2]/pos-norm</output>
</actuator>
</channel>
<channel name="Gear Misc">
<fcs_function name="gear/gear-all-norm">
<function>
<product>
<property>gear/unit[0]/pos-norm-actuator</property>
<property>gear/unit[1]/pos-norm-actuator</property>
<property>gear/unit[2]/pos-norm-actuator</property>
</product>
</function>
</fcs_function>
<switch name="gear/unit[0]/status">
<default value="1"/> <!-- In transit -->
<test logic="AND" value="0"> <!-- Up -->
/controls/gear/lever-cockpit eq 0
gear/unit[0]/pos-norm-actuator lt 0.01
</test>
<test logic="AND" value="2"> <!-- Down -->
/controls/gear/lever-cockpit eq 3
gear/unit[0]/pos-norm-actuator gt 0.99
</test>
</switch>
<switch name="gear/unit[1]/status">
<default value="1"/> <!-- In transit -->
<test logic="AND" value="0"> <!-- Up -->
/controls/gear/lever-cockpit eq 0
gear/unit[1]/pos-norm-actuator lt 0.01
</test>
<test logic="AND" value="2"> <!-- Down -->
/controls/gear/lever-cockpit eq 3
gear/unit[1]/pos-norm-actuator gt 0.99
</test>
</switch>
<switch name="gear/unit[2]/status">
<default value="1"/> <!-- In transit -->
<test logic="AND" value="0"> <!-- Up -->
/controls/gear/lever-cockpit eq 0
gear/unit[2]/pos-norm-actuator lt 0.01
</test>
<test logic="AND" value="2"> <!-- Down -->
/controls/gear/lever-cockpit eq 3
gear/unit[2]/pos-norm-actuator gt 0.99
</test>
</switch>
2019-10-14 16:48:35 +00:00
</channel>
<channel name="Tiller">
<switch name="/controls/gear/steering-switched">
<default value="fbw/sidestick/yaw-input"/>
<test value="0">
/gear/gear[0]/wow ne 1
</test>
<test value="/controls/gear/steering">
/systems/acconfig/options/seperate-tiller-axis eq 1
</test>
<test value="fbw/sidestick/roll-input">
2019-10-14 16:48:35 +00:00
/controls/flight/aileron-drives-tiller eq 1
</test>
</switch>
<scheduled_gain name="fbw/tiller-handle-scheduled">
<input>/controls/gear/steering-switched</input>
<table>
<independentVar lookup="row">/velocities/groundspeed-kt</independentVar>
<independentVar lookup="column">/systems/acconfig/options/seperate-tiller-axis</independentVar>
<tableData>
0 1
0.5 0 0
1.0 1 1
20.0 1 1
70.0 0 1
</tableData>
</table>
</scheduled_gain>
2021-01-17 20:52:23 +00:00
<actuator name="fbw/tiller-handle-cmd">
<input>fbw/tiller-handle-scheduled</input>
2021-01-17 20:52:23 +00:00
<rate_limit>0.16</rate_limit> <!-- 12/75 -->
</actuator>
<pure_gain name="/controls/gear/steering-deg">
<input>/controls/gear/steering</input>
<gain>75</gain>
</pure_gain>
<pure_gain name="hydraulics/tiller/autopush-cmd-deg">
<input>hydraulics/tiller/autopush-cmd</input>
<gain>75</gain>
</pure_gain>
<scheduled_gain name="hydraulics/tiller/fmgc-cmd-deg">
<input>fbw/fmgc/yaw-cmd</input>
<table>
<independentVar lookup="row">/velocities/groundspeed-kt</independentVar>
<tableData>
0.5 0
1.0 6
40.0 6
130.0 0
</tableData>
</table>
</scheduled_gain>
<switch name="hydraulics/tiller/rudder-cmd-input">
<default value="fbw/sidestick/yaw-input"/>
<test value="fbw/sidestick/roll-input">
/controls/flight/aileron-drives-tiller eq 1
</test>
</switch>
<pure_gain name="hydraulics/tiller/rudder-cmd-input-deg">
<input>hydraulics/tiller/rudder-cmd-input</input>
<gain>75</gain>
</pure_gain>
2020-05-24 19:41:46 +00:00
<fcs_function name="hydraulics/tiller/rudder-cmd-deg"> <!-- Combines rudder and tiller into just rudder -->
<function>
<table>
<independentVar lookup="row">zero</independentVar> <!-- Take advantage of the table lookup to interpolate -->
<independentVar lookup="column">hydraulics/tiller/rudder-cmd-input-deg</independentVar>
<independentVar lookup="table">/velocities/groundspeed-kt</independentVar>
<tableData breakPoint="0.5">
2020-05-24 18:41:29 +00:00
-75 -66 -40 -20 -1 1 20 40 66 75
0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0
</tableData>
<tableData breakPoint="1.0">
-75 -66 -40 -20 -1 1 20 40 66 75
0 -75 -45 -15 -4 0 0 4 15 45 75
1 -75 -45 -15 -4 0 0 4 15 45 75
</tableData>
<tableData breakPoint="20.0">
-75 -66 -40 -20 -1 1 20 40 66 75
0 -75 -45 -15 -4 0 0 4 15 45 75
1 -75 -45 -15 -4 0 0 4 15 45 75
</tableData>
<tableData breakPoint="40.0">
2020-05-24 20:19:10 +00:00
-75 0 75
0 -6 0 6
1 -6 0 6
</tableData>
<tableData breakPoint="130.0">
2020-05-24 20:19:10 +00:00
-75 0 75
0 0 0 0
1 0 0 0
</tableData>
</table>
</function>
</fcs_function>
<fcs_function name="hydraulics/tiller/tiller-cmd-deg">
<function>
<sum>
<table>
<independentVar lookup="row">/velocities/groundspeed-kt</independentVar>
<independentVar lookup="column">/controls/gear/steering-deg</independentVar>
<tableData>
-75 -66 -40 -20 -1 1 20 40 66 75
0.5 0 0 0 0 0 0 0 0 0 0
1.0 -75 -45 -15 -4 0 0 4 15 45 75
20.0 -75 -45 -15 -4 0 0 4 15 45 75
70.0 0 0 0 0 0 0 0 0 0 0
</tableData>
</table>
<product>
<property>hydraulics/tiller/rudder-cmd-input</property>
<table>
<independentVar lookup="row">/velocities/groundspeed-kt</independentVar>
<tableData>
0.5 0
1.0 6
40.0 6
130.0 0
</tableData>
</table>
</product>
</sum>
</function>
</fcs_function>
<switch name="hydraulics/tiller/cmd-deg">
<default value="hydraulics/tiller/rudder-cmd-deg"/>
<test value="0">
/gear/gear[0]/wow ne 1
</test>
<test value="hydraulics/tiller/autopush-cmd-deg">
/sim/model/autopush/connected eq 1
</test>
<test value="hydraulics/tiller/fmgc-cmd-deg">
2019-10-14 16:48:35 +00:00
fbw/fmgc/enabled eq 1
</test>
<test value="hydraulics/tiller/tiller-cmd-deg">
/systems/acconfig/options/seperate-tiller-axis eq 1
</test>
<clipto>
<min>-75</min>
<max>75</max>
</clipto>
2019-10-14 16:48:35 +00:00
</switch>
<switch name="hydraulics/tiller/elec-pwr">
<default value="0"/>
<test logic="OR" value="1">
/systems/electrical/bus/ac-1 ge 110
/systems/electrical/bus/ac-2 ge 110
/systems/electrical/bus/dc-1 ge 25
/systems/electrical/bus/dc-2 ge 25
</test>
</switch>
<switch name="hydraulics/tiller/hyd-pwr">
<default value="0"/>
<test logic="AND" value="1">
position/wow eq 1
hydraulics/tiller/elec-pwr eq 1
/systems/hydraulic/yellow-psi ge 1500
/sim/model/autopush/connected eq 0
/controls/gear/nws-switch eq 1
<test logic="OR">
/engines/engine[0]/state eq 3
/engines/engine[1]/state eq 3
</test>
2019-10-14 16:48:35 +00:00
</test>
</switch>
<switch name="fcs/steer-rate">
<default value="0"/>
<test logic="OR" value="75">
2019-10-14 16:48:35 +00:00
/sim/model/autopush/connected eq 1
/systems/acconfig/autoconfig-running eq 1
</test>
2020-05-24 19:22:33 +00:00
<test logic="OR" value="12">
hydraulics/tiller/hyd-pwr eq 1
</test>
2019-10-14 16:48:35 +00:00
</switch>
<actuator name="fcs/steer-deg">
<input>hydraulics/tiller/cmd-deg</input>
2019-10-14 16:48:35 +00:00
<rate_limit>fcs/steer-rate</rate_limit>
<output>fcs/steer-pos-deg[0]</output>
</actuator>
<switch name="fcs/pushback-steer-deg">
<default value="0"/>
<test value="fcs/steer-deg">
/sim/model/autopush/connected eq 1
</test>
</switch>
</channel>
<channel name="Brakes">
<actuator name="fcs/brake-left">
2019-10-14 16:48:35 +00:00
<input>/controls/gear/brake-left</input>
<rate_limit>2</rate_limit>
</actuator>
<actuator name="fcs/brake-right">
<input>/controls/gear/brake-right</input>
<rate_limit>2</rate_limit>
</actuator>
<switch name="fcs/brake-avail">
<default value="0"/>
<test logic="OR" value="1">
/services/chocks/enable eq 1
/systems/hydraulic/green-psi ge 2500
/systems/hydraulic/yellow-psi ge 1000
/systems/hydraulic/yellow-accumulator-psi gt 0
</test>
<output>fcs/brake-avail</output>
</switch>
<fcs_function name="fcs/left-brake-input">
<function>
<product>
<property>fcs/brake-avail</property>
<max>
<property>/services/chocks/enable</property>
<property>fcs/brake-left</property>
<product>
<property>/controls/autobrake/brake-left</property>
<property>/controls/autobrake/active</property>
</product>
<property>/controls/gear/brake-parking</property>
</max>
</product>
</function>
2019-10-14 16:48:35 +00:00
<clipto>
<min>0</min>
<max>1</max>
</clipto>
</fcs_function>
<actuator name="fcs/left-brake-actuator">
<input>fcs/left-brake-input</input>
<rate_limit>10</rate_limit>
</actuator>
2019-10-14 16:48:35 +00:00
<switch name="rubbish/left-brake-cmd-norm">
<default value="fcs/left-brake-actuator"/>
<test value="1">
/systems/acconfig/autoconfig-running eq 1
2019-10-14 16:48:35 +00:00
</test>
<output>fcs/left-brake-cmd-norm</output>
</switch>
<fcs_function name="fcs/right-brake-input">
<function>
<product>
<property>fcs/brake-avail</property>
<max>
<property>/services/chocks/enable</property>
<property>fcs/brake-right</property>
<product>
<property>/controls/autobrake/brake-right</property>
<property>/controls/autobrake/active</property>
</product>
<property>/controls/gear/brake-parking</property>
</max>
</product>
</function>
2019-10-14 16:48:35 +00:00
<clipto>
<min>0</min>
<max>1</max>
</clipto>
</fcs_function>
<actuator name="fcs/right-brake-actuator">
<input>fcs/right-brake-input</input>
<rate_limit>10</rate_limit>
</actuator>
2019-10-14 16:48:35 +00:00
<switch name="rubbish/right-brake-cmd-norm">
<default value="fcs/right-brake-actuator"/>
<test value="1">
/systems/acconfig/autoconfig-running eq 1
2019-10-14 16:48:35 +00:00
</test>
<output>fcs/right-brake-cmd-norm</output>
</switch>
</channel>
2020-08-28 20:22:44 +00:00
<channel name="Wipers">
<switch name="fcs/left-wiper-cmd">
<default value="0"/>
<test logic="AND" value="0">
fcs/left-wiper-pos-norm gt 0.001
fcs/left-wiper-has-been-1 eq 1
</test>
<test logic="AND" value="1">
fcs/left-wiper-has-been-1 eq 0
/controls/switches/wiperLspd ne 0
</test>
</switch>
<switch name="fcs/left-wiper-has-been-1">
<default value="0"/>
<test value="0">
fcs/left-wiper-pos-norm le 0.001
</test>
<test value="1">
fcs/left-wiper-has-been-1 eq 1
</test>
<test value="1">
fcs/left-wiper-pos-norm ge 0.999
</test>
</switch>
<switch name="fcs/left-wiper-speed">
<default value="0"/>
<test logic="AND" value="fcs/left-wiper-speed">
/controls/switches/wiperLspd eq 0
fcs/left-wiper-pos-norm ge 0.001
/systems/electrical/bus/dc-1 ge 25
</test>
2022-01-15 23:00:00 +00:00
<test logic="AND" value="3.167">
2020-08-28 20:22:44 +00:00
/controls/switches/wiperLspd eq 1
/systems/electrical/bus/dc-1 ge 25
</test>
2022-01-15 23:00:00 +00:00
<test logic="AND" value="4.667">
2020-08-28 20:22:44 +00:00
/controls/switches/wiperLspd eq 2
/systems/electrical/bus/dc-1 ge 25
</test>
</switch>
<actuator name="fcs/left-wiper-pos-norm">
<input>fcs/left-wiper-cmd</input>
<rate_limit>fcs/left-wiper-speed</rate_limit>
</actuator>
<switch name="fcs/right-wiper-cmd">
<default value="0"/>
<test logic="AND" value="0">
fcs/right-wiper-pos-norm gt 0.001
fcs/right-wiper-has-been-1 eq 1
</test>
<test logic="AND" value="1">
fcs/right-wiper-has-been-1 eq 0
/controls/switches/wiperRspd ne 0
</test>
</switch>
<switch name="fcs/right-wiper-has-been-1">
<default value="0"/>
<test value="0">
fcs/right-wiper-pos-norm le 0.001
</test>
<test value="1">
fcs/right-wiper-has-been-1 eq 1
</test>
<test value="1">
fcs/right-wiper-pos-norm ge 0.999
</test>
</switch>
<switch name="fcs/right-wiper-speed">
<default value="0"/>
<test logic="AND" value="fcs/right-wiper-speed">
/controls/switches/wiperRspd eq 0
fcs/right-wiper-pos-norm ge 0.001
/systems/electrical/bus/dc-2 ge 25
</test>
2022-01-15 23:00:00 +00:00
<test logic="AND" value="3.167">
2020-08-28 20:22:44 +00:00
/controls/switches/wiperRspd eq 1
/systems/electrical/bus/dc-2 ge 25
</test>
2022-01-15 23:00:00 +00:00
<test logic="AND" value="4.667">
2020-08-28 20:22:44 +00:00
/controls/switches/wiperRspd eq 2
/systems/electrical/bus/dc-2 ge 25
</test>
</switch>
<actuator name="fcs/right-wiper-pos-norm">
<input>fcs/right-wiper-cmd</input>
<rate_limit>fcs/right-wiper-speed</rate_limit>
</actuator>
</channel>
2019-10-14 16:48:35 +00:00
</system>