1
0
Fork 0

Port the standby nav radio

This commit is contained in:
Jonathan Redpath 2022-03-10 13:46:04 +00:00
parent b0e5cb61b8
commit d703d54f49
8 changed files with 698 additions and 37656 deletions

View file

@ -13629,6 +13629,347 @@
</condition>
</animation>
<!-- NAV Protector -->
<animation>
<type>knob</type>
<object-name>radio_nav_lit.cpt</object-name>
<property>controls/radio/rmp[0]/nav-protect-pos</property>
<factor>-90</factor>
<drag-direction>vertical</drag-direction>
<axis>
<object-name>radio_nav_lit.axis.002</object-name>
</axis>
<action>
<binding>
<command>property-cycle</command>
<property>controls/radio/rmp[0]/nav-protect</property>
<value>0</value>
<value>1</value>
<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>nav1guard-lbl</tooltip-id>
<label>STBY NAV guard</label>
</binding>
</hovered>
</animation>
<!-- NAV -->
<animation>
<type>pick</type>
<object-name>radio_nav.cpt</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>systems/radio/rmp[0]/nav</property>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<property>controls/radio/rmp[0]/nav-protect</property>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1nav-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1nav-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>nav1-lbl</tooltip-id>
<label>Enable STBY NAV mode</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_nav.cpt</object-name>
<property>/controls/cockpit/rmp1nav-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<!-- STBY NAV -->
<animation>
<type>pick</type>
<object-name>radio_vor.cpt</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>vor</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<property>systems/radio/rmp[0]/nav</property>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1vor-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1vor-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>vor1-lbl</tooltip-id>
<label>Adjust VOR frequency</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_vor.cpt</object-name>
<property>/controls/cockpit/rmp1vor-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>radio_ls.cpt</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>ls</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<property>systems/radio/rmp[0]/nav</property>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1ls-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1ls-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>ls1-lbl</tooltip-id>
<label>Adjust LS frequency</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_ls.cpt</object-name>
<property>/controls/cockpit/rmp1ls-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>radio_adf.cpt</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>adf</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<property>systems/radio/rmp[0]/nav</property>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1adf-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1adf-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>adf1-lbl</tooltip-id>
<label>Adjust ADF frequency</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_adf.cpt</object-name>
<property>/controls/cockpit/rmp1adf-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>radio_bfo.cpt</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-toggle</command>
<property>systems/radio/rmp[0]/bfo-active</property>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<property>systems/radio/rmp[0]/nav</property>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>adf</value>
</equals>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1bfo-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp1bfo-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>bfo1-lbl</tooltip-id>
<label>Enable ADF Beat Frequency Oscillator to hear ADF ident</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_bfo.cpt</object-name>
<property>/controls/cockpit/rmp1bfo-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<!-- RMP 2 -->
<!-- Knob -->
@ -15497,6 +15838,347 @@
</condition>
</animation>
<!-- NAV Protector -->
<animation>
<type>knob</type>
<object-name>radio_nav_lit.fo</object-name>
<property>controls/radio/rmp[1]/nav-protect-pos</property>
<factor>-90</factor>
<drag-direction>vertical</drag-direction>
<axis>
<object-name>radio_nav_lit.axis.001</object-name>
</axis>
<action>
<binding>
<command>property-cycle</command>
<property>controls/radio/rmp[1]/nav-protect</property>
<value>0</value>
<value>1</value>
<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>nav2guard-lbl</tooltip-id>
<label>STBY NAV guard</label>
</binding>
</hovered>
</animation>
<!-- NAV -->
<animation>
<type>pick</type>
<object-name>radio_nav.fo</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>systems/radio/rmp[1]/nav</property>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<property>controls/radio/rmp[1]/nav-protect</property>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2nav-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2nav-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>nav2-lbl</tooltip-id>
<label>Enable STBY NAV mode</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_nav.fo</object-name>
<property>/controls/cockpit/rmp2nav-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<!-- STBY NAV -->
<animation>
<type>pick</type>
<object-name>radio_vor.fo</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[1]/sel_chan</property>
<value>vor</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<property>systems/radio/rmp[1]/nav</property>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2vor-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2vor-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>vor2-lbl</tooltip-id>
<label>Adjust VOR frequency</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_vor.fo</object-name>
<property>/controls/cockpit/rmp2vor-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>radio_ls.fo</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[1]/sel_chan</property>
<value>ls</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<property>systems/radio/rmp[1]/nav</property>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2ls-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2ls-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>ls2-lbl</tooltip-id>
<label>Adjust LS frequency</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_ls.fo</object-name>
<property>/controls/cockpit/rmp2ls-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>radio_adf.fo</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[1]/sel_chan</property>
<value>adf</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<property>systems/radio/rmp[1]/nav</property>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2adf-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2adf-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>adf2-lbl</tooltip-id>
<label>Adjust ADF frequency</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_adf.fo</object-name>
<property>/controls/cockpit/rmp2adf-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>radio_bfo.fo</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-toggle</command>
<property>systems/radio/rmp[1]/bfo-active</property>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<property>systems/radio/rmp[1]/nav</property>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value>adf</value>
</equals>
</and>
</condition>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2bfo-translate</property>
<value>0.0005</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/cockpit/rmp2bfo-translate</property>
<value>0.0</value>
</binding>
</mod-up>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>bfo2-lbl</tooltip-id>
<label>Enable ADF Beat Frequency Oscillator to hear ADF ident</label>
</binding>
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>radio_bfo.fo</object-name>
<property>/controls/cockpit/rmp2bfo-translate</property>
<axis>
<x1-m>-0.20717</x1-m>
<y1-m>-0.23244</y1-m>
<z1-m>-0.094255</z1-m>
<x2-m>-0.20758</x2-m>
<y2-m>-0.23244</y2-m>
<z2-m>-0.096745</z2-m>
</axis>
</animation>
<!-- ATC -->
<!-- Keypad -->
@ -31160,7 +31842,8 @@
<object-name>TurnoffLtSwtch</object-name>
<object-name>LandingLtSwtch</object-name>
<object-name>LandingLtRSwtch</object-name>
<object-name>radio_body</object-name>
<object-name>radio_body.cpt</object-name>
<object-name>radio_body.fo</object-name>
<object-name>radio_rot0.cpt</object-name>
<object-name>radio_rot1.cpt</object-name>
<object-name>radio_rot0.fo</object-name>
@ -31512,7 +32195,8 @@
<object-name>Eng1ManStartProt</object-name>
<object-name>Eng2ManStartProt</object-name>
<object-name>EmerCallProt</object-name>
<object-name>radio_body</object-name>
<object-name>radio_body.cpt</object-name>
<object-name>radio_body.fo</object-name>
<object-name>radio_rot0.cpt</object-name>
<object-name>radio_rot1.cpt</object-name>
<object-name>radio_rot0.fo</object-name>
@ -31608,6 +32292,8 @@
<object-name>flood_lt_main.mark.005</object-name>
<object-name>hud_brt.mark</object-name>
<object-name>pedestal_low_glare</object-name>
<object-name>radio_nav_lit.cpt</object-name>
<object-name>radio_nav_lit.fo</object-name>
<object-name>thr_quad_lts</object-name>
<object-name>trim_2_lts</object-name>
<object-name>WindowGlassCpt</object-name>

