Board index FlightGear Development

Announcing rfgfs, a flight planner R package

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

Announcing rfgfs, a flight planner R package

Postby thlytras » Mon Oct 12, 2015 7:57 am

Hello everyone,

I am pleased to announce rfgfs, a package for R that allows planning a flight between two airports, using the airport, airway, navaid and navfix data that ship with FlightGear. It also calculates magnetic declination using the same formula that FlightGear uses, and can plot the created flight plan in a kml file for viewing with Google Earth.

Creating this as an R package will raise a few eyebrows, I guess, but R is what I I am most familiar and spend most of my time with (I'm an epidemiologist). I wanted an easy solution to fly around in my Tu-154B, so R was the natural choice for me. Hopefully it can be useful to other people as well -not just the statisticians among us- since there are few flight planning solutions for FlightGear.

Please find it at GitHub: https://github.com/thlytras/rfgfs. Testing and feedback is very, very welcome, as are suggestions for new features to be included. Please create an issue at the GitHub repo, or post a forum message in this thread. Happy flight planning!
thlytras
 
Posts: 2
Joined: Mon Oct 12, 2015 7:31 am

Re: Announcing rfgfs, a flight planner R package

Postby Kabuki » Tue Nov 03, 2015 6:37 pm

I was doing similar stuff using the Google Earth plugin and API, but put things on hold in favor of different interests. Now I've just learned that Google will no longer make its API available, so all that work goes in the trash. The most promising alternative is called "Cesium", and it's open source.

Just wondering if anybody has any experience with Cesium.

Much of my interest in flight overlaps with my interest in geography. Flying over terrain reveals things that are not as obvious on a map, and vice versa. One of the more trivial things I implemented was to give me Google Earth views of where I was flying, and it's pretty impressive to find yourself EXACTLY in the same place on a runway, in both flightgear, and on the GE view. It's also a snap to create flight director plans from a map.
This is a family-friendly saloon. No talk stink.
Kabuki
 
Posts: 587
Joined: Fri Oct 23, 2009 11:21 pm
Location: Usually on the ground, always in the sky, except when underwater.
Callsign: Kabuki
Version: 3.0.0
OS: Windows 7

Re: Announcing rfgfs, a flight planner R package

Postby Hooray » Tue Nov 03, 2015 6:49 pm

the OP should consider adding this to the wiki, maybe with a few screen shots or even a youtube video - the newsletter would be a good place for something like this (see my signature).
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11472
Joined: Tue Mar 25, 2008 8:40 am

Re: Announcing rfgfs, a flight planner R package

Postby Johan G » Fri Nov 06, 2015 8:49 pm

Kabuki wrote in Tue Nov 03, 2015 6:37 pm:The most promising alternative is called "Cesium", and it's open source.

Just wondering if anybody has any experience with Cesium.

While I have not tried it, I noticed I had an old bookmark to http://cesiumjs.org/. Apparently it is was started and is mainly developed by Analytical Graphics, Inc. (AGI), a giant in analysis and visualization of satellite operations etc.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5546
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: Announcing rfgfs, a flight planner R package

Postby Kabuki » Sat Nov 21, 2015 2:49 am

I've only glanced at the site, but I downloaded a starter kit which includes a node.js server (node is awesome!) and a simple earth viewer page. One thing I like already is there is a larger variety of map types. It was a bit hard to get the lay of the land from up high in Google Earth, but the Cesium demo includes shaded relief and watercolor overlays -- along with more common map info such as names of rivers (GE was always frustrating me by not having labels for rivers).

What I would like to be able to do is overlay aviation charts. And it looks like I found it http://cesiumjs.org/demos/CloudAhoy.html <--- CHECK THIS OUT. AMAZING!
This is a family-friendly saloon. No talk stink.
Kabuki
 
Posts: 587
Joined: Fri Oct 23, 2009 11:21 pm
Location: Usually on the ground, always in the sky, except when underwater.
Callsign: Kabuki
Version: 3.0.0
OS: Windows 7

Re: Announcing rfgfs, a flight planner R package

Postby Johan G » Sat Nov 21, 2015 5:25 pm

That looks rather impressive. :D
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5546
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: Announcing rfgfs, a flight planner R package

Postby Mickhead23 » Fri Aug 12, 2016 2:46 am

Greetings,
Tested this for a flight UKKK to UUDD. Is there an example of how the generated route can be adjusted? Such as dropping an NDB that may or may not exist today. I see there's a fixes parameter for planRoute but I'm not sure how to use it.
Also, is the arrival fork calculated?
Thanks
Mickhead23
 
Posts: 2
Joined: Fri Aug 12, 2016 2:41 am

Re: Announcing rfgfs, a flight planner R package

Postby thlytras » Sat Aug 13, 2016 5:25 pm

Mickhead23 wrote in Fri Aug 12, 2016 2:46 am:Greetings,
Tested this for a flight UKKK to UUDD. Is there an example of how the generated route can be adjusted? Such as dropping an NDB that may or may not exist today. I see there's a fixes parameter for planRoute but I'm not sure how to use it.
Also, is the arrival fork calculated?
Thanks


Hi there,

I've just added a few examples in the help pages of the package, check it out from github, it should be much clearer now. Also I've added a new function updateRoute() (been thinking about it for some time, but your message gave me the final push to write it); now you can manipulate the data.frame created by planRoute(), for example by adding or removing rows. Then you pass it through updateRoute() and you get your updated flight plan.

The arrival fork is not directly shown, but it should be trivial to calculate it based on the output of planRoute() and planNVU(). If I understand correctly (anyone feel free to correct me), it is magnetic declination at arrival minus magnetic declination at departure minus azimuth change. Therefore if you run planNVU() with init.mag=TRUE then your fork (at ANY point, not just at arrival) should be column Da minus column magdecl.

(Personally I don't use the fork, just before final approach I switch off NVU, adjust the HSI to magnetic and fly the STAR based on the available navaids).

Best,
Theodore
thlytras
 
Posts: 2
Joined: Mon Oct 12, 2015 7:31 am

Re: Announcing rfgfs, a flight planner R package

Postby Mickhead23 » Sun Aug 14, 2016 7:10 pm

Thank you, this is quite helpful for constructing an optimal route for the Tupolev 154. With the new function added, I'll use the tools for other models, as well. Cheers.
Mickhead23
 
Posts: 2
Joined: Fri Aug 12, 2016 2:41 am


Return to Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron