2020-06-03 15:14:50 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
2019-10-14 16:48:35 +00:00
|
|
|
<!-- Copyright (c) 2019 Jonathan Redpath (legoboyvdlp) -->
|
|
|
|
|
|
|
|
<system name="A320: Lights">
|
|
|
|
|
2020-06-09 16:28:41 +00:00
|
|
|
<channel name="Interior Lights">
|
2019-10-31 19:13:20 +00:00
|
|
|
<switch name="/controls/lighting/reading-light-tied">
|
2019-10-14 16:48:35 +00:00
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/main-flood-knb">
|
|
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2019-10-31 19:13:20 +00:00
|
|
|
<switch name="/controls/lighting/panel-light-tied">
|
2019-10-14 16:48:35 +00:00
|
|
|
<default value="0" />
|
|
|
|
<test logic="OR" value="/controls/lighting/main-flood-knb">
|
|
|
|
/systems/electrical/bus/dc-ess gt 25
|
|
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2019-10-31 19:13:20 +00:00
|
|
|
<switch name="/controls/lighting/pedestal-light-tied">
|
2019-10-14 16:48:35 +00:00
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/ped-flood-knb">
|
|
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2019-10-31 19:13:20 +00:00
|
|
|
<switch name="/controls/lighting/fcu-panel-norm-tied">
|
2019-10-14 16:48:35 +00:00
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/fcu-panel-knb">
|
|
|
|
/systems/electrical/bus/ac-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2019-10-31 19:13:20 +00:00
|
|
|
<switch name="/controls/lighting/main-panel-norm-tied">
|
2019-10-14 16:48:35 +00:00
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/main-panel-knb">
|
|
|
|
/systems/electrical/bus/ac-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2019-10-31 19:13:20 +00:00
|
|
|
<switch name="/controls/lighting/overhead-panel-norm-tied">
|
2019-10-14 16:48:35 +00:00
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/overhead-panel-knb">
|
|
|
|
/systems/electrical/bus/ac-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2019-10-31 19:13:20 +00:00
|
|
|
<switch name="/controls/lighting/annunciator-lights-tied">
|
2019-10-14 16:48:35 +00:00
|
|
|
<default value="0" />
|
|
|
|
<test logic="OR" value="1"> <!-- TODO: add static inverter as a source, also dc-2 switching -->
|
|
|
|
/systems/electrical/bus/ac-1 gt 110
|
|
|
|
/systems/electrical/bus/ac-2 gt 110
|
|
|
|
/systems/electrical/bus/dc-2 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
</channel>
|
2020-06-09 16:28:41 +00:00
|
|
|
|
|
|
|
<channel name="External lights">
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/landing-lights[1]">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/switches/landing-lights-l eq 1
|
|
|
|
/systems/electrical/bus/ac-1 ge 110
|
|
|
|
/controls/lighting/landing-light-pos-l eq 1
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/landing-lights[2]">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/switches/landing-lights-r ne 0
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
/controls/lighting/landing-light-pos-r eq 1
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/landing-light-pos-l-cmd">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/switches/landing-lights-l ne 0
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/landing-light-pos-r-cmd">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/switches/landing-lights-r ne 0
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/landing-light-pos-l-power">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="0.2">
|
|
|
|
/systems/electrical/bus/ac-1 ge 110
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/landing-light-pos-r-power">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="0.2">
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<actuator name="/controls/lighting/landing-light-pos-l">
|
|
|
|
<input>/controls/lighting/landing-light-pos-l-cmd</input>
|
|
|
|
<rate_limit>/controls/lighting/landing-light-pos-l-power</rate_limit>
|
|
|
|
</actuator>
|
|
|
|
|
|
|
|
<actuator name="/controls/lighting/landing-light-pos-r">
|
|
|
|
<input>/controls/lighting/landing-light-pos-r-cmd</input>
|
|
|
|
<rate_limit>/controls/lighting/landing-light-pos-r-power</rate_limit>
|
|
|
|
</actuator>
|
|
|
|
|
|
|
|
</channel>
|
2019-10-14 16:48:35 +00:00
|
|
|
|
|
|
|
</system>
|