5359cdb3ec
* Cockpit door switch and basic lock logic * Little fix for leftturnoff light * Toottip for transponder knob (it's very hard to me guess the mode selected) * Foot warmer switches cpt and fo * FGCamera compatibility for 0-9 view selection keys * Enable mouse wheel for landing light switches Co-authored-by: Inuyaksa <inuyaksa@yahoo.com>
267 lines
7.1 KiB
XML
267 lines
7.1 KiB
XML
<!-- 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 110
|
|
</test>
|
|
</switch>
|
|
|
|
<switch name="/controls/lighting/fcu-digit-norm-tied">
|
|
<default value="0" />
|
|
<test logic="OR" value="/controls/lighting/fcu-digit-knb">
|
|
/systems/electrical/bus/ac-si-bus ge 110
|
|
/systems/electrical/bus/ac-ess-shed ge 110
|
|
</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 110
|
|
</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 110
|
|
</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="/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">
|
|
fcs/flap-pos-deg ge 15
|
|
/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="Signs">
|
|
|
|
<switch name="/controls/lighting/no-smoking-sign">
|
|
<default value="0"/>
|
|
<test logic="AND" value="1">
|
|
<test logic="OR">
|
|
/systems/electrical/bus/dc-ess ge 25
|
|
/systems/electrical/bus/dc-service-bus ge 25
|
|
</test>
|
|
<test logic="OR">
|
|
/systems/pressurization/cabinalt-norm ge 11300
|
|
/controls/switches/no-smoking-sign eq 1
|
|
</test>
|
|
</test>
|
|
<test logic="AND" value="1">
|
|
/controls/switches/no-smoking-sign eq 0.5
|
|
/gear/gear[0]/position-norm ge 0.8
|
|
<test logic="OR">
|
|
/systems/electrical/bus/dc-ess ge 25
|
|
/systems/electrical/bus/dc-service-bus ge 25
|
|
</test>
|
|
</test>
|
|
</switch>
|
|
|
|
<switch name="/controls/lighting/seatbelt-sign">
|
|
<default value="0"/>
|
|
<test logic="AND" value="1">
|
|
<test logic="OR">
|
|
/systems/electrical/bus/dc-ess ge 25
|
|
/systems/electrical/bus/dc-service-bus ge 25
|
|
</test>
|
|
<test logic="OR">
|
|
/systems/pressurization/cabinalt-norm ge 11300
|
|
/controls/switches/seatbelt-sign eq 1
|
|
</test>
|
|
</test>
|
|
</switch>
|
|
|
|
</channel>
|
|
|
|
</system>
|