Add LEDs property to the flightgear conf

Signed-off-by: fly <merspieler@alwaysdata.com>
This commit is contained in:
fly 2024-06-06 22:35:50 +02:00
parent afb5cd3e99
commit e10faa9a9c

View file

@ -7,10 +7,13 @@
<open>
<![CDATA[
setprop("/FLC/Pedestal/backlight", 0);
var refreshPanels = func(){
setprop("/FLC/Pedestal/leds", 0);
var updateBacklight = func(){
setprop('/FLC/Pedestal/backlight', getprop('/controls/lighting/main-panel-norm') * 48000);
}
var lis1 = setlistener('/controls/lighting/main-panel-norm', refreshPanels);
var updateLeds = func(){
}
var lis1 = setlistener('/controls/lighting/main-panel-norm', updateBacklight);
]]>
</open>
</nasal>
@ -23,7 +26,13 @@
<event>
<name>vendor-1</name>
<setting>
<property>/test</property>
<property>/FLC/Pedestal/generic</property>
</setting>
</event>
<event>
<name>vendor-2</name>
<setting>
<property>/FLC/Pedestal/leds</property>
</setting>
</event>
</PropertyList>