2009/10/31 Ørjan Pettersen <orj...@stud.cs.uit.no>

> Hello!
>
> I was planning on using FG as a UAV test platform. The idea was to have
> a demo flight with takeoff and landing on about 10 minutes. And during
> that flight I would gather flight data with an external program. Data
> like GPS position, airspeed, height and so on.
>
> Is there an easy way to access different flight data from an external
> application during flight? The first way that come in mind is to connect
> to it in multiplayer mode. But, since I never have tested multiplayer, I
> don't know what information that is sent out to the other players.
>
> Or perhaps using the Paparazzi project to control the plane, and gather
> data from Paparazzi instead?
>
> Does anyone have any thoughts on how this can be done?
>

I think the easiest way to proceed would be to use the FGNetFDM (--native)
protocol or the --generic protocol (which allows you to design custom
packets with the specific fields you choose.)  Both of these can send the
data out as UDP packets which then can be read by your external program
using standard socket communication.

This same basic mechanism also would permit your external program to send
control commands so if some day you want to do some sort of hardware or
software in the loop testing of your uav controller, that is also a
possibility.

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to