1
0
Fork 0

FMGC: Fix incorrect reversions to heading mode

This commit is contained in:
Josh Davidson 2022-06-26 17:55:05 -04:00
parent e77766f3ed
commit 5348c7f4ca
2 changed files with 6 additions and 2 deletions

View file

@ -268,7 +268,9 @@ var A320GPSDelegate = {
me.flightplan.current = me.flightplan.current + 1;
} else {
logprint(LOG_INFO, "default GPS sequencing to next WP (special)");
fmgc.Input.lat.setValue(3);
if (fmgc.Output.lat.getValue() == 1) {
fmgc.Input.lat.setValue(3);
}
if (me.flightplan.nextWP().wp_type == 'vectors') {
me.flightplan.current = me.flightplan.current + 2;
}

View file

@ -227,7 +227,9 @@ var flightPlanController = {
# TODO - I think that it only goes to VS when in DES mode
if (me.flightplans[2].getWP(me.currentToWptIndexTemp + 1).wp_type == "discontinuity" or me.flightplans[2].getWP(me.currentToWptIndexTemp + 1).wp_type == "vectors") {
fmgc.Input.lat.setValue(3);
if (fmgc.Output.lat.getValue() == 1) {
fmgc.Input.lat.setValue(3);
}
me.currentToWptIndex.setValue(me.currentToWptIndexTemp + 2);
me.lastSequencedCurrentWP = me.currentToWptIndexTemp + 2;
} else {