A3XX: Fix stuck NAV annunciator
This commit is contained in:
parent
2f74c03317
commit
1f21665a3c
1 changed files with 2 additions and 0 deletions
|
@ -226,6 +226,7 @@ var lat_arm = func {
|
|||
var latset = getprop("/it-autoflight/input/lat");
|
||||
if (latset == 0) {
|
||||
setprop("/it-autoflight/input/lat-arm", 0);
|
||||
setprop("/it-autoflight/mode/arm", " ");
|
||||
setprop("/it-autoflight/custom/show-hdg", 1);
|
||||
} else if (latset == 1) {
|
||||
if (getprop("/autopilot/route-manager/route/num") > 0 and getprop("/autopilot/route-manager/active") == 1) {
|
||||
|
@ -239,6 +240,7 @@ var lat_arm = func {
|
|||
var hdgnow = int(getprop("/orientation/heading-magnetic-deg")+0.5);
|
||||
setprop("/it-autoflight/input/hdg", hdgnow);
|
||||
setprop("/it-autoflight/input/lat-arm", 0);
|
||||
setprop("/it-autoflight/mode/arm", " ");
|
||||
setprop("/it-autoflight/custom/show-hdg", 1);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue