On Mon, 26 Jun 2006, emanoel bernardo wrote:

> Hey everyone,
> I'd like to use FG (Flight Gear) and autopilot separetelly but i don't know
> how do they communicate to each other. Let me explain better...What I wanna
> do is:
> Run FG on a PC and run the autopilot on another PC and communicate them.

The AP's (there are several different implementations) are part of the
models. (Rationale is that autopilot devices normally are mounted *in* the
aircrafts in the real world =). If you are developing your own stand-alone
autopilot and want it on another host, there are several ways to interface
to the simulator to control the aircraft remotely.

Everything you need to read and set to control an aircraft is in the
aircraft's property tree. (This is how the aircraft is controlled
internally too) This property tree can be read and modified (if the
property is not a read-only one) across the network.

The simplest way to /set/ a property is perhaps via the telnet interface.
fgfs --telnet=<port> then do "telnet <host> <port>" and type "help" to see
the syntax. You can read properties aswell, that way, but perhaps you
rather prefer to get data synchronously. This can be achieved through the
general i/o-interface. (Can one /set/ properties aswell with this, anyone?
No mentioning on how in the docs. :P)

Stuff to read:
man fgfs
Docs/README.IO
Protocol/* (examples and another README-file)

There is also a remote joystick interface whose protocol could come in
handy: Docs/README.jsclient You have to mimic the jsserver with your remote
AP.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to