Restore end of fpln behaviour
This commit is contained in:
parent
ec1c5142ec
commit
e45101b03f
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue