| 1 |
// format dfescription: https://www.omg.org/spec/IDL/4.2/PDF |
| 2 |
|
| 3 |
// Taken from net_gui.hxx |
| 4 |
|
| 5 |
module FG |
| 6 |
{ |
| 7 |
|
| 8 |
// defining it this way also generates accompanying #defines in the header file. |
| 9 |
|
| 10 |
const short DDS_GUI_VERSION = 1; |
| 11 |
|
| 12 |
// same as defined in net_ctrls.hxx |
| 13 |
// this is different from net_gui.hxx |
| 14 |
const short DDS_TANKS = 8; |
| 15 |
|
| 16 |
struct DDS_GUI |
| 17 |
{ |
| 18 |
short id; |
| 19 |
short version; |
| 20 |
|
| 21 |
// Positions |
| 22 |
double longitude; // geodetic (radians) |
| 23 |
double latitude; // geodetic (radians) |
| 24 |
|
| 25 |
float altitude; // above sea level (meters) |
| 26 |
float agl; // above ground level (meters) |
| 27 |
float phi; // roll (radians) |
| 28 |
float theta; // pitch (radians) |
| 29 |
float psi; // yaw or true heading (radians) |
| 30 |
|
| 31 |
// Velocities |
| 32 |
float vcas; |
| 33 |
float climb_rate; // feet per second |
| 34 |
|
| 35 |
// Consumables |
| 36 |
unsigned short num_tanks; // Max number of fuel tanks |
| 37 |
float fuel_quantity[DDS_TANKS]; |
| 38 |
|
| 39 |
// Environment |
| 40 |
unsigned long long cur_time;// current unix time |
| 41 |
unsigned long long warp; // offset in seconds to unix time |
| 42 |
float ground_elev; // ground elev (meters) |
| 43 |
|
| 44 |
// Approach |
| 45 |
float tuned_freq; // currently tuned frequency |
| 46 |
float nav_radial; // target nav radial |
| 47 |
char in_range; // tuned navaid is in range? |
| 48 |
float dist_nm; // distance to tuned navaid in nautical miles |
| 49 |
float course_deviation_deg; // degrees off target course |
| 50 |
float gs_deviation_deg; // degrees off target glide slope |
| 51 |
}; |
| 52 |
#pragma keylist DDS_GUI id |
| 53 |
|
| 54 |
}; // module FG |
| 55 |
|