Debian Codegraph @

src/Network/DDS/dds_fdm.idl

raw
1 // format dfescription: https://www.omg.org/spec/IDL/4.2/PDF
2
3 // Adapted from net_fdm.hxx
4 module FG
5 {
6
7 // defining it this way also generates accompanying #defines in the header file.
8
9 const short DDS_FDM_VERSION = 1;
10
11 // same as defined in net_ctrls.hxx
12 // this is different from net_fdm.hxx
13 const short DDS_ENGINES = 4;
14 const short DDS_WHEELS = 16;
15 const short DDS_TANKS = 8;
16
17 struct DDS_FDM
18 {
19 short id; // DDS id
20 short version; // packet version
21
22 // Positions
23 double longitude; // geodetic (radians)
24 double latitude; // geodetic (radians)
25 double 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 float alpha; // angle of attack (radians)
31 float beta; // side slip angle (radians)
32
33 // Velocities
34 float phidot; // roll rate (radians/sec)
35 float thetadot; // pitch rate (radians/sec)
36 float psidot; // yaw rate (radians/sec)
37 float vcas; // calibrated airspeed
38 float climb_rate; // feet per second
39 float v_north; // north velocity in local/body frame, fps
40 float v_east; // east velocity in local/body frame, fps
41 float v_down; // down/vertical velocity in local/body frame, fps
42 float v_body_u; // ECEF velocity in body frame
43 float v_body_v; // ECEF velocity in body frame
44 float v_body_w; // ECEF velocity in body frame
45
46 // Accelerations
47 float A_X_pilot; // X accel in body frame ft/sec^2
48 float A_Y_pilot; // Y accel in body frame ft/sec^2
49 float A_Z_pilot; // Z accel in body frame ft/sec^2
50
51 // Stall
52 float stall_warning;// 0.0 - 1.0 indicating the amount of stall
53 float slip_deg; // slip ball deflection
54
55 // Pressure
56
57 // Engine status
58 unsigned short num_engines; // Number of valid engines
59 unsigned short eng_state[DDS_ENGINES];// Engine state (off, cranking, running)
60 float rpm[DDS_ENGINES]; // Engine RPM rev/min
61 float fuel_flow[DDS_ENGINES]; // Fuel flow gallons/hr
62 float fuel_px[DDS_ENGINES]; // Fuel pressure psi
63 float egt[DDS_ENGINES]; // Exhuast gas temp deg F
64 float cht[DDS_ENGINES]; // Cylinder head temp deg F
65 float mp_osi[DDS_ENGINES]; // Manifold pressure
66 float tit[DDS_ENGINES]; // Turbine Inlet Temperature
67 float oil_temp[DDS_ENGINES]; // Oil temp deg F
68 float oil_px[DDS_ENGINES]; // Oil pressure psi
69
70 // Consumables
71 unsigned short num_tanks; // Max number of fuel tanks
72 float fuel_quantity[DDS_TANKS]; // used by GPSsmooth and possibly others
73 char tank_selected[DDS_TANKS]; // selected, capacity, usable, density and level required for multiple-pc setups to work
74 float capacity_m3[DDS_TANKS];
75 float unusable_m3[DDS_TANKS];
76 float density_kgpm3[DDS_TANKS];
77 float level_m3[DDS_TANKS];
78
79
80 // Gear status
81 unsigned short num_wheels;
82 unsigned short wow[DDS_WHEELS];
83 float gear_pos[DDS_WHEELS];
84 float gear_steer[DDS_WHEELS];
85 float gear_compression[DDS_WHEELS];
86
87 // Environment
88 unsigned long long cur_time;// current unix time, 64-bit
89 unsigned long long warp; // offset in seconds to unix time
90 float visibility; // visibility in meters (for env. effects)
91
92 // Control surface positions (normalized values)
93 float elevator;
94 float elevator_trim_tab;
95 float left_flap;
96 float right_flap;
97 float left_aileron;
98 float right_aileron;
99 float rudder;
100 float nose_wheel;
101 float speedbrake;
102 float spoilers;
103 };
104 #pragma keylist DDS_FDM id
105
106 }; // module FG