1 // net_fdm_mini.hxx -- defines a simple subset I/O interface to the flight
2 // dynamics model variables
4 // Written by Curtis Olson - http://www.flightgear.org/~curt
5 // Started January 2002.
7 // This file is in the Public Domain, and comes with no warranty.
12 #ifndef _NET_FDM_MINI_HXX
13 #define _NET_FDM_MINI_HXX
17 # error This library requires C++
20 #include <simgear/misc/stdint.hxx>
22 // NOTE: this file defines an external interface structure. Due to
23 // variability between platforms and architectures, we only used fixed
24 // length types here. Specifically, integer types can vary in length.
25 // I am not aware of any platforms that don't use 4 bytes for float
26 // and 8 bytes for double.
29 const uint32_t FG_NET_FDM_MINI_VERSION = 2;
32 // Define a structure containing the top level flight dynamics model
45 uint32_t version; // increment when data values change
48 double longitude; // geodetic (radians)
49 double latitude; // geodetic (radians)
50 double altitude; // above sea level (meters)
51 double agl; // above ground level (meters)
52 double phi; // roll (radians)
53 double theta; // pitch (radians)
54 double psi; // yaw or true heading (radians)
58 double climb_rate; // feet per second
61 uint32_t num_tanks; // Max number of fuel tanks
62 double fuel_quantity[FG_MAX_TANKS];
65 uint32_t cur_time; // current unix time
66 int32_t warp; // offset in seconds to unix time
70 #endif // _NET_FDM_MINI_HXX