289 lines
7.8 KiB
XML
289 lines
7.8 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!-- Copyright (c) 2019 Jonathan Redpath (legoboyvdlp) -->
|
|
|
|
<system name="A320: Lights">
|
|
|
|
<channel name="Interior Lights" execrate="8">
|
|
<switch name="/controls/lighting/reading-light-tied">
|
|
<default value="0" />
|
|
<test value="/controls/lighting/main-flood-knb">
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
</test>
|
|
</switch>
|
|
|
|
<switch name="/controls/lighting/panel-light-tied">
|
|
<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>
|
|
|
|
<switch name="/controls/lighting/pedestal-light-tied">
|
|
<default value="0" />
|
|
<test value="/controls/lighting/ped-flood-knb">
|
|
/systems/electrical/bus/dc-1 gt 25
|
|
</test>
|
|
</switch>
|
|
|
|
<switch name="/controls/lighting/fcu-panel-norm-tied">
|
|
<default value="0" />
|
|
<test value="/controls/lighting/fcu-panel-knb">
|
|
/systems/electrical/bus/ac-1 gt 25
|
|
</test>
|
|
</switch>
|
|
|
|
<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>
|
|
|
|
<switch name="/controls/lighting/main-panel-norm-tied">
|
|
<default value="0" />
|
|
<test value="/controls/lighting/main-panel-knb">
|
|
/systems/electrical/bus/ac-1 gt 25
|
|
</test>
|
|
</switch>
|
|
|
|
<switch name="/controls/lighting/overhead-panel-norm-tied">
|
|
<default value="0" />
|
|
<test value="/controls/lighting/overhead-panel-knb">
|
|
/systems/electrical/bus/ac-1 gt 25
|
|
</test>
|
|
</switch>
|
|
|
|
<switch name="/controls/lighting/annunciator-lights-tied">
|
|
<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>
|
|
|
|
<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" execrate="8">
|
|
|
|
<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="/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-cmd 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>
|
|
|
|
</channel>
|
|
|
|
<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 eq 1
|
|
/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>
|
|
|
|
</system>
|