1
0
Fork 0
A320-family/Models/Instruments/Radio/Radio1.xml

1834 lines
45 KiB
XML
Raw Normal View History

2019-10-14 16:48:35 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!--
############################
# Copyright (c) merspieler #
############################
-->
<PropertyList>
<path>res/Radio.ac</path>
<!-- On Switch -->
<animation>
<type>pick</type>
<object-name>radio_on</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>controls/radio/rmp[0]/on</property>
</binding>
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>radio_on</object-name>
<property>controls/radio/rmp[0]/on</property>
<interpolation>
<entry>
<ind>0</ind>
<dep>20</dep>
</entry>
<entry>
<ind>1</ind>
<dep>-20</dep>
</entry>
</interpolation>
<axis>
<object-name>radio_on.axis</object-name>
</axis>
</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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
</and>
</condition>
</binding>
</action>
</animation>
<!-- Knob -->
<!-- TODO add bindings for VOR, LS and ADF -->
<!-- We use a little hack to get 8.33MHz spacing working:
First we assign our current STBY freq we want to adjust to the default instrument.
Then we change the channel there.
Finally we assign the value back to out own prop.
-->
2019-10-14 16:48:35 +00:00
<animation>
<type>pick</type>
<object-name>radio_rot1</object-name>
<action>
<button>0</button>
<button>3</button>
<repeatable>true</repeatable>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
<property>systems/radio/rmp[0]/vhf1-standby</property>
</binding>
2019-10-14 16:48:35 +00:00
<binding>
<condition>
<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_chan</property>
<value type="string">vhf1</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>instrumentation/comm[0]/frequencies/standby-channel</property>
<step>1</step>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
2019-10-14 16:48:35 +00:00
<property>systems/radio/rmp[0]/vhf1-standby</property>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
2019-10-14 16:48:35 +00:00
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf2</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
<property>systems/radio/rmp[0]/vhf2-standby</property>
</binding>
2019-10-14 16:48:35 +00:00
<binding>
<condition>
<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_chan</property>
<value type="string">vhf2</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>instrumentation/comm[0]/frequencies/standby-channel</property>
<step>1</step>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf2</value>
</equals>
</and>
</condition>
<command>property-assign</command>
2019-10-14 16:48:35 +00:00
<property>systems/radio/rmp[0]/vhf2-standby</property>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
2019-10-14 16:48:35 +00:00
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf3</value>
</equals>
<not>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
</equals>
</not>
</and>
</condition>
<command>property-assign</command>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
<property>systems/radio/rmp[0]/vhf3-standby</property>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf3</value>
</equals>
<not>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
2019-10-14 16:48:35 +00:00
</equals>
</not>
</and>
</condition>
<command>property-adjust</command>
<property>instrumentation/comm[0]/frequencies/standby-channel</property>
<step>1</step>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf3</value>
</equals>
<not>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
</equals>
</not>
</and>
</condition>
<command>property-assign</command>
2019-10-14 16:48:35 +00:00
<property>systems/radio/rmp[0]/vhf3-standby</property>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
2019-10-14 16:48:35 +00:00
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">hf1</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/hf1-standby</property>
<step>1</step>
2020-04-21 14:54:55 +00:00
<min>2000</min>
<max>29999</max>
2019-10-14 16:48:35 +00:00
<wrap>true</wrap>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">hf2</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/hf2-standby</property>
<step>1</step>
2020-04-21 14:54:55 +00:00
<min>2000</min>
<max>29999</max>
2019-10-14 16:48:35 +00:00
<wrap>true</wrap>
</binding>
</action>
<action>
<button>1</button>
<button>4</button>
<repeatable>true</repeatable>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
<property>systems/radio/rmp[0]/vhf1-standby</property>
</binding>
2019-10-14 16:48:35 +00:00
<binding>
<condition>
<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_chan</property>
<value type="string">vhf1</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>instrumentation/comm[0]/frequencies/standby-channel</property>
<step>-1</step>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
2019-10-14 16:48:35 +00:00
<property>systems/radio/rmp[0]/vhf1-standby</property>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
2019-10-14 16:48:35 +00:00
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf2</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
<property>systems/radio/rmp[0]/vhf2-standby</property>
</binding>
2019-10-14 16:48:35 +00:00
<binding>
<condition>
<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_chan</property>
<value type="string">vhf2</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>instrumentation/comm[0]/frequencies/standby-channel</property>
<step>-1</step>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf2</value>
</equals>
</and>
</condition>
<command>property-assign</command>
2019-10-14 16:48:35 +00:00
<property>systems/radio/rmp[0]/vhf2-standby</property>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
2019-10-14 16:48:35 +00:00
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf3</value>
</equals>
<not>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
</equals>
</not>
</and>
</condition>
<command>property-assign</command>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
<property>systems/radio/rmp[0]/vhf3-standby</property>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf3</value>
</equals>
<not>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
</equals>
</not>
2019-10-14 16:48:35 +00:00
</and>
</condition>
<command>property-adjust</command>
<property>instrumentation/comm[0]/frequencies/standby-channel</property>
<step>-1</step>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf3</value>
</equals>
<not>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
</equals>
</not>
</and>
</condition>
<command>property-assign</command>
2019-10-14 16:48:35 +00:00
<property>systems/radio/rmp[0]/vhf3-standby</property>
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
2019-10-14 16:48:35 +00:00
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">hf1</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/hf1-standby</property>
<step>-1</step>
2020-04-21 14:54:55 +00:00
<min>2000</min>
<max>29999</max>
2019-10-14 16:48:35 +00:00
<wrap>true</wrap>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">hf2</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/hf2-standby</property>
<step>-1</step>
2020-04-21 14:54:55 +00:00
<min>2000</min>
<max>29999</max>
2019-10-14 16:48:35 +00:00
<wrap>true</wrap>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>radio_rot0</object-name>
<action>
<button>0</button>
<button>3</button>
<repeatable>true</repeatable>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf1</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/vhf1-standby</property>
<step>1</step>
<min>118.0</min>
<max>137.0</max>
<wrap>true</wrap>
<mask>integer</mask>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf2</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/vhf2-standby</property>
<step>1</step>
<min>118.0</min>
<max>137.0</max>
<wrap>true</wrap>
<mask>integer</mask>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf3</value>
</equals>
<not>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
</equals>
</not>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<step>1</step>
<min>118.0</min>
<max>137.0</max>
<wrap>true</wrap>
<mask>integer</mask>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">hf1</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/hf1-standby</property>
<step>100</step>
2020-04-21 14:54:55 +00:00
<min>2000</min>
<max>29999</max>
2019-10-14 16:48:35 +00:00
<wrap>true</wrap>
<mask>integer</mask>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">hf2</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/hf2-standby</property>
<step>100</step>
2020-04-21 14:54:55 +00:00
<min>2000</min>
<max>29999</max>
2019-10-14 16:48:35 +00:00
<wrap>true</wrap>
<mask>integer</mask>
</binding>
</action>
<action>
<button>1</button>
<button>4</button>
<repeatable>true</repeatable>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf1</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/vhf1-standby</property>
<step>-1</step>
<min>118.0</min>
<max>137.0</max>
<wrap>true</wrap>
<mask>integer</mask>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf2</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/vhf2-standby</property>
<step>-1</step>
<min>118.0</min>
<max>137.0</max>
<wrap>true</wrap>
<mask>integer</mask>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">vhf3</value>
</equals>
<not>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
</equals>
</not>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<step>-1</step>
<min>118.0</min>
<max>137.0</max>
<wrap>true</wrap>
<mask>integer</mask>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">hf1</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/hf1-standby</property>
<step>-100</step>
2020-04-21 14:54:55 +00:00
<min>2000</min>
<max>29999</max>
2019-10-14 16:48:35 +00:00
<wrap>true</wrap>
<mask>integer</mask>
</binding>
<binding>
<condition>
<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_chan</property>
<value type="string">hf2</value>
</equals>
</and>
</condition>
<command>property-adjust</command>
<property>systems/radio/rmp[0]/hf2-standby</property>
<step>-100</step>
2020-04-21 14:54:55 +00:00
<min>2000</min>
<max>29999</max>
2019-10-14 16:48:35 +00:00
<wrap>true</wrap>
<mask>integer</mask>
</binding>
</action>
</animation>
<!-- NAV Protector -->
<animation>
<type>pick</type>
<object-name>radio_nav_lit</object-name>
<action>
<button>1</button>
<binding>
<command>property-assign</command>
<property>controls/radio/rmp[0]/nav-protect</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>controls/radio/rmp[0]/nav-protect</property>
<value>0</value>
</binding>
<binding>
<command>nasal</command>
2020-02-07 16:10:54 +00:00
<script>setprop("sim/sounde/oh-cover", 1);</script>
2019-10-14 16:48:35 +00:00
</binding>
</mod-up>
</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>true</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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/nav-protect</property>
<value>1</value>
</equals>
</and>
</condition>
</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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<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>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<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>
<!-- Active Display -->
<animation>
<type>select</type>
<object-name>rmp-active</object-name>
<condition>
<and>
<not-equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</not-equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</animation>
<text>
<name>rmp-active</name>
<offsets>
<x-m>-0.22756</x-m>
2020-05-08 18:11:29 +00:00
<y-m>-0.216245</y-m>
<z-m>-0.091845</z-m>
2019-10-14 16:48:35 +00:00
<heading-deg>90</heading-deg>
<roll-deg>9.4</roll-deg>
2019-10-14 16:48:35 +00:00
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>controls/radio/rmp[0]/active-display</property>
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.008</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<!-- Test Illumination-->
<animation>
<type>select</type>
<object-name>rmp-active-test</object-name>
<condition>
<and>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</animation>
<text>
<name>rmp-active-test</name>
<offsets>
<x-m>-0.22756</x-m>
2020-05-08 18:11:29 +00:00
<y-m>-0.216245</y-m>
<z-m>-0.091845</z-m>
2019-10-14 16:48:35 +00:00
<heading-deg>90</heading-deg>
<roll-deg>9.4</roll-deg>
2019-10-14 16:48:35 +00:00
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">888.888</format>
<property>autopilot/serviceable</property>
2019-10-14 16:48:35 +00:00
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.008</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<!-- STBY Display -->
<animation>
<type>select</type>
<object-name>rmp-standby</object-name>
<condition>
<and>
<not-equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</not-equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</animation>
<text>
<name>rmp-standby</name>
<offsets>
<x-m>-0.22756</x-m>
2020-05-08 18:11:29 +00:00
<y-m>-0.148955</y-m>
<z-m>-0.091845</z-m>
2019-10-14 16:48:35 +00:00
<heading-deg>90</heading-deg>
<roll-deg>9.4</roll-deg>
2019-10-14 16:48:35 +00:00
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>controls/radio/rmp[0]/standby-display</property>
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.008</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<!-- Test Illumination-->
<animation>
<type>select</type>
<object-name>rmp-standby-test</object-name>
<condition>
<and>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</animation>
<text>
<name>rmp-standby-test</name>
<offsets>
<x-m>-0.22756</x-m>
2020-05-08 18:11:29 +00:00
<y-m>-0.148955</y-m>
<z-m>-0.091845</z-m>
2019-10-14 16:48:35 +00:00
<heading-deg>90</heading-deg>
<roll-deg>9.4</roll-deg>
2019-10-14 16:48:35 +00:00
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">888.888</format>
<property>autopilot/serviceable</property>
2019-10-14 16:48:35 +00:00
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.008</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<!-- Z Colors/Effects -->
<animation>
<type>material</type>
<object-name>rmp-active</object-name>
<object-name>rmp-active-test</object-name>
<object-name>rmp-standby</object-name>
<object-name>rmp-standby-test</object-name>
<diffuse>
<red>0.89</red>
<green>0.37</green>
<blue>0.08</blue>
</diffuse>
<ambient>
<red>0</red>
<green>0</green>
<blue>0</blue>
</ambient>
<specular>
<red>0</red>
<green>0</green>
<blue>0</blue>
</specular>
<emission>
<red>0.89</red>
<green>0.37</green>
<blue>0.08</blue>
</emission>
</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/cockpit-irradiance</inherits-from>
<object-name>radio_body</object-name>
<object-name>radio_glare</object-name>
<object-name>radio_rot0</object-name>
<object-name>radio_rot1</object-name>
<object-name>radio_on</object-name>
</effect>
</PropertyList>