A3XX: Fixed Bug: PFD FMA causing Nasal error
This commit is contained in:
parent
26f2ff9b5d
commit
ef2d27ed23
1 changed files with 17 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
# Airbus PFD FMA
|
# Airbus PFD FMA
|
||||||
# Joshua Davidson (it0uchpods/411)
|
# Joshua Davidson (it0uchpods/411)
|
||||||
|
|
||||||
|
setprop("/FMGC/internal/cruise-ft", 10000);
|
||||||
|
setprop("/it-autoflight/internal/alt", 10000);
|
||||||
|
|
||||||
# Speed or Mach?
|
# Speed or Mach?
|
||||||
var speedmach = func {
|
var speedmach = func {
|
||||||
if ((getprop("/it-autoflight/output/vert") == 4) or (getprop("/it-autoflight/output/vert") == 6) or (getprop("/it-autoflight/output/vert") == 7)) {
|
if ((getprop("/it-autoflight/output/vert") == 4) or (getprop("/it-autoflight/output/vert") == 6) or (getprop("/it-autoflight/output/vert") == 7)) {
|
||||||
|
@ -154,6 +157,20 @@ setlistener("/it-autoflight/mode/vert", func {
|
||||||
if (newvertarm != "ALT") {
|
if (newvertarm != "ALT") {
|
||||||
setprop("/modes/pfd/fma/pitch-mode2-armed", "ALT");
|
setprop("/modes/pfd/fma/pitch-mode2-armed", "ALT");
|
||||||
}
|
}
|
||||||
|
} else if (vert == "MNG CLB") {
|
||||||
|
if (newvert != "CLB") {
|
||||||
|
setprop("/modes/pfd/fma/pitch-mode", "CLB");
|
||||||
|
}
|
||||||
|
if (newvertarm != "ALT") {
|
||||||
|
setprop("/modes/pfd/fma/pitch-mode2-armed", "ALT");
|
||||||
|
}
|
||||||
|
} else if (vert == "MNG DES") {
|
||||||
|
if (newvert != "DES") {
|
||||||
|
setprop("/modes/pfd/fma/pitch-mode", "DES");
|
||||||
|
}
|
||||||
|
if (newvertarm != "ALT") {
|
||||||
|
setprop("/modes/pfd/fma/pitch-mode2-armed", "ALT");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
altvert();
|
altvert();
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue