Correct altitude to 200 feet (new ICAO regulations mean this is the altitude on newer aircraft, and adjust flashing rate for amber, pending looking for primary sources on youtube
This commit is contained in:
parent
67ae1e461a
commit
d4c2580fbb
2 changed files with 12 additions and 12 deletions
|
@ -2483,7 +2483,7 @@ var altTimer2 = maketimer(0.50, func {
|
|||
});
|
||||
|
||||
var amber_going1 = 0;
|
||||
var amberTimer1 = maketimer(0.50, func {
|
||||
var amberTimer1 = maketimer(0.25, func {
|
||||
if (!amberFlash1.getBoolValue()) {
|
||||
amberFlash1.setBoolValue(1);
|
||||
} else {
|
||||
|
@ -2492,7 +2492,7 @@ var amberTimer1 = maketimer(0.50, func {
|
|||
});
|
||||
|
||||
var amber_going2 = 0;
|
||||
var amberTimer2 = maketimer(0.50, func {
|
||||
var amberTimer2 = maketimer(0.25, func {
|
||||
if (!amberFlash2.getBoolValue()) {
|
||||
amberFlash2.setBoolValue(1);
|
||||
} else {
|
||||
|
|
|
@ -33,7 +33,7 @@ var numberMinutes = nil;
|
|||
var timeNow = nil;
|
||||
var timer10secIRS = nil;
|
||||
var altAlertInhibit = nil;
|
||||
var alt250 = nil;
|
||||
var alt200 = nil;
|
||||
var alt750 = nil;
|
||||
var bigThree = nil;
|
||||
|
||||
|
@ -749,10 +749,10 @@ var messages_priority_3 = func {
|
|||
}
|
||||
|
||||
# C-Chord
|
||||
if ((pts.Modes.Altimeter.std.getValue() and abs(fcu.altSet.getValue() - getprop("systems/navigation/adr/output/baro-alt-1-capt")) < 250) or !pts.Modes.Altimeter.std.getValue() and abs(fcu.altSet.getValue() - getprop("systems/navigation/adr/output/baro-alt-corrected-1-capt")) < 250) {
|
||||
alt250 = 1;
|
||||
if ((pts.Modes.Altimeter.std.getValue() and abs(fcu.altSet.getValue() - getprop("systems/navigation/adr/output/baro-alt-1-capt")) < 200) or !pts.Modes.Altimeter.std.getValue() and abs(fcu.altSet.getValue() - getprop("systems/navigation/adr/output/baro-alt-corrected-1-capt")) < 200) {
|
||||
alt200 = 1;
|
||||
} else {
|
||||
alt250 = 0;
|
||||
alt200 = 0;
|
||||
}
|
||||
|
||||
if ((pts.Modes.Altimeter.std.getValue() and abs(fcu.altSet.getValue() - getprop("systems/navigation/adr/output/baro-alt-1-capt")) < 750) or !pts.Modes.Altimeter.std.getValue() and abs(fcu.altSet.getValue() - getprop("systems/navigation/adr/output/baro-alt-corrected-1-capt")) < 750) {
|
||||
|
@ -767,7 +767,7 @@ var messages_priority_3 = func {
|
|||
altAlertInhibit = 0;
|
||||
}
|
||||
|
||||
if (alt750 and !alt250 and !altAlertInhibit) {
|
||||
if (alt750 and !alt200 and !altAlertInhibit) {
|
||||
FWC.Monostable.altAlert2.setValue(1);
|
||||
} else {
|
||||
FWC.Monostable.altAlert2.setValue(0);
|
||||
|
@ -779,25 +779,25 @@ var messages_priority_3 = func {
|
|||
FWC.Monostable.altAlert1.setValue(0);
|
||||
}
|
||||
|
||||
if (alt750 and alt250 and !altAlertInhibit) {
|
||||
if (alt750 and alt200 and !altAlertInhibit) {
|
||||
setprop("ECAM/flipflop/alt-alert-2-rs-set", 1);
|
||||
} else {
|
||||
setprop("ECAM/flipflop/alt-alert-2-rs-set", 0);
|
||||
}
|
||||
|
||||
if (getprop("ECAM/flipflop/alt-alert-rs-reset") or (!alt750 and !alt250 and !altAlertInhibit)) {
|
||||
if (getprop("ECAM/flipflop/alt-alert-rs-reset") or (!alt750 and !alt200 and !altAlertInhibit)) {
|
||||
setprop("ECAM/flipflop/alt-alert-2-rs-reset", 1);
|
||||
} else {
|
||||
setprop("ECAM/flipflop/alt-alert-2-rs-reset", 0);
|
||||
}
|
||||
|
||||
if (alt750 and !alt250 and !altAlertInhibit and getprop("ECAM/flipflop/alt-alert-2-rs-output")) {
|
||||
if (alt750 and !alt200 and !altAlertInhibit and getprop("ECAM/flipflop/alt-alert-2-rs-output")) {
|
||||
setprop("ECAM/flipflop/alt-alert-3-rs-set", 1);
|
||||
} else {
|
||||
setprop("ECAM/flipflop/alt-alert-3-rs-set", 0);
|
||||
}
|
||||
|
||||
if ((!alt750 and !alt250 and !altAlertInhibit and getprop("ECAM/flipflop/alt-alert-rs-output")) or (!alt750 and !alt250 and !altAlertInhibit and getprop("ECAM/flipflop/alt-alert-3-rs-output")) or getprop("ECAM/flipflop/alt-alert-3-rs-set")) {
|
||||
if ((!alt750 and !alt200 and !altAlertInhibit and getprop("ECAM/flipflop/alt-alert-rs-output")) or (!alt750 and !alt200 and !altAlertInhibit and getprop("ECAM/flipflop/alt-alert-3-rs-output")) or getprop("ECAM/flipflop/alt-alert-3-rs-set")) {
|
||||
bigThree = 1;
|
||||
} else {
|
||||
bigThree = 0;
|
||||
|
@ -814,7 +814,7 @@ var messages_priority_3 = func {
|
|||
setprop("sim/sound/warnings/cchord-inhibit", 0);
|
||||
}
|
||||
|
||||
if (!gnd and getprop("ECAM/flipflop/alt-alert-3-rs-set") != 1 and alt750 and !alt250 and !altAlertInhibit) {
|
||||
if (!gnd and getprop("ECAM/flipflop/alt-alert-3-rs-set") != 1 and alt750 and !alt200 and !altAlertInhibit) {
|
||||
setprop("ECAM/alt-alert-steady", 1);
|
||||
} else {
|
||||
setprop("ECAM/alt-alert-steady", 0);
|
||||
|
|
Loading…
Reference in a new issue