View file

@ -1,717 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
############################
# Copyright (c) merspieler #
############################
-->
<PropertyList>
<!--<path>res/Radio.ac</path>-->
<!-- On Switch -->
<animation>
<type>knob</type>
<object-name>radio_on.cpt</object-name>
<property>controls/cockpit/rmp-l-on-pos</property>
<factor>-40</factor>
<offset-deg>20</offset-deg>
<axis>
<object-name>radio_on.axis</object-name>
</axis>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>controls/radio/rmp[0]/on</property>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rmp1on-lbl</tooltip-id>
<label>Toggle left RMP</label>
</binding>
</hovered>
</animation>
<!-- VHF1 -->
<animation>
<type>pick</type>
<object-name>radio_vhf1</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>vhf1</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
</and>
</condition>
</binding>
</action>
</animation>
<!-- VHF2 -->
<animation>
<type>pick</type>
<object-name>radio_vhf2</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>vhf2</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
</and>
</condition>
</binding>
</action>
</animation>
<!-- VHF3 -->
<animation>
<type>pick</type>
<object-name>radio_vhf3</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>vhf3</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
</and>
</condition>
</binding>
</action>
</animation>
<!-- HF1 -->
<animation>
<type>pick</type>
<object-name>radio_hf1</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>hf1</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
</and>
</condition>
</binding>
</action>
</animation>
<!-- HF2 -->
<animation>
<type>pick</type>
<object-name>radio_hf2</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>hf2</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
</and>
</condition>
</binding>
</action>
</animation>
<!-- AM Mode -->
<animation>
<type>pick</type>
<object-name>radio_am</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-toggle</command>
<property>systems/radio/rmp[0]/am-active</property>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<or>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>hf1</value>
</equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>hf2</value>
</equals>
</or>
</and>
</condition>
</binding>
</action>
</animation>
<!-- Transfer -->
<animation>
<type>pick</type>
<object-name>radio_exchange</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>rmp.transfer(1);</script>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
</and>
</condition>
</binding>
</action>
</animation>
<!-- NAV Protector -->
<animation>
<type>pick</type>
<object-name>radio_nav_lit</object-name>
<action>
<button>0</button>
<binding>
<command>property-toggle</command>
<property>controls/radio/rmp[0]/nav-protect</property>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/oh-cover", 1);</script>
</binding>
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>radio_nav_lit</object-name>
<property>controls/radio/rmp[0]/nav-protect</property>
<factor>-90</factor>
<axis>
<object-name>radio_nav_lit.axis</object-name>
</axis>
</animation>
<!-- NAV -->
<animation>
<type>pick</type>
<object-name>radio_nav</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>systems/radio/rmp[0]/nav</property>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<equals>
<property>controls/radio/rmp[0]/nav-protect</property>
<value>1</value>
</equals>
</and>
</condition>
</binding>
<binding>
<command>property-assign</command>
<property>controls/radio/rmp[0]/nav-protect</property>
<value>0</value>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/oh-cover", 1);</script>
</binding>
</action>
</animation>
<!-- STBY NAV -->
<animation>
<type>pick</type>
<object-name>radio_vor</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>vor</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<equals>
<property>systems/radio/rmp[0]/nav</property>
<value>1</value>
</equals>
</and>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>radio_ls</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>ls</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<equals>
<property>systems/radio/rmp[0]/nav</property>
<value>1</value>
</equals>
</and>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>radio_adf</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>adf</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<equals>
<property>systems/radio/rmp[0]/nav</property>
<value>1</value>
</equals>
</and>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>radio_bfo</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-toggle</command>
<property>systems/radio/rmp[0]/bfo-active</property>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[0]/on</property>
<equals>
<property>systems/radio/rmp[0]/nav</property>
<value>1</value>
</equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value>adf</value>
</equals>
</and>
</condition>
</binding>
</action>
</animation>
<!-- SEL Light -->
<animation>
<type>select</type>
<object-name>radio_sel_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<equals>
<property>systems/radio/rmp[0]/sel-light</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<!-- Status Lights -->
<animation>
<type>select</type>
<object-name>radio_vhf1_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vhf1</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_vhf2_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vhf2</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_vhf3_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_hf1_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">hf1</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_hf2_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">hf2</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_nav_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/nav</property>
<value>1</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_vor_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vor</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_ls_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">ls</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_adf_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">adf</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_bfo_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/bfo-active</property>
<value>1</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>radio_am_led</object-name>
<condition>
<or>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/am-active</property>
<value>1</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</or>
</condition>
</animation>
</PropertyList>

