If anyone is interested in creating external scripts to remotely drive or monitor FlightGear, I have committed some convenience functions (perl) to cvs.

For some time we have had a telnet.pl script which takes care of the tricky bits of interfacing to a remote copy of FlightGear. This gives you access to reading and writing any entry in the FlightGear property tree as well as running any of FlightGear's published functions (i.e. anything that you could bind a key press, joystick, mouse, or gui function to.)

The functions I have committed are wrappers around the telnet.pl script to hopefully make things even easier.

Here is some of the functionality that is included:

Aircraft:
  - Start piston engine
  - Set weight and balance
  - Manipulate engine and flight controls

Autopilot:
  - Wing leveler
  - Bank hold
  - Heading hold
  - Pitch hold (with trim)
  - Pitch hold (with yoke)
  - Altitude hold
  - Speed hold (with throttle)
  - Speed hold (with pitch via trim)
  - Speed hold (with pitch via yoke)
  - All off

Environment
  - Set time of day
  - Set boundary/aloft wind layer
  - Set cloud layer
  - Set outside air temp (at current altitude)
  - Set altimeter/pressure

Position
  - Reset in the air (airport, runway, offset distance, glideslope,
    velocity, heading, etc.)
  - Reset on the ground (airport, runway)

Logging
  - Clear all logging fields
  - Add a suite of default variables
  - Add any property (w/ human readable title)
  - Start logging (to the specified file name)
  - Stop logging
  - Generate a quick plot of any field (vs. time)

These functions obviously aren't a complete subset of everything possible, but we can easily add more as we need them. And it's not strictly necessary to use these functions, they are there for convenience.

With this functionality, you can build scripts to do a very large variety of things, and log the aircraft action as well. These could be used (perhaps) :-) to build a set of scripts to do automated flight testing. The FAA has a suite of tests it requires for certifying simulators (for instance.)

Regards,

Curt.
--
Curtis Olson   HumanFIRST Program               FlightGear Project
Twin Cities    curt 'at' me.umn.edu             curt 'at' flightgear.org
Minnesota      http://www.flightgear.org/~curt  http://www.flightgear.org


_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to