1
0
Fork 0

Restore end of fpln behaviour

This commit is contained in:
Jonathan Redpath 2022-05-16 15:31:27 +01:00
parent ec1c5142ec
commit e45101b03f

View file

@ -126,8 +126,12 @@ var A320GPSDelegate = {
return;
if (me._modeProp.getValue() == 'leg') {
if (me.flightplan.nextWP().wp_type == 'discontinuity') {
if (me.flightplan.current + 1 >= me.flightplan.numWaypoints()) {
logprint(LOG_INFO, "default GPS sequencing, finishing flightplan");
me.flightplan.finish();
} elsif (me.flightplan.nextWP().wp_type == 'discontinuity') {
logprint(LOG_INFO, "default GPS sequencing DISCONTINUITY in flightplan, switching to HDG");
me._captureCurrentCourse();
me._selectOBSMode();
# set HDG mode