View file

@ -1,217 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
############################
# Copyright (c) merspieler #
############################
-->
<PropertyList>
<!-- NAV Protector -->
<animation>
<type>pick</type>
<object-name>radio_nav_lit</object-name>
<action>
<button>0</button>
<binding>
<command>property-toggle</command>
<property>controls/radio/rmp[1]/nav-protect</property>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/oh-cover", 1);</script>
</binding>
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>radio_nav_lit</object-name>
<property>controls/radio/rmp[1]/nav-protect</property>
<factor>-90</factor>
<axis>
<object-name>radio_nav_lit.axis</object-name>
</axis>
</animation>
<!-- NAV -->
<animation>
<type>pick</type>
<object-name>radio_nav</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>systems/radio/rmp[1]/nav</property>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<equals>
<property>controls/radio/rmp[1]/nav-protect</property>
<value>1</value>
</equals>
</and>
</condition>
</binding>
<binding>
<command>property-assign</command>
<property>controls/radio/rmp[1]/nav-protect</property>
<value>0</value>
</binding>
<binding>
<command>nasal</command>
<script>setprop("sim/sounde/oh-cover", 1);</script>
</binding>
</action>
</animation>
<!-- STBY NAV -->
<animation>
<type>pick</type>
<object-name>radio_vor</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[1]/sel_chan</property>
<value>vor</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<equals>
<property>systems/radio/rmp[1]/nav</property>
<value>1</value>
</equals>
</and>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>radio_ls</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[1]/sel_chan</property>
<value>ls</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<equals>
<property>systems/radio/rmp[1]/nav</property>
<value>1</value>
</equals>
</and>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>radio_adf</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-assign</command>
<property>systems/radio/rmp[1]/sel_chan</property>
<value>adf</value>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<equals>
<property>systems/radio/rmp[1]/nav</property>
<value>1</value>
</equals>
</and>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>radio_bfo</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-toggle</command>
<property>systems/radio/rmp[1]/bfo-active</property>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<property>controls/radio/rmp[1]/on</property>
<equals>
<property>systems/radio/rmp[1]/nav</property>
<value>1</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value>adf</value>
</equals>
</and>
</condition>
</binding>
</action>
</animation>
<animation>
<name>Panel lighting</name>
<type>material</type>
<object-name>radio_body</object-name>
<object-name>radio_rot0</object-name>
<object-name>radio_rot1</object-name>
<object-name>radio_on</object-name>
<emission>
<red>0.3</red>
<green>0.3</green>
<blue>0.3</blue>
<factor-prop>sim/model/lights/dome-light</factor-prop>
</emission>
</animation>
<effect>
<inherits-from>Aircraft/A320-family/Models/Effects/Model/cockpit-irradiance</inherits-from>
<object-name>radio_body</object-name>
<object-name>radio_rot0</object-name>
<object-name>radio_rot1</object-name>
<object-name>radio_on</object-name>
</effect>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<object-name>radio_glare</object-name>
<object-name>radio_nav_lit</object-name>
</effect>
</PropertyList>

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

View file

@ -509,6 +509,16 @@
<input>/controls/radio/rmp[1]/on</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="/controls/radio/rmp[0]/nav-protect-pos">
<input>/controls/radio/rmp[0]/nav-protect</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="/controls/radio/rmp[1]/nav-protect-pos">
<input>/controls/radio/rmp[1]/nav-protect</input>
<c1>20</c1>
</lag_filter>
</channel>