2020-06-03 15:14:50 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
2021-08-18 11:33:09 +00:00
|
|
|
<!-- Copyright (c) 2021 Jonathan Redpath (legoboyvdlp) -->
|
2019-10-14 16:48:35 +00:00
|
|
|
|
|
|
|
<system name="A320: Lights">
|
|
|
|
|
2020-07-19 13:01:13 +00:00
|
|
|
<channel name="Interior Lights" execrate="8">
|
2021-08-18 11:33:09 +00:00
|
|
|
|
|
|
|
<switch name="/controls/lighting/reading-light-left">
|
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/reading-light-left-knb">
|
|
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/reading-light-right">
|
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/reading-light-right-knb">
|
|
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/map-light-left">
|
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/map-light-left-knb">
|
|
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/map-light-right">
|
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/map-light-right-knb">
|
|
|
|
/systems/electrical/bus/dc-2 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
<switch name="/controls/lighting/console-floor-light">
|
2019-10-14 16:48:35 +00:00
|
|
|
<default value="0" />
|
2021-08-18 11:33:09 +00:00
|
|
|
<test value="/controls/lighting/console-floor-light-sw">
|
2019-10-14 16:48:35 +00:00
|
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2021-08-18 11:33:09 +00:00
|
|
|
<switch name="/controls/lighting/console-floor-light-right">
|
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/console-floor-light-sw-right">
|
|
|
|
/systems/electrical/bus/dc-2 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/panel-flood-light-left">
|
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
|
2021-08-18 11:33:09 +00:00
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/panel-flood-light-right">
|
|
|
|
<default value="0" />
|
|
|
|
<test logic="OR" value="/controls/lighting/main-flood-knb">
|
2019-10-14 16:48:35 +00:00
|
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2021-08-18 11:33:09 +00:00
|
|
|
<switch name="/controls/lighting/pedestal-light">
|
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>
|
|
|
|
|
2021-07-28 18:03:06 +00:00
|
|
|
<switch name="/controls/lighting/fcu-digit-norm-tied">
|
|
|
|
<default value="0" />
|
|
|
|
<test value="/controls/lighting/fcu-digit-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>
|
2020-07-12 13:53:15 +00:00
|
|
|
|
|
|
|
<switch name="/sim/model/lights/dome-light">
|
|
|
|
<default value="0" />
|
|
|
|
<test logic="AND" value="0.5">
|
|
|
|
/controls/lighting/dome-norm eq 0.5
|
|
|
|
/systems/electrical/bus/dc-ess ge 25
|
|
|
|
</test>
|
|
|
|
<test logic="AND" value="1.0">
|
|
|
|
/controls/lighting/dome-norm eq 1.0
|
|
|
|
/systems/electrical/bus/dc-ess ge 25
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
</channel>
|
|
|
|
|
2020-07-19 13:01:13 +00:00
|
|
|
<channel name="Exterior Lights" execrate="8">
|
2020-07-12 13:53:15 +00:00
|
|
|
|
|
|
|
<switch name="/sim/model/lights/nose-lights">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/lighting/taxi-light-switch eq 1
|
|
|
|
/gear/gear[0]/position-norm gt 0.8
|
|
|
|
<test logic="OR">
|
|
|
|
/systems/electrical/bus/ac-1 ge 110
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
<test logic="AND" value="0.85">
|
|
|
|
/controls/lighting/taxi-light-switch eq 0.5
|
|
|
|
/gear/gear[0]/position-norm gt 0.8
|
|
|
|
<test logic="OR">
|
|
|
|
/systems/electrical/bus/ac-1 ge 110
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2020-12-24 16:35:48 +00:00
|
|
|
<switch name="/controls/lighting/leftturnoff">
|
2020-07-12 13:53:15 +00:00
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/lighting/turnoff-light-switch eq 1
|
|
|
|
/gear/gear[0]/position-norm gt 0.8
|
|
|
|
/systems/electrical/bus/ac-1 ge 110
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/rightturnoff">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/lighting/turnoff-light-switch eq 1
|
|
|
|
/gear/gear[0]/position-norm gt 0.8
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/systems/electrical/nav-lights-power">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="OR" value="1">
|
|
|
|
/systems/electrical/bus/dc-1 ge 25
|
|
|
|
/systems/electrical/bus/dc-2 ge 25
|
|
|
|
/systems/electrical/bus/ac-1 ge 110
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/sim/model/lights/logo-lights">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
<test logic="OR">
|
|
|
|
/controls/lighting/nav-lights-switch eq 1
|
|
|
|
/controls/lighting/nav-lights-switch eq 2
|
|
|
|
</test>
|
|
|
|
<test logic="OR">
|
|
|
|
/systems/electrical/bus/ac-1 ge 110
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
<test logic="OR">
|
2021-08-23 19:16:59 +00:00
|
|
|
fcs/flap-pos-deg ge 15
|
2020-07-12 13:53:15 +00:00
|
|
|
/gear/gear[2]/wow eq 1
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/sim/model/lights/nav-lights">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
<test logic="OR">
|
|
|
|
/controls/lighting/nav-lights-switch eq 1
|
|
|
|
/controls/lighting/nav-lights-switch eq 2
|
|
|
|
</test>
|
|
|
|
/systems/electrical/nav-lights-power eq 1
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/strobe">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/switches/strobe eq 1
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/switches/strobe eq 0.5
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
/gear/gear[1]/wow eq 0
|
|
|
|
/gear/gear[2]/wow eq 0
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/beacon">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/switches/beacon eq 1
|
|
|
|
<test logic="OR">
|
|
|
|
/systems/electrical/bus/ac-1 ge 110
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/wing-lights">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/switches/wing-lights eq 1
|
|
|
|
<test logic="OR">
|
|
|
|
/systems/electrical/bus/ac-1 ge 110
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<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
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/controls/lighting/landing-lights[2]">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/switches/landing-lights-r eq 1
|
|
|
|
/systems/electrical/bus/ac-2 ge 110
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
|
|
|
|
<switch name="/fdm/jsbsim/rubbish/landL">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/lighting/landing-lights[1] ge 0.5
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
|
|
|
<switch name="/fdm/jsbsim/rubbish/landR">
|
|
|
|
<default value="0"/>
|
|
|
|
<test logic="AND" value="1">
|
|
|
|
/controls/lighting/landing-lights[2] ge 0.5
|
|
|
|
</test>
|
|
|
|
</switch>
|
|
|
|
|
2019-10-14 16:48:35 +00:00
|
|
|
</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">
|
2020-06-27 21:10:34 +00:00
|
|
|
/controls/switches/landing-lights-r eq 1
|
2020-06-09 16:28:41 +00:00
|
|
|
/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
|
|
|
|
2021-08-18 11:33:09 +00:00
|
|
|
</system>
|