A320-homecockpit/Pedestal/flightgear/HID/FLC-Meow-Pedestal-box.xml

281 lines
7.5 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<PropertyList>
<name type="string">FLC Meow Pedestal box</name>
<debug-events type="bool">true</debug-events>
<nasal>
<open>
<![CDATA[
setprop("/FLC/Pedestal/backlight", 0);
setprop("/FLC/Pedestal/rudder-trim-display-brightness", 0);
setprop("/FLC/Pedestal/generic", 0);
setprop("/FLC/Pedestal/leds-ecam", 0);
setprop("/FLC/Pedestal/leds", 0);
var updateBacklight = func(){
setprop('/FLC/Pedestal/backlight', getprop('/controls/lighting/main-panel-norm') * 48000);
}
var updateDisplayBacklight = func(){
setprop('/FLC/Pedestal/rudder-trim-display-brightness', getprop('/controls/lighting/main-panel-norm-digital') * 48000);
}
var updateLeds = func(){
}
var lis1 = setlistener('/controls/lighting/main-panel-norm', updateBacklight);
var lis2 = setlistener('/controls/lighting/main-panel-norm-digital', updateDisplayBacklight);
]]>
</open>
</nasal>
<!-- Outputs -->
<event>
<name>unknown-0</name>
<setting>
<property>/FLC/Pedestal/backlight</property>
</setting>
</event>
<event>
<name>unknown-1</name>
<setting>
<property>/FLC/Pedestal/rudder-trim-display-brightness</property>
</setting>
</event>
<event>
<name>unknown-2</name>
<setting>
<property>/FLC/Pedestal/generic</property>
</setting>
</event>
<event>
<name>unknown-3</name>
<setting>
<property>/FLC/Pedestal/leds-ecam</property>
</setting>
</event>
<event>
<name>unknown-4</name>
<setting>
<property>/FLC/Pedestal/leds</property>
</setting>
</event>
<!-- Axis -->
<event>
<name>abs-z-translate-4</name>
<desc type="string">FloodTL Pedestal</desc>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/lighting/ped-flood-knb</property>
<factor type="double">0.000244140625</factor>
<offset type="double">0</offset>
<power type="double">1</power>
</binding>
</event>
<event>
<name>abs-z-translate-7</name>
<desc type="string">FloodTL Main Panel</desc>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/lighting/main-flood-knb</property>
<factor type="double">0.000244140625</factor>
<offset type="double">0</offset>
<power type="double">1</power>
</binding>
</event>
<event>
<name>abs-z-translate-8</name>
<desc type="string">IntegLT</desc>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/lighting/main-panel-knb</property>
<factor type="double">0.000244140625</factor>
<offset type="double">0</offset>
<power type="double">1</power>
</binding>
</event>
<!-- Buttons -->
<event>
<name>button-4</name>
<desc type="string">Switching ATT Capt</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/att-hdg</property>
<value>-1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/att-hdg</property>
<value>0</value>
</binding>
</mod-up>
</event>
<event>
<name>button-5</name>
<desc type="string">Switching AIR Capt</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/air-data</property>
<value>-1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/air-data</property>
<value>0</value>
</binding>
</mod-up>
</event>
<event>
<name>button-6</name>
<desc type="string">Switching ATT FO</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/att-hdg</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/att-hdg</property>
<value>0</value>
</binding>
</mod-up>
</event>
<event>
<name>button-9</name>
<desc type="string">Door Unlock</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/doors/doorc-switch</property>
<value>-1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/doors/doorc-switch</property>
<value>0</value>
</binding>
</mod-up>
</event>
<event>
<name>button-10</name>
<desc type="string">Door Lock</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/doors/doorc-switch</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/doors/doorc-switch</property>
<value>0</value>
</binding>
</mod-up>
</event>
<event>
<name>button-13</name>
<desc type="string">Switching AIR FO</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/air-data</property>
<value>-1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/air-data</property>
<value>0</value>
</binding>
</mod-up>
</event>
<event>
<name>button-14</name>
<desc type="string">Switching AIR FO</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/air-data</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/navigation/switching/air-data</property>
<value>0</value>
</binding>
</mod-up>
</event>
<event>
<name>button-15</name>
<desc type="string">ENG Mode Crank</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/ignition/start-sw</property>
<value>0</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/ignition/start-sw</property>
<value>1</value>
</binding>
</mod-up>
</event>
<event>
<name>button-16</name>
<desc type="string">ENG Mode Start</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/ignition/start-sw</property>
<value>2</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/ignition/start-sw</property>
<value>1</value>
</binding>
</mod-up>
</event>
<event>
<name>button-28</name>
<desc type="string">ENG Master 1</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/engines/engine[0]/cutoff-switch</property>
<value>0</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/engines/engine[0]/cutoff-switch</property>
<value>1</value>
</binding>
</mod-up>
</event>
<event>
<name>button-29</name>
<desc type="string">ENG Master 2</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/controls/engines/engine[1]/cutoff-switch</property>
<value>0</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/engines/engine[1]/cutoff-switch</property>
<value>1</value>
</binding>
</mod-up>
</event>
</PropertyList>