A320-homecockpit/Pedestal/flightgear/HID/FLC-Meow-Pedestal-box.xml
fly 77012efc31 Fix more hardware bugs
Signed-off-by: fly <merspieler@alwaysdata.net>
2024-10-31 13:01:03 +01:00

38 lines
885 B
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/leds", 0);
var updateBacklight = func(){
setprop('/FLC/Pedestal/backlight', getprop('/controls/lighting/main-panel-norm') * 48000);
}
var updateLeds = func(){
}
var lis1 = setlistener('/controls/lighting/main-panel-norm', updateBacklight);
]]>
</open>
</nasal>
<event>
<name>vendor-0</name>
<setting>
<property>/FLC/Pedestal/backlight</property>
</setting>
</event>
<event>
<name>vendor-1</name>
<setting>
<property>/FLC/Pedestal/generic</property>
</setting>
</event>
<event>
<name>vendor-2</name>
<setting>
<property>/FLC/Pedestal/leds</property>
</setting>
</event>
</PropertyList>