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/compiler.h>
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.
33 const uint32_t FG_NET_FDM_MINI_VERSION = 2;
36 // Define a structure containing the top level flight dynamics model
49 uint32_t version; // increment when data values change
52 double longitude; // geodetic (radians)
53 double latitude; // geodetic (radians)
54 double altitude; // above sea level (meters)
55 double agl; // above ground level (meters)
56 double phi; // roll (radians)
57 double theta; // pitch (radians)
58 double psi; // yaw or true heading (radians)
62 double climb_rate; // feet per second
65 uint32_t num_tanks; // Max number of fuel tanks
66 double fuel_quantity[FG_MAX_TANKS];
69 uint32_t cur_time; // current unix time
70 int32_t warp; // offset in seconds to unix time
74 #endif // _NET_FDM_MINI_HXX