Using FG 2.12 (Win64), I try to create a route in the CRJ 700 CDU using the "GEN ROUTE" command available in the CDU, available from the "LEGS-2" page, after selecting the destination to create the route to.
But this does not seem to work, it just adds some strange waypoint at the end of the route.
For instance, if I select KSFO as depart, KLAX as dest, then I go to the LEGS page, select KLAX, and in the LEGS-2 page, select GEN ROUTE. It will add an "ATIS" (?) waypoint just after KLAX.
As I'm curious, I just took a look at the files, the GEN ROUTE pushes a "@route1" action to route manager, but this does not have the expected effect to generate a route, like the Route manager GUI's "Route" button.
So looking at FG's route-manager.xml file, it turns out that the "Route" button has a specific code, not an @route command, which I tested into the CRJ's
Nasal/cdu.nas file, replacing the route function at line 533:
- Code: Select all
route: func(i)
{
#RouteManager.input("route" ~ i); This does not work in my FG2.12
var fp = flightplan();
var from = fp.getWP(i - 1);
var to = fp.getWP(i);
if ((from != nil ) and (to != nil)) {
var route = airwaysRoute(from, to);
fp.insertWaypoints(route, i);
}
},
Now the GEN ROUTE action works fine and creates the same route as Route-manager GUI's one.
But could it be due to FG 2.12-Win64, which does not seem to accept the "@route" command sent to the route-manager ?
Did the CDU "GEN ROUTE" action worked fine in previous FG versions ?