[EMAIL PROTECTED] wrote:
I am working on a autopilot project and we need a flight simulator to prove our control method before use it on a real aircraft. Is there any interface to
get the attitude of aircraft from and send control data to flightgear. I mean get
the altitude, rate, accelerate and so on from it and send rudder, elevator,
aileron and throttle data to flightgear to control a aircraft. Thanks
you can use the properties tree. If you look in the source code there are examples of how to access the telnet server of FlightGear using several programming languages like C, java, perl, python, ...(in utils/ I think).
Some properties are (you can find them in the File->Browse Internal Properties menu):
/orientation/alpha-deg /orientation/heading-deg /orientation/pitch-deg /orientation/roll-deg /position/altitude-agl-ft /position/altitude-ft /position/latitude-deg /position/longitude-deg /velocities/airspeed-kt /velocities/speed-down-fps /velocities/speed-east-fps /velocities/north-fps /velocities/vertical-speed-fps /controls/flight/aileron /controls/flight/elevator /controls/flight/rudder /controls/engines/engine/throttle
The previous properties were all in double format and can be read or set (through a .get() or .set() method/function, see in the source code).
The following are floats:
/surface-positions/elevator-pos-norm /surface-positions/left-aileron-pos-norm /surface-positions/right-aileron-pos-norm /surface-positions/rudder-pos-norm
There are dozens more, you can find them all if you click File->Browse Internal Properties while running FlightGear. A list of all properties does not exist at the moment, that is, not with all the properties: these are the ones I intend to use to test my own autopilot code (feel free to contact me).
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d