A3XX: Add IESI 90sec init, fix autobrake MAX not disabling (#119)
This commit is contained in:
parent
03f016117b
commit
a0e085c334
4 changed files with 1913 additions and 1800 deletions
|
@ -58,6 +58,18 @@ var canvas_IESI_base = {
|
||||||
return [];
|
return [];
|
||||||
},
|
},
|
||||||
update: func() {
|
update: func() {
|
||||||
|
if (getprop("/systems/electrical/battery1-amps") >= 120 or getprop("/systems/electrical/battery2-amps") >= 120 or getprop("/systems/electrical/bus/dc1") >= 25 or getprop("/systems/electrical/bus/dc2") >= 25) {
|
||||||
|
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/iesi/iesi-init") != 1) {
|
||||||
|
setprop("/instrumentation/iesi/iesi-init", 1);
|
||||||
|
setprop("/instrumentation/iesi/iesi-init-time", getprop("/sim/time/elapsed-sec"));
|
||||||
|
} else if (getprop("/systems/acconfig/autoconfig-running") == 1 and getprop("/instrumentation/iesi/iesi-init") != 1) {
|
||||||
|
setprop("/instrumentation/iesi/iesi-init", 1);
|
||||||
|
setprop("/instrumentation/iesi/iesi-init-time", getprop("/sim/time/elapsed-sec") - 87);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
setprop("/instrumentation/iesi/iesi-init", 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (getprop("/systems/electrical/battery1-amps") >= 120 or getprop("/systems/electrical/battery2-amps") >= 120 or getprop("/systems/electrical/bus/dc1") >= 25 or getprop("/systems/electrical/bus/dc2") >= 25) {
|
if (getprop("/systems/electrical/battery1-amps") >= 120 or getprop("/systems/electrical/battery2-amps") >= 120 or getprop("/systems/electrical/bus/dc1") >= 25 or getprop("/systems/electrical/bus/dc2") >= 25) {
|
||||||
IESI.page.show();
|
IESI.page.show();
|
||||||
IESI.update();
|
IESI.update();
|
||||||
|
@ -75,9 +87,18 @@ var canvas_IESI = {
|
||||||
return m;
|
return m;
|
||||||
},
|
},
|
||||||
getKeys: func() {
|
getKeys: func() {
|
||||||
return ["ASI_scale","ASI_mach","ASI_mach_decimal","AI_center","AI_horizon","AI_bank","AI_slipskid","ALT_scale","ALT_one","ALT_two","ALT_three","ALT_four","ALT_five","ALT_digits","ALT_tens","ALT_meters","QNH_setting","QNH_std"];
|
return ["IESI","IESI_Init","ASI_scale","ASI_mach","ASI_mach_decimal","AI_center","AI_horizon","AI_bank","AI_slipskid","ALT_scale","ALT_one","ALT_two","ALT_three","ALT_four","ALT_five","ALT_digits","ALT_tens","ALT_meters","QNH_setting","QNH_std"];
|
||||||
},
|
},
|
||||||
update: func() {
|
update: func() {
|
||||||
|
elapsedtime = getprop("/sim/time/elapsed-sec");
|
||||||
|
if (getprop("/instrumentation/iesi/iesi-init-time") + 90 >= elapsedtime) {
|
||||||
|
me["IESI"].hide();
|
||||||
|
me["IESI_Init"].show();
|
||||||
|
} else {
|
||||||
|
me["IESI_Init"].hide();
|
||||||
|
me["IESI"].show();
|
||||||
|
}
|
||||||
|
|
||||||
# Airspeed
|
# Airspeed
|
||||||
# Subtract 30, since the scale starts at 30, but don"t allow less than 0, or more than 420 situations
|
# Subtract 30, since the scale starts at 30, but don"t allow less than 0, or more than 420 situations
|
||||||
if (getprop("/instrumentation/airspeed-indicator/indicated-speed-kt") <= 30) {
|
if (getprop("/instrumentation/airspeed-indicator/indicated-speed-kt") <= 30) {
|
||||||
|
@ -163,7 +184,7 @@ setlistener("sim/signals/fdm-initialized", func {
|
||||||
IESI_update.start();
|
IESI_update.start();
|
||||||
});
|
});
|
||||||
|
|
||||||
var IESI_update = maketimer(0.05, func {
|
var IESI_update = maketimer(0.07, func {
|
||||||
canvas_IESI_base.update();
|
canvas_IESI_base.update();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 121 KiB |
|
@ -79,4 +79,7 @@ var absChk = maketimer(0.2, func {
|
||||||
setprop("/controls/gear/brake-right", 0);
|
setprop("/controls/gear/brake-right", 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (getprop("/controls/autobrake/mode") == 3 and getprop("/controls/gear/gear-down") == 0) {
|
||||||
|
arm_autobrake(0);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
4209
|
4210
|
Reference in a new issue