Merge branch 'master' into ECAM2

This commit is contained in:
Jonathan Redpath 2019-02-19 14:15:20 +00:00
commit 6549686310
15 changed files with 162 additions and 115 deletions

View file

@ -694,6 +694,10 @@
<windowprobeheat type="double">0.5</windowprobeheat> <windowprobeheat type="double">0.5</windowprobeheat>
<qnh-knb>100000</qnh-knb> <qnh-knb>100000</qnh-knb>
<strobe type="double">0.0</strobe> <strobe type="double">0.0</strobe>
<beacon type="bool">0</beacon>
<wing-lights type="bool">0</wing-lights>
<landing-lights-l type="float">0.0</landing-lights-l>
<landing-lights-r type="float">0.0</landing-lights-r>
</switches> </switches>
<tray n="0"> <tray n="0">
<lefttrayext type="double">0</lefttrayext> <lefttrayext type="double">0</lefttrayext>

View file

@ -344,7 +344,7 @@ var beforestart_b = func {
systems.ADIRS.skip(1); systems.ADIRS.skip(1);
systems.ADIRS.skip(2); systems.ADIRS.skip(2);
setprop("/controls/adirs/mcducbtn", 1); setprop("/controls/adirs/mcducbtn", 1);
setprop("/controls/lighting/beacon", 1); setprop("/controls/switches/beacon", 1);
setprop("/controls/lighting/nav-lights-switch", 1); setprop("/controls/lighting/nav-lights-switch", 1);
setprop("/controls/radio/rmp[0]/on", 1); setprop("/controls/radio/rmp[0]/on", 1);
setprop("/controls/radio/rmp[1]/on", 1); setprop("/controls/radio/rmp[1]/on", 1);
@ -430,8 +430,8 @@ var taxi_b = func {
setprop("/controls/radio/rmp[1]/on", 1); setprop("/controls/radio/rmp[1]/on", 1);
setprop("/controls/radio/rmp[2]/on", 1); setprop("/controls/radio/rmp[2]/on", 1);
setprop("/controls/lighting/taxi-light-switch", 0.5); setprop("/controls/lighting/taxi-light-switch", 0.5);
setprop("/controls/lighting/landing-lights[1]", 0.5); setprop("/controls/switches/landing-lights-l", 0.5);
setprop("/controls/lighting/landing-lights[2]", 0.5); setprop("/controls/switches/landing-lights-r", 0.5);
settimer(taxi_c, 2); settimer(taxi_c, 2);
} }
var taxi_c = func { var taxi_c = func {
@ -466,8 +466,8 @@ var takeoff = func {
removelistener(eng_one_chk_c); removelistener(eng_one_chk_c);
setprop("/controls/switches/strobe", 0.5); setprop("/controls/switches/strobe", 0.5);
setprop("/controls/lighting/taxi-light-switch", 1); setprop("/controls/lighting/taxi-light-switch", 1);
setprop("/controls/lighting/landing-lights[1]", 1); setprop("/controls/switches/landing-lights-l", 1);
setprop("/controls/lighting/landing-lights[2]", 1); setprop("/controls/switches/landing-lights-r", 1);
setprop("/controls/flight/speedbrake-arm", 1); setprop("/controls/flight/speedbrake-arm", 1);
setprop("/controls/flight/flaps", 0.290); setprop("/controls/flight/flaps", 0.290);
setprop("/controls/flight/slats", 0.666); setprop("/controls/flight/slats", 0.666);

View file

@ -35,7 +35,7 @@
<object-name>BRT</object-name> <object-name>BRT</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <condition>
<greater-than-equals> <greater-than-equals>
@ -58,7 +58,7 @@
<object-name>DIM</object-name> <object-name>DIM</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <condition>
<greater-than-equals> <greater-than-equals>
@ -81,7 +81,7 @@
<object-name>radnav</object-name> <object-name>radnav</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("radnav", 0);</script> <script>mcdu.pagebutton("radnav", 0);</script>
@ -106,7 +106,7 @@
<object-name>init</object-name> <object-name>init</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("init", 0);</script> <script>mcdu.pagebutton("init", 0);</script>
@ -131,7 +131,7 @@
<object-name>data</object-name> <object-name>data</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("data", 0);</script> <script>mcdu.pagebutton("data", 0);</script>
@ -156,7 +156,7 @@
<object-name>mcdu</object-name> <object-name>mcdu</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("mcdu", 0);</script> <script>mcdu.pagebutton("mcdu", 0);</script>
@ -181,7 +181,7 @@
<object-name>perf</object-name> <object-name>perf</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("perf", 0);</script> <script>mcdu.pagebutton("perf", 0);</script>
@ -206,7 +206,7 @@
<object-name>f-pln</object-name> <object-name>f-pln</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("f-pln", 0);</script> <script>mcdu.pagebutton("f-pln", 0);</script>
@ -231,7 +231,7 @@
<object-name>fuel-pred</object-name> <object-name>fuel-pred</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("fuel-pred", 0);</script> <script>mcdu.pagebutton("fuel-pred", 0);</script>
@ -256,7 +256,7 @@
<object-name>L1</object-name> <object-name>L1</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("1", 0);</script> <script>mcdu.lskbutton("1", 0);</script>
@ -276,7 +276,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("1", 0);</script> <script>mcdu.lskbutton_b("1", 0);</script>
@ -300,7 +300,7 @@
<object-name>L2</object-name> <object-name>L2</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("2", 0);</script> <script>mcdu.lskbutton("2", 0);</script>
@ -320,7 +320,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("2", 0);</script> <script>mcdu.lskbutton_b("2", 0);</script>
@ -344,7 +344,7 @@
<object-name>L3</object-name> <object-name>L3</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("3", 0);</script> <script>mcdu.lskbutton("3", 0);</script>
@ -364,7 +364,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("3", 0);</script> <script>mcdu.lskbutton_b("3", 0);</script>
@ -388,7 +388,7 @@
<object-name>L4</object-name> <object-name>L4</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("4", 0);</script> <script>mcdu.lskbutton("4", 0);</script>
@ -408,7 +408,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("4", 0);</script> <script>mcdu.lskbutton_b("4", 0);</script>
@ -432,7 +432,7 @@
<object-name>L5</object-name> <object-name>L5</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("5", 0);</script> <script>mcdu.lskbutton("5", 0);</script>
@ -452,7 +452,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("5", 0);</script> <script>mcdu.lskbutton_b("5", 0);</script>
@ -476,7 +476,7 @@
<object-name>L6</object-name> <object-name>L6</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("6", 0);</script> <script>mcdu.lskbutton("6", 0);</script>
@ -496,7 +496,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("6", 0);</script> <script>mcdu.lskbutton_b("6", 0);</script>
@ -521,7 +521,7 @@
<object-name>R1</object-name> <object-name>R1</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("1", 0);</script> <script>mcdu.rskbutton("1", 0);</script>
@ -541,7 +541,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("1", 0);</script> <script>mcdu.rskbutton_b("1", 0);</script>
@ -565,7 +565,7 @@
<object-name>R2</object-name> <object-name>R2</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("2", 0);</script> <script>mcdu.rskbutton("2", 0);</script>
@ -585,7 +585,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("2", 0);</script> <script>mcdu.rskbutton_b("2", 0);</script>
@ -609,7 +609,7 @@
<object-name>R3</object-name> <object-name>R3</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("3", 0);</script> <script>mcdu.rskbutton("3", 0);</script>
@ -629,7 +629,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("3", 0);</script> <script>mcdu.rskbutton_b("3", 0);</script>
@ -653,7 +653,7 @@
<object-name>R4</object-name> <object-name>R4</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("4", 0);</script> <script>mcdu.rskbutton("4", 0);</script>
@ -673,7 +673,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("4", 0);</script> <script>mcdu.rskbutton_b("4", 0);</script>
@ -697,7 +697,7 @@
<object-name>R5</object-name> <object-name>R5</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("5", 0);</script> <script>mcdu.rskbutton("5", 0);</script>
@ -717,7 +717,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("5", 0);</script> <script>mcdu.rskbutton_b("5", 0);</script>
@ -741,7 +741,7 @@
<object-name>R6</object-name> <object-name>R6</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("6", 0);</script> <script>mcdu.rskbutton("6", 0);</script>
@ -761,7 +761,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("6", 0);</script> <script>mcdu.rskbutton_b("6", 0);</script>
@ -786,7 +786,7 @@
<object-name>left</object-name> <object-name>left</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.arrowbutton("left", 0);</script> <script>mcdu.arrowbutton("left", 0);</script>
@ -810,7 +810,7 @@
<object-name>right</object-name> <object-name>right</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.arrowbutton("right", 0);</script> <script>mcdu.arrowbutton("right", 0);</script>
@ -834,7 +834,7 @@
<object-name>up</object-name> <object-name>up</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.arrowbutton("up", 0);</script> <script>mcdu.arrowbutton("up", 0);</script>
@ -858,7 +858,7 @@
<object-name>down</object-name> <object-name>down</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.arrowbutton("down", 0);</script> <script>mcdu.arrowbutton("down", 0);</script>

View file

@ -35,7 +35,7 @@
<object-name>BRT</object-name> <object-name>BRT</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <condition>
<greater-than-equals> <greater-than-equals>
@ -58,7 +58,7 @@
<object-name>DIM</object-name> <object-name>DIM</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <condition>
<greater-than-equals> <greater-than-equals>
@ -81,7 +81,7 @@
<object-name>radnav</object-name> <object-name>radnav</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("radnav", 1);</script> <script>mcdu.pagebutton("radnav", 1);</script>
@ -106,7 +106,7 @@
<object-name>init</object-name> <object-name>init</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("init", 1);</script> <script>mcdu.pagebutton("init", 1);</script>
@ -131,7 +131,7 @@
<object-name>data</object-name> <object-name>data</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("data", 1);</script> <script>mcdu.pagebutton("data", 1);</script>
@ -156,7 +156,7 @@
<object-name>mcdu</object-name> <object-name>mcdu</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("mcdu", 1);</script> <script>mcdu.pagebutton("mcdu", 1);</script>
@ -181,7 +181,7 @@
<object-name>perf</object-name> <object-name>perf</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("perf", 1);</script> <script>mcdu.pagebutton("perf", 1);</script>
@ -206,7 +206,7 @@
<object-name>f-pln</object-name> <object-name>f-pln</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("f-pln", 1);</script> <script>mcdu.pagebutton("f-pln", 1);</script>
@ -231,7 +231,7 @@
<object-name>fuel-pred</object-name> <object-name>fuel-pred</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.pagebutton("fuel-pred", 1);</script> <script>mcdu.pagebutton("fuel-pred", 1);</script>
@ -256,7 +256,7 @@
<object-name>L1</object-name> <object-name>L1</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("1", 1);</script> <script>mcdu.lskbutton("1", 1);</script>
@ -276,7 +276,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("1", 1);</script> <script>mcdu.lskbutton_b("1", 1);</script>
@ -300,7 +300,7 @@
<object-name>L2</object-name> <object-name>L2</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("2", 1);</script> <script>mcdu.lskbutton("2", 1);</script>
@ -320,7 +320,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("2", 1);</script> <script>mcdu.lskbutton_b("2", 1);</script>
@ -344,7 +344,7 @@
<object-name>L3</object-name> <object-name>L3</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("3", 1);</script> <script>mcdu.lskbutton("3", 1);</script>
@ -364,7 +364,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("3", 1);</script> <script>mcdu.lskbutton_b("3", 1);</script>
@ -388,7 +388,7 @@
<object-name>L4</object-name> <object-name>L4</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("4", 1);</script> <script>mcdu.lskbutton("4", 1);</script>
@ -408,7 +408,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("4", 1);</script> <script>mcdu.lskbutton_b("4", 1);</script>
@ -432,7 +432,7 @@
<object-name>L5</object-name> <object-name>L5</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("5", 1);</script> <script>mcdu.lskbutton("5", 1);</script>
@ -452,7 +452,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("5", 1);</script> <script>mcdu.lskbutton_b("5", 1);</script>
@ -476,7 +476,7 @@
<object-name>L6</object-name> <object-name>L6</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton("6", 1);</script> <script>mcdu.lskbutton("6", 1);</script>
@ -496,7 +496,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.lskbutton_b("6", 1);</script> <script>mcdu.lskbutton_b("6", 1);</script>
@ -521,7 +521,7 @@
<object-name>R1</object-name> <object-name>R1</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("1", 1);</script> <script>mcdu.rskbutton("1", 1);</script>
@ -541,7 +541,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("1", 1);</script> <script>mcdu.rskbutton_b("1", 1);</script>
@ -565,7 +565,7 @@
<object-name>R2</object-name> <object-name>R2</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("2", 1);</script> <script>mcdu.rskbutton("2", 1);</script>
@ -585,7 +585,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("2", 1);</script> <script>mcdu.rskbutton_b("2", 1);</script>
@ -609,7 +609,7 @@
<object-name>R3</object-name> <object-name>R3</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("3", 1);</script> <script>mcdu.rskbutton("3", 1);</script>
@ -629,7 +629,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("3", 1);</script> <script>mcdu.rskbutton_b("3", 1);</script>
@ -653,7 +653,7 @@
<object-name>R4</object-name> <object-name>R4</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("4", 1);</script> <script>mcdu.rskbutton("4", 1);</script>
@ -673,7 +673,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("4", 1);</script> <script>mcdu.rskbutton_b("4", 1);</script>
@ -697,7 +697,7 @@
<object-name>R5</object-name> <object-name>R5</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("5", 1);</script> <script>mcdu.rskbutton("5", 1);</script>
@ -717,7 +717,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("5", 1);</script> <script>mcdu.rskbutton_b("5", 1);</script>
@ -741,7 +741,7 @@
<object-name>R6</object-name> <object-name>R6</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton("6", 1);</script> <script>mcdu.rskbutton("6", 1);</script>
@ -761,7 +761,7 @@
</action> </action>
<action> <action>
<button>1</button> <button>1</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.rskbutton_b("6", 1);</script> <script>mcdu.rskbutton_b("6", 1);</script>
@ -786,7 +786,7 @@
<object-name>left</object-name> <object-name>left</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.arrowbutton("left", 1);</script> <script>mcdu.arrowbutton("left", 1);</script>
@ -810,7 +810,7 @@
<object-name>right</object-name> <object-name>right</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.arrowbutton("right", 1);</script> <script>mcdu.arrowbutton("right", 1);</script>
@ -834,7 +834,7 @@
<object-name>up</object-name> <object-name>up</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.arrowbutton("up", 1);</script> <script>mcdu.arrowbutton("up", 1);</script>
@ -858,7 +858,7 @@
<object-name>down</object-name> <object-name>down</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>mcdu.arrowbutton("down", 1);</script> <script>mcdu.arrowbutton("down", 1);</script>

View file

@ -4680,7 +4680,7 @@
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>property-toggle</command> <command>property-toggle</command>
<property>controls/lighting/beacon</property> <property>controls/switches/beacon</property>
</binding> </binding>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
@ -4692,7 +4692,7 @@
<name>Beacon lights rotate</name> <name>Beacon lights rotate</name>
<type>rotate</type> <type>rotate</type>
<object-name>BeaconLtSwtch</object-name> <object-name>BeaconLtSwtch</object-name>
<property>controls/lighting/beacon</property> <property>controls/switches/beacon</property>
<interpolation> <interpolation>
<entry><ind>0</ind><dep>35</dep></entry> <entry><ind>0</ind><dep>35</dep></entry>
<entry><ind>1</ind><dep>-35</dep></entry> <entry><ind>1</ind><dep>-35</dep></entry>
@ -4718,7 +4718,7 @@
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>property-toggle</command> <command>property-toggle</command>
<property>controls/lighting/wing-lights</property> <property>controls/switches/wing-lights</property>
</binding> </binding>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
@ -4730,7 +4730,7 @@
<name>Wing lights rotate</name> <name>Wing lights rotate</name>
<type>rotate</type> <type>rotate</type>
<object-name>WingLtSwtch</object-name> <object-name>WingLtSwtch</object-name>
<property>controls/lighting/wing-lights</property> <property>controls/switches/wing-lights</property>
<interpolation> <interpolation>
<entry><ind>0</ind><dep>35</dep></entry> <entry><ind>0</ind><dep>35</dep></entry>
<entry><ind>1</ind><dep>-35</dep></entry> <entry><ind>1</ind><dep>-35</dep></entry>
@ -4868,7 +4868,7 @@
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>property-cycle</command> <command>property-cycle</command>
<property>controls/lighting/landing-lights[1]</property> <property>controls/switches/landing-lights-l</property>
<value>0</value> <value>0</value>
<value>0.5</value> <value>0.5</value>
<value>1</value> <value>1</value>
@ -4883,7 +4883,7 @@
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>property-cycle</command> <command>property-cycle</command>
<property>controls/lighting/landing-lights[1]</property> <property>controls/switches/landing-lights-l</property>
<value>1</value> <value>1</value>
<value>0.5</value> <value>0.5</value>
<value>0</value> <value>0</value>
@ -4904,7 +4904,7 @@
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>property-cycle</command> <command>property-cycle</command>
<property>controls/lighting/landing-lights[2]</property> <property>controls/switches/landing-lights-r</property>
<value>0</value> <value>0</value>
<value>0.5</value> <value>0.5</value>
<value>1</value> <value>1</value>
@ -4919,7 +4919,7 @@
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<command>property-cycle</command> <command>property-cycle</command>
<property>controls/lighting/landing-lights[2]</property> <property>controls/switches/landing-lights-r</property>
<value>1</value> <value>1</value>
<value>0.5</value> <value>0.5</value>
<value>0</value> <value>0</value>
@ -4935,7 +4935,7 @@
<name>landing light rotate</name> <name>landing light rotate</name>
<type>rotate</type> <type>rotate</type>
<object-name>LandingLtLSwtch</object-name> <object-name>LandingLtLSwtch</object-name>
<property>controls/lighting/landing-lights[1]</property> <property>controls/switches/landing-lights-l</property>
<interpolation> <interpolation>
<entry><ind>0</ind><dep>35</dep></entry> <entry><ind>0</ind><dep>35</dep></entry>
<entry><ind>1</ind><dep>-35</dep></entry> <entry><ind>1</ind><dep>-35</dep></entry>
@ -4956,7 +4956,7 @@
<name>landing light rotate</name> <name>landing light rotate</name>
<type>rotate</type> <type>rotate</type>
<object-name>LandingLtRSwtch</object-name> <object-name>LandingLtRSwtch</object-name>
<property>controls/lighting/landing-lights[2]</property> <property>controls/switches/landing-lights-r</property>
<interpolation> <interpolation>
<entry><ind>0</ind><dep>35</dep></entry> <entry><ind>0</ind><dep>35</dep></entry>
<entry><ind>1</ind><dep>-35</dep></entry> <entry><ind>1</ind><dep>-35</dep></entry>

View file

@ -7,8 +7,6 @@
<path>green-navlight.ac</path> <path>green-navlight.ac</path>
<nopreview/> <nopreview/>
<effect> <effect>
<inherits-from>Aircraft/IDG-A32X/Models/lights/ALS/green-navlight</inherits-from> <inherits-from>Aircraft/IDG-A32X/Models/lights/ALS/green-navlight</inherits-from>
<object-name>green-navlightals</object-name> <object-name>green-navlightals</object-name>

View file

@ -13,10 +13,10 @@
<type>select</type> <type>select</type>
<object-name>Light</object-name> <object-name>Light</object-name>
<condition> <condition>
<greater-than> <equals>
<property>controls/lighting/nav-lights-switch</property> <property>/sim/model/lights/nav-lights</property>
<value>0</value> <value>1</value>
</greater-than> </equals>
</condition> </condition>
</animation> </animation>

View file

@ -25,10 +25,16 @@
<object-name>Cone</object-name> <object-name>Cone</object-name>
<condition> <condition>
<and> <and>
<greater-than-equals> <or>
<property>systems/electrical/bus/ac-ess</property> <greater-than-equals>
<value>110</value> <property>systems/electrical/bus/ac1</property>
</greater-than-equals> <value>110</value>
</greater-than-equals>
<greater-than-equals>
<property>systems/electrical/bus/ac2</property>
<value>110</value>
</greater-than-equals>
</or>
<greater-than-equals> <greater-than-equals>
<property>/sim/model/lights/nose-lights</property> <property>/sim/model/lights/nose-lights</property>
<value>0.5</value> <value>0.5</value>

View file

@ -26,7 +26,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/ac-ess</property> <property>systems/electrical/bus/ac1</property>
<value>110</value> <value>110</value>
</greater-than-equals> </greater-than-equals>
<property>controls/lighting/landing-lights[2]</property> <property>controls/lighting/landing-lights[2]</property>

View file

@ -28,7 +28,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/ac-ess</property> <property>systems/electrical/bus/ac2</property>
<value>110</value> <value>110</value>
</greater-than-equals> </greater-than-equals>
<property>controls/lighting/landing-lights[2]</property> <property>controls/lighting/landing-lights[2]</property>

View file

@ -13,10 +13,10 @@
<type>select</type> <type>select</type>
<object-name>Light</object-name> <object-name>Light</object-name>
<condition> <condition>
<greater-than> <equals>
<property>controls/lighting/nav-lights-switch</property> <property>/sim/model/lights/nav-lights</property>
<value>0</value> <value>1</value>
</greater-than> </equals>
</condition> </condition>
</animation> </animation>

View file

@ -13,10 +13,10 @@
<type>select</type> <type>select</type>
<object-name>Light</object-name> <object-name>Light</object-name>
<condition> <condition>
<greater-than> <equals>
<property>controls/lighting/nav-lights-switch</property> <property>/sim/model/lights/nav-lights</property>
<value>0</value> <value>1</value>
</greater-than> </equals>
</condition> </condition>
</animation> </animation>

View file

@ -35,6 +35,10 @@ var variousReset = func {
setprop("/controls/switches/wiperRspd", 0); # -1 = INTM 0 = OFF 1 = LO 2 = HI setprop("/controls/switches/wiperRspd", 0); # -1 = INTM 0 = OFF 1 = LO 2 = HI
setprop("/controls/lighting/strobe", 0); setprop("/controls/lighting/strobe", 0);
setprop("/controls/lighting/beacon", 0); setprop("/controls/lighting/beacon", 0);
setprop("/controls/switches/beacon", 0);
setprop("/controls/switches/wing-lights", 0);
setprop("/controls/switches/landing-lights-l", 0);
setprop("/controls/switches/landing-lights-r", 0);
setprop("/controls/lighting/wing-lights", 0); setprop("/controls/lighting/wing-lights", 0);
setprop("/controls/lighting/nav-lights-switch", 0); setprop("/controls/lighting/nav-lights-switch", 0);
setprop("/controls/lighting/landing-lights[1]", 0); setprop("/controls/lighting/landing-lights[1]", 0);

View file

@ -40,6 +40,7 @@ setprop("/engines/engine[1]/oil-qt-actual", qty2);
########## ##########
var beacon_switch = props.globals.getNode("/controls/switches/beacon", 1); var beacon_switch = props.globals.getNode("/controls/switches/beacon", 1);
var beacon_ctl = props.globals.getNode("/controls/lighting/beacon", 1);
var beacon = aircraft.light.new("/sim/model/lights/beacon", [0.1, 1], "/controls/lighting/beacon"); var beacon = aircraft.light.new("/sim/model/lights/beacon", [0.1, 1], "/controls/lighting/beacon");
var strobe_switch = props.globals.getNode("/controls/switches/strobe", 1); var strobe_switch = props.globals.getNode("/controls/switches/strobe", 1);
var strobe_light = props.globals.getNode("/controls/lighting/strobe", 1); var strobe_light = props.globals.getNode("/controls/lighting/strobe", 1);
@ -47,6 +48,8 @@ var strobe = aircraft.light.new("/sim/model/lights/strobe", [0.05, 0.06, 0.05, 1
var tail_strobe = aircraft.light.new("/sim/model/lights/tailstrobe", [0.1, 1], "/controls/lighting/strobe"); var tail_strobe = aircraft.light.new("/sim/model/lights/tailstrobe", [0.1, 1], "/controls/lighting/strobe");
var logo_lights = getprop("/sim/model/lights/logo-lights"); var logo_lights = getprop("/sim/model/lights/logo-lights");
var nav_lights = props.globals.getNode("/sim/model/lights/nav-lights"); var nav_lights = props.globals.getNode("/sim/model/lights/nav-lights");
var wing_switch = props.globals.getNode("/controls/switches/wing-lights", 1);
var wing_ctl = props.globals.getNode("/controls/lighting/wing-lights", 1);
var dome_light = props.globals.initNode("/sim/model/lights/dome-light", 0.0, "DOUBLE"); var dome_light = props.globals.initNode("/sim/model/lights/dome-light", 0.0, "DOUBLE");
var wow = getprop("/gear/gear[2]/wow"); var wow = getprop("/gear/gear[2]/wow");
var slats = getprop("/controls/flight/slats"); var slats = getprop("/controls/flight/slats");
@ -58,8 +61,10 @@ var settingT = getprop("/controls/lighting/taxi-light-switch");
var settingTurnoff = getprop("/controls/lighting/turnoff-light-switch"); var settingTurnoff = getprop("/controls/lighting/turnoff-light-switch");
var setting = getprop("/controls/lighting/nav-lights-switch"); var setting = getprop("/controls/lighting/nav-lights-switch");
var domeSetting = getprop("/controls/lighting/dome-norm"); var domeSetting = getprop("/controls/lighting/dome-norm");
var landl = getprop("/controls/lighting/landing-lights[1]"); var landL = props.globals.getNode("controls/lighting/landing-lights[1]", 1);
var landr = getprop("/controls/lighting/landing-lights[2]"); var landR = props.globals.getNode("controls/lighting/landing-lights[2]", 1);
var landlSw = props.globals.getNode("/controls/switches/landing-lights-l", 1);
var landrSw = props.globals.getNode("/controls/switches/landing-lights-r", 1);
################### ###################
# Tire Smoke/Rain # # Tire Smoke/Rain #
@ -505,7 +510,7 @@ var lightsLoop = maketimer(0.2, func {
wow = getprop("/gear/gear[2]/wow"); wow = getprop("/gear/gear[2]/wow");
slats = getprop("/controls/flight/slats"); slats = getprop("/controls/flight/slats");
if (getprop("/systems/electrical/bus/ac1") > 0 or getprop("/systems/electrical/bus/ac2") > 0) { if (getprop("/systems/electrical/bus/ac1") > 0 or getprop("/systems/electrical/bus/ac2") > 0 or getprop("/systems/electrical/bus/dc1") > 0 or getprop("/systems/electrical/bus/dc2") > 0) {
setprop("/systems/electrical/nav-lights-power", 1); setprop("/systems/electrical/nav-lights-power", 1);
} else { } else {
setprop("/systems/electrical/nav-lights-power", 0); setprop("/systems/electrical/nav-lights-power", 0);
@ -540,15 +545,45 @@ var lightsLoop = maketimer(0.2, func {
# strobe # strobe
strobe_sw = strobe_switch.getValue(); strobe_sw = strobe_switch.getValue();
if (strobe_sw == 1) { if (strobe_sw == 1 and getprop("/systems/electrical/bus/ac2") > 0) {
strobe_light.setValue(1); strobe_light.setValue(1);
} elsif (strobe_sw == 0.5 and getprop("/gear/gear[1]/wow") == 0 and getprop("/gear/gear[2]/wow") == 0) { } elsif (strobe_sw == 0.5 and getprop("/gear/gear[1]/wow") == 0 and getprop("/gear/gear[2]/wow") == 0 and getprop("/systems/electrical/bus/ac2") > 0) {
# todo: use lgciu output 5 # todo: use lgciu output 5
strobe_light.setValue(1); strobe_light.setValue(1);
} else { } else {
strobe_light.setValue(0); strobe_light.setValue(0);
} }
# beacon
if (beacon_switch.getValue() == 1 and (getprop("/systems/electrical/bus/ac1") > 0 or getprop("/systems/electrical/bus/ac2") > 0)) {
beacon_ctl.setValue(1);
} else {
beacon_ctl.setValue(0);
}
# wing
if (wing_switch.getValue() == 1 and (getprop("/systems/electrical/bus/ac1") > 0 or getprop("/systems/electrical/bus/ac2") > 0)) {
wing_ctl.setValue(1);
} else {
wing_ctl.setValue(0);
}
# landL
if (landlSw.getValue() == 1 and getprop("/systems/electrical/bus/ac1") > 0) {
landL.setValue(1);
} else {
landL.setValue(0);
}
if (landrSw.getValue() == 1 and getprop("/systems/electrical/bus/ac2") > 0) {
landR.setValue(1);
} else {
landR.setValue(0);
}
# signs # signs
if (getprop("/systems/pressurization/cabinalt-norm") > 11300) { if (getprop("/systems/pressurization/cabinalt-norm") > 11300) {

View file

@ -1 +1 @@
4764 4765