Board index FlightGear Support Interfacing

How to extract flight data?

Connecting two computers, using generic protocol, connecting with Matlab?

How to extract flight data?

Postby sunxiaoe » Tue Aug 27, 2019 12:19 pm

I want to use a civil airliner to fly, and extract some data related to navigation equipment, mainly GPS data, ILS data, and DME, VOR data.
I don't know if I can extract this data, or if FG can output these parameters, I have not found a reference list of FG output parameters.
In addition, is it possible to know some specific parameters of the airport where the aircraft landed, such as the location and area of the airport?
I would be grateful for your help.
sunxiaoe
 
Posts: 18
Joined: Tue Aug 27, 2019 11:53 am

Re: How to extract flight data?

Postby daweed » Wed Aug 28, 2019 7:40 am

Hello,

You can extract all the data available in the FG data tree. [ meaning all parameters from your aircraft, and so , where u are , including location ]
Wiki is a good source of informations.

Have a look here :

http://wiki.flightgear.org/Property_Tree/Explained
http://wiki.flightgear.org/Generic_protocol
http://wiki.flightgear.org/Logging_properties

Regards

Daweed
Windows 10 / Linux Mint 20
AMD Ryzen 7 3700X |32 Go RAM GeForce RTX 3070 Ti 8 Go
FG Interface
Lyon Saint Exupery Scenery

ATC on LFLL on Friday 19:00 UTC => 22:00 UTC
daweed
 
Posts: 398
Joined: Thu Dec 11, 2014 11:45 am
Location: LFKP LFLL
Callsign: daweed
OS: Linux Mint 20

Re: How to extract flight data?

Postby sunxiaoe » Wed Aug 28, 2019 9:26 am

Daweed, thank you very much for your reply, this is very helpful to me.
sunxiaoe
 
Posts: 18
Joined: Tue Aug 27, 2019 11:53 am

Re: How to extract flight data?

Postby legoboyvdlp » Wed Aug 28, 2019 1:13 pm

I'm sorry, I sent a reply here yesterday but seems like it didn't get through...?

Navigation equipment is all under /instrumentation/. Try /comm[0]/ - just from memory, so may be wrong.

The closest airport is found from memory also at sim/airport/closest-airport-id. You can then use Nasal airportInfo() (see the wiki for details) to fetch data for that ICAO. Notice the closest airport is only checked every thirty seconds (now ten seconds if you are compiling from -next, thirty in the last released version). When you are on the ground this property should be the airport you are at.
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: How to extract flight data?

Postby V12 » Wed Aug 28, 2019 1:46 pm

sunxiaoe :
I recommend perfect tablet software SimPlates - more info at http://www.simplates.com/
Or You can try search approach plates for airport of Your choice.
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: How to extract flight data?

Postby sunxiaoe » Wed Aug 28, 2019 1:59 pm

I just got in touch with FlightGear, I feel it's complicated and I can't do anything about it. Legoboyvdlp, your suggestion is very helpful to me, thank you very much.
sunxiaoe
 
Posts: 18
Joined: Tue Aug 27, 2019 11:53 am

Re: How to extract flight data?

Postby sunxiaoe » Wed Aug 28, 2019 2:01 pm

V12, you have provided me with a useful information, which is very helpful to me, thank you very much.
sunxiaoe
 
Posts: 18
Joined: Tue Aug 27, 2019 11:53 am

Re: How to extract flight data?

Postby V12 » Wed Aug 28, 2019 6:16 pm

Flightgear is not a game, but simulator. You can use it in game style :
- chose aircraft, departing airport etc. and click on Fly!
- autostart aircraft
- enter destination
... aaaand fly.

Or You can use FG like maximal realistic sim :
- chose aircraft, departing airport etc. and click on Fly!
- perform all checklists to start the airplane from cold and dark state to ready to taxi state
- study depart and approach procedures for airports
- fly that procedures as in real life from take off to land

There is special bonus - multiplayer flights with air traffic controllers that give You advices for depart or approach
- or You can repeat Chuck Yeager's first break speed of sound
- You can depart London in the dark night, fly at almost 60 000 feets over the Atlantic surface and land in New York in nice afternoon of same day with Concorde
- or make simulated attack over Moscow with mighty nuclear bomber XB70 (in case of multiplay You can meet opponent in Su-15 interceptor)
- or make recon mission over North Korean nuclear facilities in SR71
- and if it is not enough, You can try Space Shuttle Hubble or ISS missions

Possibilities are endless...
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: How to extract flight data?

Postby sunxiaoe » Thu Aug 29, 2019 2:06 am

Thank you very much for your reply. I am a newbie, but FG has some complications for me. On the one hand, I want to use it as a game to play. On the other hand, I also regard it as a tool to carry out related research. However, I don't know much about the knowledge of FG development. I don't know what kind of knowledge I should learn. Should I start learning from C++?
sunxiaoe
 
Posts: 18
Joined: Tue Aug 27, 2019 11:53 am

Re: How to extract flight data?

Postby V12 » Thu Aug 29, 2019 7:41 am

If You want use FG as game to play, You don't need know nothing about C++.
What research You want to do with FG ?
If You want to contribute in FG development, You need programmers skills.
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: How to extract flight data?

Postby sunxiaoe » Thu Aug 29, 2019 7:59 am

I mainly do some research on airborne navigation systems and want to use FG to get some relevant data.
sunxiaoe
 
Posts: 18
Joined: Tue Aug 27, 2019 11:53 am

Re: How to extract flight data?

Postby V12 » Thu Aug 29, 2019 10:09 am

There are 2 plain text files in Flightgear with navigation data :
fix.dat with waypoints
nav.dat with NDB, VOR, ILS etc navaids

But this data are very outdated.
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: How to extract flight data?

Postby sunxiaoe » Thu Aug 29, 2019 10:22 am

Excuse me, V12, what is the meaning of "very outdated"? Does it mean that the data is inaccurate?
sunxiaoe
 
Posts: 18
Joined: Tue Aug 27, 2019 11:53 am

Re: How to extract flight data?

Postby V12 » Thu Aug 29, 2019 10:33 am

That datas are from 2013 year. If You want actual data, check https://www.aero.sors.fr/navaids3.html
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: How to extract flight data?

Postby sunxiaoe » Thu Aug 29, 2019 2:18 pm

V12,thank you very much,your opinion is very important to me. I am not very familiar with FG. If there are some problems in the follow-up, can I email you to ask for advice?
sunxiaoe
 
Posts: 18
Joined: Tue Aug 27, 2019 11:53 am

Next

Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest