1 // net_gui.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.
16 # error This library requires C++
20 const int FG_NET_GUI_VERSION = 4;
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 float altitude; // above sea level (meters)
46 float agl; // above ground level (meters)
47 float phi; // roll (radians)
48 float theta; // pitch (radians)
49 float psi; // yaw or true heading (radians)
53 float climb_rate; // feet per second
56 int num_tanks; // Max number of fuel tanks
57 float fuel_quantity[FG_MAX_TANKS];
60 time_t cur_time; // current unix time
61 long int warp; // offset in seconds to unix time
62 float ground_elev; // ground elev (meters)
65 float tuned_freq; // currently tuned frequency
66 float nav_radial; // target nav radial
67 bool in_range; // tuned navaid is in range?
68 float dist_nm; // distance to tuned navaid in nautical miles
69 float course_deviation_deg; // degrees off target course
70 float gs_deviation_deg; // degrees off target glide slope
74 #endif // _NET_GUI_HXX