ELT system simulated
This commit is contained in:
parent
5f14547ac9
commit
bfd6951621
6 changed files with 273 additions and 1 deletions
|
@ -948,6 +948,11 @@
|
|||
<emer-elec-man-on type="bool">0</emer-elec-man-on>
|
||||
</switches>
|
||||
</electrical>
|
||||
<elt>
|
||||
<elt-switch type="bool">false</elt-switch>
|
||||
<elt-switch-guard type="bool">false</elt-switch-guard>
|
||||
<elt-test-reset type="bool">false</elt-test-reset>
|
||||
</elt>
|
||||
<engines n="0">
|
||||
<engine n="0">
|
||||
<cutoff type="bool">true</cutoff>
|
||||
|
@ -1435,7 +1440,9 @@
|
|||
</bat-2>
|
||||
</sources>
|
||||
</electrical>
|
||||
|
||||
<elt>
|
||||
<light-on type="bool">false</light-on>
|
||||
</elt>
|
||||
<failures n="0">
|
||||
<aileron-left type="bool">0</aileron-left>
|
||||
<aileron-right type="bool">0</aileron-right>
|
||||
|
|
|
@ -22138,6 +22138,144 @@
|
|||
|
||||
<!-- Aft Overhead Panel -->
|
||||
|
||||
<animation>
|
||||
<type>knob</type>
|
||||
<object-name>ELTSwGuard</object-name>
|
||||
<property>/controls/cockpit/elt-guard-pos</property>
|
||||
<axis>
|
||||
<object-name>dummy_2.004.axis</object-name>
|
||||
</axis>
|
||||
<factor>-90</factor>
|
||||
<action>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>/controls/elt/elt-switch-guard</property>
|
||||
<min>0</min>
|
||||
<max>1</max>
|
||||
<wrap>false</wrap>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>setprop("sim/sounde/btn1", 1);</script>
|
||||
</binding>
|
||||
</action>
|
||||
<hovered>
|
||||
<binding>
|
||||
<command>set-tooltip</command>
|
||||
<tooltip-id>elt-sw-guard-lbl</tooltip-id>
|
||||
<label>ELT switch guard</label>
|
||||
</binding>
|
||||
</hovered>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>knob</type>
|
||||
<object-name>ELTSw</object-name>
|
||||
<property>/controls/cockpit/elt-switch-pos</property>
|
||||
<axis>
|
||||
<object-name>ELTSw.axis</object-name>
|
||||
</axis>
|
||||
<factor>-60</factor>
|
||||
<action>
|
||||
<binding>
|
||||
<condition>
|
||||
<property>/controls/elt/elt-switch-guard</property>
|
||||
</condition>
|
||||
<command>property-cycle</command>
|
||||
<property>/controls/elt/elt-switch</property>
|
||||
<value>0</value>
|
||||
<value>1</value>
|
||||
<wrap>false</wrap>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>setprop("sim/sounde/switch1", 1);</script>
|
||||
</binding>
|
||||
</action>
|
||||
<hovered>
|
||||
<binding>
|
||||
<command>set-tooltip</command>
|
||||
<tooltip-id>elt-sw-lbl</tooltip-id>
|
||||
<label>ELT switch</label>
|
||||
</binding>
|
||||
</hovered>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>EltLedOn</object-name>
|
||||
<condition>
|
||||
<property>/systems/elt/light-on</property>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>EltLedOn</object-name>
|
||||
<emission>
|
||||
<red>1.00</red>
|
||||
<green>0.0</green>
|
||||
<blue>0.00</blue>
|
||||
<property>/systems/elt/light-on</property>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>translate</type>
|
||||
<object-name>EltTestRst</object-name>
|
||||
<property>/controls/cockpit/elt-test-translate</property>
|
||||
<axis>
|
||||
<x1-m>0.883022</x1-m>
|
||||
<y1-m>-0.204701</y1-m>
|
||||
<z1-m>1.29746</z1-m>
|
||||
<x2-m>0.880485</x2-m>
|
||||
<y2-m>-0.205573</y2-m>
|
||||
<z2-m>1.30393</z2-m>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>pick</type>
|
||||
<object-name>EltTestRst</object-name>
|
||||
<action>
|
||||
<button>0</button>
|
||||
<repeatable>false</repeatable>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/controls/elt/elt-test-reset</property>
|
||||
<value>1</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/controls/cockpit/elt-test-translate</property>
|
||||
<value>0.001</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>libraries.pushbutton();</script>
|
||||
</binding>
|
||||
<mod-up>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/controls/elt/elt-test-reset</property>
|
||||
<value>0</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/controls/cockpit/elt-test-translate</property>
|
||||
<value>0.0</value>
|
||||
</binding>
|
||||
</mod-up>
|
||||
</action>
|
||||
<hovered>
|
||||
<binding>
|
||||
<command>set-tooltip</command>
|
||||
<tooltip-id>elt-test-lbl</tooltip-id>
|
||||
<label>ELT self-test or reset horn</label>
|
||||
</binding>
|
||||
</hovered>
|
||||
</animation>
|
||||
|
||||
<!-- INT/RAD switch -->
|
||||
<animation>
|
||||
<type>knob</type>
|
||||
|
|
|
@ -1751,6 +1751,22 @@
|
|||
</volume>
|
||||
</switch>
|
||||
|
||||
<elt>
|
||||
<name>ELT Signal</name>
|
||||
<mode>looped</mode>
|
||||
<path>Aircraft/A320-family/Sounds/Cockpit/elt-horn.wav</path>
|
||||
<condition>
|
||||
<and>
|
||||
<property>/sim/current-view/internal</property>
|
||||
<property>/systems/elt/elt-horn</property>
|
||||
</and>
|
||||
</condition>
|
||||
<volume>
|
||||
<factor>1.0</factor>
|
||||
<property>/sim/sound/atc/volume</property>
|
||||
</volume>
|
||||
</elt>
|
||||
|
||||
<cvrtone>
|
||||
<name>CVRtone</name>
|
||||
<mode>once</mode>
|
||||
|
|
BIN
Sounds/Cockpit/elt-horn.wav
Normal file
BIN
Sounds/Cockpit/elt-horn.wav
Normal file
Binary file not shown.
|
@ -57,6 +57,16 @@
|
|||
<c1>20</c1>
|
||||
</lag_filter>
|
||||
|
||||
<lag_filter name="/controls/cockpit/elt-guard-pos">
|
||||
<input>/controls/elt/elt-switch-guard</input>
|
||||
<c1>20</c1>
|
||||
</lag_filter>
|
||||
|
||||
<lag_filter name="/controls/cockpit/elt-switch-pos">
|
||||
<input>/controls/elt/elt-switch</input>
|
||||
<c1>20</c1>
|
||||
</lag_filter>
|
||||
|
||||
<fcs_function name="fadec/throttle-lever[0]">
|
||||
<function>
|
||||
<quotient>
|
||||
|
|
|
@ -561,6 +561,107 @@
|
|||
|
||||
</channel>
|
||||
|
||||
<channel name="ELT" execrate="8">
|
||||
|
||||
<actuator name="/systems/elt/elt-test-switch">
|
||||
<rate_limit sense="incr">1</rate_limit>
|
||||
<rate_limit sense="decr">100</rate_limit>
|
||||
<input>/controls/elt/elt-test-reset</input>
|
||||
</actuator>
|
||||
|
||||
<switch name="/systems/elt/elt-test-cmd">
|
||||
<default value="/systems/elt/elt-test-cmd"/>
|
||||
<test logic="AND" value="1">
|
||||
/systems/elt/elt-operating ne 1
|
||||
/systems/elt/elt-test-switch eq 1
|
||||
</test>
|
||||
<test logic="OR" value="0">
|
||||
/systems/elt/elt-test eq 1.0
|
||||
/systems/elt/elt-operating eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<actuator name="/systems/elt/elt-test">
|
||||
<rate_limit sense="incr">0.1</rate_limit>
|
||||
<rate_limit sense="decr">100</rate_limit>
|
||||
<input>/systems/elt/elt-test-cmd</input>
|
||||
</actuator>
|
||||
|
||||
<switch name="/systems/elt/elt-operating">
|
||||
<default value="/systems/elt/elt-operating"/>
|
||||
<test logic="OR" value="1">
|
||||
/controls/elt/elt-switch eq 1
|
||||
<test logic="AND">
|
||||
/accelerations/pilot-gdamped gt 5.0
|
||||
/controls/elt/elt-switch eq 0
|
||||
</test>
|
||||
</test>
|
||||
<test logic="OR" value="0">
|
||||
/controls/elt/elt-test-reset eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/systems/elt/elt-horn-cmd">
|
||||
<default value="0"/>
|
||||
<test logic="OR" value="1">
|
||||
<test logic="AND">
|
||||
/systems/elt/elt-test ge 0.3
|
||||
/systems/elt/elt-test lt 0.5
|
||||
</test>
|
||||
/systems/elt/elt-operating eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/systems/elt/elt-horn">
|
||||
<default value="0"/>
|
||||
<test logic="OR" value="1">
|
||||
<test logic="AND">
|
||||
/systems/elt/elt-horn-cmd eq 1
|
||||
/instrumentation/comm/frequencies/selected-mhz eq 121.5
|
||||
<test logic="OR">
|
||||
/controls/audio/acp/vhf1-recive eq 1
|
||||
/controls/audio/acp[1]/vhf1-recive eq 1
|
||||
/controls/audio/acp[2]/vhf1-recive eq 1
|
||||
</test>
|
||||
</test>
|
||||
<test logic="AND">
|
||||
/systems/elt/elt-horn-cmd eq 1
|
||||
/instrumentation/comm[1]/frequencies/selected-mhz eq 121.5
|
||||
<test logic="OR">
|
||||
/controls/audio/acp/vhf2-recive eq 1
|
||||
/controls/audio/acp[1]/vhf2-recive eq 1
|
||||
/controls/audio/acp[2]/vhf2-recive eq 1
|
||||
</test>
|
||||
</test>
|
||||
<test logic="AND">
|
||||
/systems/elt/elt-horn-cmd eq 1
|
||||
/instrumentation/comm[2]/frequencies/selected-mhz eq 121.5
|
||||
<test logic="OR">
|
||||
/controls/audio/acp/vhf3-recive eq 1
|
||||
/controls/audio/acp[1]/vhf3-recive eq 1
|
||||
/controls/audio/acp[2]/vhf3-recive eq 1
|
||||
</test>
|
||||
</test>
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="/systems/elt/light-on">
|
||||
<default value="0"/>
|
||||
<test logic="OR" value="1">
|
||||
<test logic="AND">
|
||||
/systems/elt/elt-test gt 0.0
|
||||
/systems/elt/elt-test lt 0.5
|
||||
</test>
|
||||
<test logic="AND">
|
||||
/systems/elt/elt-test ge 0.9
|
||||
/systems/elt/elt-test lt 1.0
|
||||
</test>
|
||||
/systems/elt/elt-operating eq 1
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
</channel>
|
||||
|
||||
<channel name="DU Power" execrate="8">
|
||||
|
||||
<switch name="/instrumentation/displays/du3/power-command">
|
||||
|
|
Loading…
Add table
Reference in a new issue