Board index FlightGear Support Interfacing

How can I get values like speed etc. ?

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

How can I get values like speed etc. ?

Postby obw298 » Sat Mar 24, 2018 8:36 am

I need values like speed, altitude etc.. Can I access them in real time while FG is running? I want to write a program that reads the data and sends them to an Arduino. Is that possible? (Mac OS)
obw298
 
Posts: 5
Joined: Fri Mar 23, 2018 7:46 pm

Re: How can I get values like speed etc. ?

Postby Hooray » Sat Mar 24, 2018 8:44 am

Hi & welcome

yes, that's possible.

I suggest to browse this sub-forum and the wiki, and especially $FG_ROOT/Docs:

https://sourceforge.net/p/flightgear/fg ... troduction
https://sourceforge.net/p/flightgear/fg ... properties
https://sourceforge.net/p/flightgear/fg ... .xmlsyntax
https://sourceforge.net/p/flightgear/fg ... /README.IO
https://sourceforge.net/p/flightgear/fg ... E.protocol


For starters, see: http://wiki.flightgear.org/Property_tree
http://wiki.flightgear.org/Telnet_usage

This should provide many pointers to get you going, depending on your needs/technology stack, there's tons of existing examples/code that you can reuse.


PS: It's generally a good idea to search the forum/wiki for relevant keywords, and to look at sticky topics: viewtopic.php?f=36&t=10173
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: 11259
Joined: Tue Mar 25, 2008 8:40 am


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 3 guests