Board index FlightGear Support

How to add flight plan from cmd and activate route manager?

All general support: help on flying, installation, hardware, getting online etc. There are lots of users and developers to help you out.
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- what graphics card do you have?
- does the problem occur with any aircraft, at any airport?
- where did you download your aircraft/scenery from?
- is there any output printed to the console (black window)?
- copy&paste your commandline (tick the "Show commandline box on the last page of FGRun or the "Others" section on the Mac launcher).

If you experience FlightGear crashes, please report a bug using the issue tracker (can be also used for feature requests).
To run FlightGear on old computers with bad OpenGL support, please take a look at this wiki article.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

How to add flight plan from cmd and activate route manager?

Postby Zohair43 » Mon Sep 03, 2018 11:04 am

I am using Flightgear 2018.2.2 on Windows 10 and cant seem to figure out a way to automatically load the Flight Plan XML and run it as soon as the Flightgear starts.

The command I am using is:

fgfs --aircraft=737-300 --lon=151.177222 --lat=-33.946111 --altitude=10000 --heading=220 --vc=280 --airport=YSSY --fdm=jsb --flight-plan=plan.xml --prop:/controls/gear/gear-down=0 --prop:/autopilot/settings/target-speed-kt=280 --prop:/autopilot/locks/speed=speed-with-throttle --prop:/autopilot/settings/target-altitude-ft=10000 --prop:/autopilot/locks/altitude=altitude-hold --prop:/autopilot/locks/heading=true-heading-hold --prop:/autopilot/route-manager/destination/airport=YSCB --prop:/autopilot/route-manager/destination/runway=34 --prop:/autopilot/route-manager/departure/runway=34L --prop:/autopilot/route-manager/input=@INSERT-1:YSCB --prop:/autopilot/route-manager/airborne=true --prop:/autopilot/route-manager/active=true
Posts: 1
Joined: Mon Sep 03, 2018 10:38 am

Re: How to add flight plan from cmd and activate route manag

Postby TribalBob » Tue Sep 04, 2018 6:27 pm

You have one or both of two problems.

Make sure --flight-plan is pointed to the right location. For example, when i save a route, it gets saved to: C:\Users\MyUsername\AppData\Roaming\\Export\plan
So in order to load the flightplan I must set --flight-plan=C:\Users\MyUsername\AppData\Roaming\\Export\plan

Secondly, make sure the file is actually an XML file, by default FlightGear saves routes without a file extension.

As far as automatically activating the route, I can't help with that. I will have to do some testing.
Posts: 47
Joined: Thu Aug 23, 2018 11:58 am

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest