| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#include "dds/ddsc/dds_public_impl.h" |
| 11 |
|
| 12 |
#ifndef _DDSL_DDS_CTRLS_H_ |
| 13 |
#define _DDSL_DDS_CTRLS_H_ |
| 14 |
|
| 15 |
|
| 16 |
#ifdef __cplusplus |
| 17 |
extern "C" { |
| 18 |
#endif |
| 19 |
|
| 20 |
#define FG_DDS_CTRLS_VERSION 1 |
| 21 |
#define FG_DDS_ENGINES 4 |
| 22 |
#define FG_DDS_WHEELS 16 |
| 23 |
#define FG_DDS_TANKS 8 |
| 24 |
|
| 25 |
|
| 26 |
typedef struct FG_DDS_Ctrls |
| 27 |
{ |
| 28 |
int16_t id; |
| 29 |
int16_t version; |
| 30 |
float aileron; |
| 31 |
float elevator; |
| 32 |
float rudder; |
| 33 |
float aileron_trim; |
| 34 |
float elevator_trim; |
| 35 |
float rudder_trim; |
| 36 |
float flaps; |
| 37 |
float spoilers; |
| 38 |
float speedbrake; |
| 39 |
char flaps_power; |
| 40 |
char flap_motor_ok; |
| 41 |
uint16_t num_engines; |
| 42 |
char master_bat[4]; |
| 43 |
char master_alt[4]; |
| 44 |
uint32_t magnetos[4]; |
| 45 |
uint32_t starter_power[4]; |
| 46 |
float throttle[4]; |
| 47 |
float mixture[4]; |
| 48 |
float condition[4]; |
| 49 |
uint32_t fuel_pump_power[4]; |
| 50 |
float prop_advance[4]; |
| 51 |
uint16_t feed_tank_to[4]; |
| 52 |
char reverse[4]; |
| 53 |
char engine_ok[4]; |
| 54 |
char mag_left_ok[4]; |
| 55 |
char mag_right_ok[4]; |
| 56 |
char spark_plugs_ok[4]; |
| 57 |
uint16_t oil_press_status[4]; |
| 58 |
char fuel_pump_ok[4]; |
| 59 |
uint16_t num_tanks; |
| 60 |
uint16_t fuel_selector[8]; |
| 61 |
char cross_feed; |
| 62 |
float brake_left; |
| 63 |
float brake_right; |
| 64 |
float copilot_brake_left; |
| 65 |
float copilot_brake_right; |
| 66 |
float brake_parking; |
| 67 |
char gear_handle; |
| 68 |
char master_avionics; |
| 69 |
float comm_1; |
| 70 |
float comm_2; |
| 71 |
float nav_1; |
| 72 |
float nav_2; |
| 73 |
float wind_speed_kt; |
| 74 |
float wind_dir_deg; |
| 75 |
float turbulence_norm; |
| 76 |
float temp_c; |
| 77 |
float press_inhg; |
| 78 |
float hground; |
| 79 |
float magvar; |
| 80 |
char icing; |
| 81 |
uint32_t speedup; |
| 82 |
uint16_t freeze; |
| 83 |
} FG_DDS_Ctrls; |
| 84 |
|
| 85 |
extern const dds_topic_descriptor_t FG_DDS_Ctrls_desc; |
| 86 |
|
| 87 |
#define FG_DDS_Ctrls__alloc() \ |
| 88 |
((FG_DDS_Ctrls*) dds_alloc (sizeof (FG_DDS_Ctrls))); |
| 89 |
|
| 90 |
#define FG_DDS_Ctrls_free(d,o) \ |
| 91 |
dds_sample_free ((d), &FG_DDS_Ctrls_desc, (o)) |
| 92 |
|
| 93 |
#ifdef __cplusplus |
| 94 |
} |
| 95 |
#endif |
| 96 |
#endif |