1 // net_fdm_mini.hxx -- defines a simple subset I/O interface to the flight
2 // dynamics model variables
4 // Written by Curtis Olson - curt@flightgear.com, started January 2002.
6 // This file is in the Public Domain, and comes with no warranty.
11 #ifndef _NET_FDM_MINI_HXX
12 #define _NET_FDM_MINI_HXX
16 # error This library requires C++
20 const int FG_NET_FDM_MINI_VERSION = 1;
23 // Define a structure containing the top level flight dynamics model
36 int version; // increment when data values change
37 int pad; // keep doubles 64-bit aligned for some
38 // hardware platforms, such as the Sun
39 // SPARC, which don't like misaligned
43 double longitude; // geodetic (radians)
44 double latitude; // geodetic (radians)
45 double altitude; // above sea level (meters)
46 double agl; // above ground level (meters)
47 double phi; // roll (radians)
48 double theta; // pitch (radians)
49 double psi; // yaw or true heading (radians)
53 double climb_rate; // feet per second
56 int num_tanks; // Max number of fuel tanks
57 double fuel_quantity[FG_MAX_TANKS];
60 time_t cur_time; // current unix time
61 long int warp; // offset in seconds to unix time
65 #endif // _NET_FDM_MINI_HXX