Add LEDs property to the flightgear conf
Signed-off-by: fly <merspieler@alwaysdata.com>
This commit is contained in:
parent
afb5cd3e99
commit
e10faa9a9c
1 changed files with 12 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue