A320-homecockpit/Pedestal/flightgear/HID/FLC-Meow-Pedestal-box.xml
fly 252d2e48db Add ECAM panel bindings to flightgear files
Signed-off-by: fly <merspieler@alwaysdata.net>
2024-11-29 16:58:00 +01:00

636 lines
16 KiB
XML

<?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>
<min-range>-4095</min-range>
<max-range>4095</max-range>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/lighting/ped-flood-knb</property>
</binding>
</event>
<event>
<name>abs-z-translate-5</name>
<desc type="string">Upper ECAM Brightness</desc>
<min-range>-4095</min-range>
<max-range>4095</max-range>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/lighting/DU/du3</property>
</binding>
</event>
<event>
<name>abs-z-translate-6</name>
<desc type="string">Lower ECAM Brightness</desc>
<min-range>-4095</min-range>
<max-range>4095</max-range>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/lighting/DU/du4</property>
</binding>
</event>
<event>
<name>abs-z-translate-7</name>
<desc type="string">FloodTL Main Panel</desc>
<min-range>-4095</min-range>
<max-range>4095</max-range>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/lighting/main-flood-knb</property>
</binding>
</event>
<event>
<name>abs-z-translate-8</name>
<desc type="string">IntegLT</desc>
<min-range>-4095</min-range>
<max-range>4095</max-range>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/lighting/main-panel-knb</property>
</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>
<event>
<name>button-34</name>
<desc type="string">ECAM FUEL page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("fuelPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<!--event> TODO not implemented aircraft side yet
<name>button-35</name>
<desc type="string">ECAM ALL</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
</script>
</binding>
</mod-up>
</event-->
<event>
<name>button-36</name>
<desc type="string">ECAM CLR</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.clrBtn();
ecam.FWC.Btn.clr.setValue(1);
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.FWC.Btn.clr.setValue(0);
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-38</name>
<desc type="string">ECAM ENG page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("enginePage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-39</name>
<desc type="string">ECAM APU page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("apuPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-40</name>
<desc type="string">ECAM CLR</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.clrBtn();
ecam.FWC.Btn.clr.setValue(1);
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.FWC.Btn.clr.setValue(0);
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-41</name>
<desc type="string">ECAM TO CONFIG</desc>
<repeatable type="string">false</repeatable>
<binding>
<command>property-assign</command>
<property>/ECAM/to-config-test</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/ECAM/to-config-test</property>
<value>0</value>
</binding>
</mod-up>
</event>
<event>
<name>button-42</name>
<desc type="string">ECAM BLEED page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("bleedPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-43</name>
<desc type="string">ECAM COND page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("condPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-46</name>
<desc type="string">ECAM PRESS page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("cabPressPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-47</name>
<desc type="string">ECAM DOOR page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("doorPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-48</name>
<desc type="string">ECAM STS page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.stsBtn(nil);
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.stsBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-50</name>
<desc type="string">ECAM ELEC page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("elecPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-51</name>
<desc type="string">ECAM WHEEL page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("wheelPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-52</name>
<desc type="string">ECAM RCL</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.rclBtn();
ecam.FWC.Btn.recall.setValue(1);
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.FWC.Btn.recall.setValue(0);
</script>
</binding>
</mod-up>
</event>
<!--event> TODO not implemented aircraft side
<name>button-53</name>
<desc type="string">ECAM EMER CANC</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
</script>
</binding>
</mod-up>
</event-->
<event>
<name>button-54</name>
<desc type="string">ECAM HYD page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("hydraulicPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
<event>
<name>button-55</name>
<desc type="string">ECAM FCLT page</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("fctlPage");
</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script>
ecam.ECAMControlPanel.sysPageBtn("REL");
</script>
</binding>
</mod-up>
</event>
</PropertyList>