A3XX: Add lights to autoconfig
This commit is contained in:
parent
44fc6468c1
commit
600ed57d08
2 changed files with 15 additions and 0 deletions
|
@ -260,6 +260,8 @@ var beforestart_b = func {
|
||||||
setprop("instrumentation/adirs/ir[1]/aligned",1);
|
setprop("instrumentation/adirs/ir[1]/aligned",1);
|
||||||
setprop("instrumentation/adirs/ir[2]/aligned",1);
|
setprop("instrumentation/adirs/ir[2]/aligned",1);
|
||||||
setprop("/controls/adirs/mcducbtn", 1);
|
setprop("/controls/adirs/mcducbtn", 1);
|
||||||
|
setprop("/controls/lighting/beacon", 1);
|
||||||
|
setprop("/controls/lighting/nav-lights-switch", 1);
|
||||||
setprop("/systems/acconfig/autoconfig-running", 0);
|
setprop("/systems/acconfig/autoconfig-running", 0);
|
||||||
ps_load_dlg.close();
|
ps_load_dlg.close();
|
||||||
ps_loaded_dlg.open();
|
ps_loaded_dlg.open();
|
||||||
|
@ -334,6 +336,8 @@ var taxi_b = func {
|
||||||
setprop("instrumentation/adirs/ir[1]/aligned",1);
|
setprop("instrumentation/adirs/ir[1]/aligned",1);
|
||||||
setprop("instrumentation/adirs/ir[2]/aligned",1);
|
setprop("instrumentation/adirs/ir[2]/aligned",1);
|
||||||
setprop("/controls/adirs/mcducbtn", 1);
|
setprop("/controls/adirs/mcducbtn", 1);
|
||||||
|
setprop("/controls/lighting/beacon", 1);
|
||||||
|
setprop("/controls/lighting/nav-lights-switch", 1);
|
||||||
settimer(taxi_c, 2);
|
settimer(taxi_c, 2);
|
||||||
}
|
}
|
||||||
var taxi_c = func {
|
var taxi_c = func {
|
||||||
|
@ -362,6 +366,7 @@ var taxi_e = func {
|
||||||
setprop("/controls/APU/master", 0);
|
setprop("/controls/APU/master", 0);
|
||||||
setprop("/controls/APU/start", 0);
|
setprop("/controls/APU/start", 0);
|
||||||
setprop("/controls/pneumatic/switches/bleedapu", 0);
|
setprop("/controls/pneumatic/switches/bleedapu", 0);
|
||||||
|
setprop("/controls/lighting/taxi-light-switch", 1);
|
||||||
setprop("/systems/acconfig/autoconfig-running", 0);
|
setprop("/systems/acconfig/autoconfig-running", 0);
|
||||||
ps_load_dlg.close();
|
ps_load_dlg.close();
|
||||||
ps_loaded_dlg.open();
|
ps_loaded_dlg.open();
|
||||||
|
@ -375,6 +380,9 @@ var takeoff = func {
|
||||||
var eng_one_chk_c = setlistener("/engines/engine[0]/state", func {
|
var eng_one_chk_c = setlistener("/engines/engine[0]/state", func {
|
||||||
if (getprop("/engines/engine[0]/state") == 3) {
|
if (getprop("/engines/engine[0]/state") == 3) {
|
||||||
removelistener(eng_one_chk_c);
|
removelistener(eng_one_chk_c);
|
||||||
|
setprop("/controls/lighting/strobe", 1);
|
||||||
|
setprop("/controls/lighting/landing-lights[1]", 1);
|
||||||
|
setprop("/controls/lighting/landing-lights[2]", 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);
|
||||||
|
|
|
@ -34,6 +34,13 @@ var variousReset = func {
|
||||||
setprop("/controls/switches/RrainRpt", 0);
|
setprop("/controls/switches/RrainRpt", 0);
|
||||||
setprop("/controls/switches/wiperLspd", 0); # -1 = INTM 0 = OFF 1 = LO 2 = HI
|
setprop("/controls/switches/wiperLspd", 0); # -1 = INTM 0 = OFF 1 = LO 2 = HI
|
||||||
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/beacon", 0);
|
||||||
|
setprop("/controls/lighting/wing-lights", 0);
|
||||||
|
setprop("/controls/lighting/nav-lights-switch", 0);
|
||||||
|
setprop("/controls/lighting/landing-lights[1]", 0);
|
||||||
|
setprop("/controls/lighting/landing-lights[2]", 0);
|
||||||
|
setprop("/controls/lighting/taxi-light-switch", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
setlistener("/sim/signals/fdm-initialized", func {
|
setlistener("/sim/signals/fdm-initialized", func {
|
||||||
|
|
Reference in a new issue