1
0
Fork 0

Re-enable delegate sequencing; which will handle radial intercepts through the GPS controller

This commit is contained in:
Jonathan Redpath 2022-05-15 22:49:53 +01:00
parent 30bbb196d3
commit 285da1f974

View file

@ -122,7 +122,20 @@ var A320GPSDelegate = {
sequence: func
{
return;
if (!me.flightplan.active)
return;
if (me._modeProp.getValue() == 'leg') {
if (me.flightplan.nextWP().wp_type == 'discontinuity') {
logprint(LOG_INFO, "default GPS sequencing DISCONTINUITY in flightplan, switching to HDG");
# set HDG mode
} else {
logprint(LOG_INFO, "default GPS sequencing to next WP");
me.flightplan.current = me.flightplan.current + 1;
}
} else {
# OBS, do nothing
}
},
currentWaypointChanged: func