2019-10-14 16:48:35 +00:00
|
|
|
<!-- Copyright (c) 2019 Jonathan Redpath (legoboyvdlp) -->
|
|
|
|
|
|
|
|
<system name="A320: Lights">
|
|
|
|
|
|
|
|
<channel name="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>
|
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>
|
|
|
|
|
|
|
|
<channel name="Exterior Lights">
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<switch name="controls/lighting/leftturnoff">
|
|
|
|
<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="/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">
|
|
|
|
/controls/flight/slats ge 0
|
|
|
|
/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>
|
|
|
|
|
|
|
|
</system>
|