3 #define MAVLINK_MSG_ID_STATUS_GPS 194
16 #define MAVLINK_MSG_ID_STATUS_GPS_LEN 11
17 #define MAVLINK_MSG_ID_194_LEN 11
19 #define MAVLINK_MSG_ID_STATUS_GPS_CRC 51
20 #define MAVLINK_MSG_ID_194_CRC 51
24 #define MAVLINK_MESSAGE_INFO_STATUS_GPS { \
27 { { "magVar", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_status_gps_t, magVar) }, \
28 { "csFails", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_status_gps_t, csFails) }, \
29 { "gpsQuality", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_status_gps_t, gpsQuality) }, \
30 { "msgsType", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_status_gps_t, msgsType) }, \
31 { "posStatus", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_status_gps_t, posStatus) }, \
32 { "magDir", NULL, MAVLINK_TYPE_INT8_T, 0, 9, offsetof(mavlink_status_gps_t, magDir) }, \
33 { "modeInd", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_status_gps_t, modeInd) }, \
53 static inline uint16_t mavlink_msg_status_gps_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
54 uint16_t csFails, uint8_t gpsQuality, uint8_t msgsType, uint8_t posStatus,
float magVar, int8_t magDir, uint8_t modeInd)
56 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
103 static inline uint16_t mavlink_msg_status_gps_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
104 mavlink_message_t* msg,
105 uint16_t csFails,uint8_t gpsQuality,uint8_t msgsType,uint8_t posStatus,
float magVar,int8_t magDir,uint8_t modeInd)
107 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
132 #if MAVLINK_CRC_EXTRA
147 static inline uint16_t mavlink_msg_status_gps_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_status_gps_t* status_gps)
161 static inline uint16_t mavlink_msg_status_gps_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_status_gps_t* status_gps)
163 return mavlink_msg_status_gps_pack_chan(system_id, component_id, chan, msg, status_gps->
csFails, status_gps->
gpsQuality, status_gps->
msgsType, status_gps->
posStatus, status_gps->
magVar, status_gps->
magDir, status_gps->
modeInd);
178 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
180 static inline void mavlink_msg_status_gps_send(
mavlink_channel_t chan, uint16_t csFails, uint8_t gpsQuality, uint8_t msgsType, uint8_t posStatus,
float magVar, int8_t magDir, uint8_t modeInd)
182 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
192 #if MAVLINK_CRC_EXTRA
207 #if MAVLINK_CRC_EXTRA
215 #if MAVLINK_MSG_ID_STATUS_GPS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
223 static inline void mavlink_msg_status_gps_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint16_t csFails, uint8_t gpsQuality, uint8_t msgsType, uint8_t posStatus,
float magVar, int8_t magDir, uint8_t modeInd)
225 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
226 char *buf = (
char *)msgbuf;
235 #if MAVLINK_CRC_EXTRA
250 #if MAVLINK_CRC_EXTRA
269 static inline uint16_t mavlink_msg_status_gps_get_csFails(
const mavlink_message_t* msg)
271 return _MAV_RETURN_uint16_t(msg, 4);
279 static inline uint8_t mavlink_msg_status_gps_get_gpsQuality(
const mavlink_message_t* msg)
289 static inline uint8_t mavlink_msg_status_gps_get_msgsType(
const mavlink_message_t* msg)
299 static inline uint8_t mavlink_msg_status_gps_get_posStatus(
const mavlink_message_t* msg)
309 static inline float mavlink_msg_status_gps_get_magVar(
const mavlink_message_t* msg)
311 return _MAV_RETURN_float(msg, 0);
319 static inline int8_t mavlink_msg_status_gps_get_magDir(
const mavlink_message_t* msg)
329 static inline uint8_t mavlink_msg_status_gps_get_modeInd(
const mavlink_message_t* msg)
340 static inline void mavlink_msg_status_gps_decode(
const mavlink_message_t* msg,
mavlink_status_gps_t* status_gps)
342 #if MAVLINK_NEED_BYTE_SWAP
343 status_gps->
magVar = mavlink_msg_status_gps_get_magVar(msg);
344 status_gps->
csFails = mavlink_msg_status_gps_get_csFails(msg);
345 status_gps->
gpsQuality = mavlink_msg_status_gps_get_gpsQuality(msg);
346 status_gps->
msgsType = mavlink_msg_status_gps_get_msgsType(msg);
347 status_gps->
posStatus = mavlink_msg_status_gps_get_posStatus(msg);
348 status_gps->
magDir = mavlink_msg_status_gps_get_magDir(msg);
349 status_gps->
modeInd = mavlink_msg_status_gps_get_modeInd(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
uint16_t csFails
Number of times checksum has failed.
Definition: mavlink_msg_status_gps.h:8
uint8_t msgsType
Indicates if GN, GL or GP messages are being received.
Definition: mavlink_msg_status_gps.h:10
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
Definition: mavlink_helpers.h:105
#define MAVLINK_MSG_ID_STATUS_GPS
Definition: mavlink_msg_status_gps.h:3
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
Definition: mavlink_msg_status_gps.h:5
float magVar
Magnetic variation, degrees.
Definition: mavlink_msg_status_gps.h:7
#define _MAV_RETURN_int8_t(msg, wire_offset)
Definition: protocol.h:237
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_STATUS_GPS_LEN
Definition: mavlink_msg_status_gps.h:16
#define _mav_put_int8_t(buf, wire_offset, b)
Definition: protocol.h:135
struct __mavlink_status_gps_t mavlink_status_gps_t
uint8_t posStatus
A = data valid, V = data invalid.
Definition: mavlink_msg_status_gps.h:11
int8_t magDir
Magnetic variation direction E/W. Easterly variation (E) subtracts from True course and Westerly vari...
Definition: mavlink_msg_status_gps.h:12
#define MAVLINK_MSG_ID_STATUS_GPS_CRC
Definition: mavlink_msg_status_gps.h:19
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
uint8_t gpsQuality
The quality indicator, 0=fix not available or invalid, 1=GPS fix, 2=C/A differential GPS...
Definition: mavlink_msg_status_gps.h:9
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
Definition: mavlink_helpers.h:71
uint8_t modeInd
Positioning system mode indicator. A - Autonomous;D-Differential; E-Estimated (dead reckoning) mode;M...
Definition: mavlink_msg_status_gps.h:13