FMGC: Fix incorrect reversions to heading mode
This commit is contained in:
parent
e77766f3ed
commit
5348c7f4ca
2 changed files with 6 additions and 2 deletions
|
@ -268,7 +268,9 @@ var A320GPSDelegate = {
|
||||||
me.flightplan.current = me.flightplan.current + 1;
|
me.flightplan.current = me.flightplan.current + 1;
|
||||||
} else {
|
} else {
|
||||||
logprint(LOG_INFO, "default GPS sequencing to next WP (special)");
|
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') {
|
if (me.flightplan.nextWP().wp_type == 'vectors') {
|
||||||
me.flightplan.current = me.flightplan.current + 2;
|
me.flightplan.current = me.flightplan.current + 2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,7 +227,9 @@ var flightPlanController = {
|
||||||
# TODO - I think that it only goes to VS when in DES mode
|
# 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") {
|
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.currentToWptIndex.setValue(me.currentToWptIndexTemp + 2);
|
||||||
me.lastSequencedCurrentWP = me.currentToWptIndexTemp + 2;
|
me.lastSequencedCurrentWP = me.currentToWptIndexTemp + 2;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue