| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#include "dds/ddsc/dds_public_impl.h" |
| 11 |
|
| 12 |
#ifndef _DDSL_DDS_GUI_H_ |
| 13 |
#define _DDSL_DDS_GUI_H_ |
| 14 |
|
| 15 |
|
| 16 |
#ifdef __cplusplus |
| 17 |
extern "C" { |
| 18 |
#endif |
| 19 |
|
| 20 |
#define FG_DDS_GUI_VERSION 1 |
| 21 |
#define FG_DDS_TANKS 8 |
| 22 |
|
| 23 |
|
| 24 |
typedef struct FG_DDS_GUI |
| 25 |
{ |
| 26 |
int16_t id; |
| 27 |
int16_t version; |
| 28 |
double longitude; |
| 29 |
double latitude; |
| 30 |
float altitude; |
| 31 |
float agl; |
| 32 |
float phi; |
| 33 |
float theta; |
| 34 |
float psi; |
| 35 |
float vcas; |
| 36 |
float climb_rate; |
| 37 |
uint16_t num_tanks; |
| 38 |
float fuel_quantity[8]; |
| 39 |
uint64_t cur_time; |
| 40 |
uint64_t warp; |
| 41 |
float ground_elev; |
| 42 |
float tuned_freq; |
| 43 |
float nav_radial; |
| 44 |
char in_range; |
| 45 |
float dist_nm; |
| 46 |
float course_deviation_deg; |
| 47 |
float gs_deviation_deg; |
| 48 |
} FG_DDS_GUI; |
| 49 |
|
| 50 |
extern const dds_topic_descriptor_t FG_DDS_GUI_desc; |
| 51 |
|
| 52 |
#define FG_DDS_GUI__alloc() \ |
| 53 |
((FG_DDS_GUI*) dds_alloc (sizeof (FG_DDS_GUI))); |
| 54 |
|
| 55 |
#define FG_DDS_GUI_free(d,o) \ |
| 56 |
dds_sample_free ((d), &FG_DDS_GUI_desc, (o)) |
| 57 |
|
| 58 |
#ifdef __cplusplus |
| 59 |
} |
| 60 |
#endif |
| 61 |
#endif |