Rev 763 | Rev 772 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 763 | Rev 768 | ||
---|---|---|---|
Line 140... | Line 140... | ||
140 | s16 Bearing; // course to target in deg |
140 | s16 Bearing; // course to target in deg |
141 | } __attribute__((packed)) GPS_PosDev_t; |
141 | } __attribute__((packed)) GPS_PosDev_t; |
Line 142... | Line 142... | ||
142 | 142 | ||
Line 143... | Line 143... | ||
143 | #define NAVIDATA_VERSION 5 |
143 | #define NAVIDATA_VERSION 5 |
144 | 144 | ||
145 | typedef struct // 85 Bytes |
145 | typedef struct // 84 Bytes |
146 | { |
146 | { |
147 | u8 Version; // version of the data structure |
147 | u8 Version; // version of the data structure = 5 |
148 | GPS_Pos_t CurrentPosition; // see gpspos.h for details |
148 | GPS_Pos_t CurrentPosition; // see gpspos.h for details |
149 | GPS_Pos_t TargetPosition; |
149 | GPS_Pos_t TargetPosition; |
150 | GPS_PosDev_t TargetPositionDeviation; |
150 | GPS_PosDev_t TargetPositionDeviation; |
Line 172... | Line 172... | ||
172 | u8 FCStatusFlags2; // StatusFlags2 (since version 5 added) |
172 | u8 FCStatusFlags2; // StatusFlags2 (since version 5 added) |
173 | s16 SetpointAltitude; // setpoint for altitude |
173 | s16 SetpointAltitude; // setpoint for altitude |
174 | u8 Gas; // for future use |
174 | u8 Gas; // for future use |
175 | u16 Current; // actual current in 0.1A steps |
175 | u16 Current; // actual current in 0.1A steps |
176 | u16 UsedCapacity; // used capacity in mAh |
176 | u16 UsedCapacity; // used capacity in mAh |
- | 177 | u8 reserve1; // to fit into 84 bytes (must be divisible by 3) |
|
- | 178 | u8 reserve2; // to fit into 84 bytes (must be divisible by 3) |
|
177 | } __attribute__((packed)) NaviData_t; |
179 | } __attribute__((packed)) NaviData_t; |
178 | extern NaviData_t NaviData; |
180 | extern NaviData_t NaviData; |
Line 179... | Line 181... | ||
179 | 181 | ||
180 | typedef struct // 10 (15 Bytes belegen 27 ASCII-Zeichen) |
182 | typedef struct // 10 (15 Bytes belegen 27 ASCII-Zeichen) |
Line 221... | Line 223... | ||
221 | u8 OSDStatusFlags; |
223 | u8 OSDStatusFlags; |
222 | s32 TargetLongitude; // |
224 | s32 TargetLongitude; // |
223 | s32 TargetLatitude; // |
225 | s32 TargetLatitude; // |
224 | s16 TargetAltitude; // hight according to air pressure |
226 | s16 TargetAltitude; // hight according to air pressure |
225 | u8 RC_Quality; // RC_Quality |
227 | u8 RC_Quality; // RC_Quality |
226 | u8 reserve; |
- | |
227 | } __attribute__((packed)) NaviData_Target_t; |
228 | } __attribute__((packed)) NaviData_Target_t; |
228 | extern NaviData_Target_t NaviData_Target; |
229 | extern NaviData_Target_t NaviData_Target; |
Line 229... | Line 230... | ||
229 | 230 | ||
230 | typedef struct // 13 (30 Bytes belegen 47 ASCII-Zeichen) |
231 | typedef struct // 13 (30 Bytes belegen 47 ASCII-Zeichen) |