Route-manager: use Flightplan transition data
Explicitly use the flight-plan transition data when building the routes for the SID and STAR. Previously we didn’t actually pick this up reliably.
This commit is contained in:
parent
4e6a82f55f
commit
d0d55ccb04
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ var RouteManagerDelegate = {
|
|||
# and we have a SID
|
||||
var sid = me.flightplan.sid;
|
||||
logprint(LOG_INFO, 'routing via SID ' ~ sid.id);
|
||||
me.flightplan.insertWaypoints(sid.route(me.flightplan.departure_runway), 1);
|
||||
me.flightplan.insertWaypoints(sid.route(me.flightplan.departure_runway, me.flightplan.sid_trans), 1);
|
||||
},
|
||||
|
||||
arrivalChanged: func
|
||||
|
@ -58,7 +58,7 @@ var RouteManagerDelegate = {
|
|||
var initialApproachFix = nil;
|
||||
if (me.flightplan.star != nil) {
|
||||
logprint(LOG_INFO, 'routing via STAR ' ~ me.flightplan.star.id);
|
||||
var wps = me.flightplan.star.route(me.flightplan.destination_runway);
|
||||
var wps = me.flightplan.star.route(me.flightplan.destination_runway, me.flightplan.star_trans);
|
||||
if (wps != nil) {
|
||||
me.flightplan.insertWaypoints(wps, -1);
|
||||
initialApproachFix = wps[-1]; # final waypoint of STAR
|
||||
|
|
Loading…
Add table
Reference in a new issue