3 #define MAVLINK_MSG_ID_GPS2_RAW 124 21 #define MAVLINK_MSG_ID_GPS2_RAW_LEN 35 22 #define MAVLINK_MSG_ID_124_LEN 35 24 #define MAVLINK_MSG_ID_GPS2_RAW_CRC 87 25 #define MAVLINK_MSG_ID_124_CRC 87 29 #define MAVLINK_MESSAGE_INFO_GPS2_RAW { \ 32 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_gps2_raw_t, time_usec) }, \ 33 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_gps2_raw_t, lat) }, \ 34 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0, 12, offsetof(mavlink_gps2_raw_t, lon) }, \ 35 { "alt", NULL, MAVLINK_TYPE_INT32_T, 0, 16, offsetof(mavlink_gps2_raw_t, alt) }, \ 36 { "dgps_age", NULL, MAVLINK_TYPE_UINT32_T, 0, 20, offsetof(mavlink_gps2_raw_t, dgps_age) }, \ 37 { "eph", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_gps2_raw_t, eph) }, \ 38 { "epv", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_gps2_raw_t, epv) }, \ 39 { "vel", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_gps2_raw_t, vel) }, \ 40 { "cog", NULL, MAVLINK_TYPE_UINT16_T, 0, 30, offsetof(mavlink_gps2_raw_t, cog) }, \ 41 { "fix_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_gps2_raw_t, fix_type) }, \ 42 { "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0, 33, offsetof(mavlink_gps2_raw_t, satellites_visible) }, \ 43 { "dgps_numch", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_gps2_raw_t, dgps_numch) }, \ 69 uint64_t
time_usec, uint8_t
fix_type, int32_t
lat, int32_t
lon, int32_t
alt, uint16_t
eph, uint16_t
epv, uint16_t
vel, uint16_t
cog, uint8_t
satellites_visible, uint8_t
dgps_numch, uint32_t
dgps_age)
71 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 106 #if MAVLINK_CRC_EXTRA 134 mavlink_message_t* msg,
135 uint64_t
time_usec,uint8_t
fix_type,int32_t
lat,int32_t
lon,int32_t
alt,uint16_t
eph,uint16_t
epv,uint16_t
vel,uint16_t
cog,uint8_t
satellites_visible,uint8_t
dgps_numch,uint32_t
dgps_age)
137 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 172 #if MAVLINK_CRC_EXTRA 189 return mavlink_msg_gps2_raw_pack(system_id, component_id, msg, gps2_raw->
time_usec, gps2_raw->
fix_type, gps2_raw->
lat, gps2_raw->
lon, gps2_raw->
alt, gps2_raw->
eph, gps2_raw->
epv, gps2_raw->
vel, gps2_raw->
cog, gps2_raw->
satellites_visible, gps2_raw->
dgps_numch, gps2_raw->
dgps_age);
203 return mavlink_msg_gps2_raw_pack_chan(system_id, component_id, chan, msg, gps2_raw->
time_usec, gps2_raw->
fix_type, gps2_raw->
lat, gps2_raw->
lon, gps2_raw->
alt, gps2_raw->
eph, gps2_raw->
epv, gps2_raw->
vel, gps2_raw->
cog, gps2_raw->
satellites_visible, gps2_raw->
dgps_numch, gps2_raw->
dgps_age);
223 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 225 static inline void mavlink_msg_gps2_raw_send(
mavlink_channel_t chan, uint64_t
time_usec, uint8_t
fix_type, int32_t
lat, int32_t
lon, int32_t
alt, uint16_t
eph, uint16_t
epv, uint16_t
vel, uint16_t
cog, uint8_t
satellites_visible, uint8_t
dgps_numch, uint32_t
dgps_age)
227 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 242 #if MAVLINK_CRC_EXTRA 262 #if MAVLINK_CRC_EXTRA 270 #if MAVLINK_MSG_ID_GPS2_RAW_LEN <= MAVLINK_MAX_PAYLOAD_LEN 278 static inline void mavlink_msg_gps2_raw_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t
time_usec, uint8_t
fix_type, int32_t
lat, int32_t
lon, int32_t
alt, uint16_t
eph, uint16_t
epv, uint16_t
vel, uint16_t
cog, uint8_t
satellites_visible, uint8_t
dgps_numch, uint32_t
dgps_age)
280 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 281 char *buf = (
char *)msgbuf;
295 #if MAVLINK_CRC_EXTRA 315 #if MAVLINK_CRC_EXTRA 336 return _MAV_RETURN_uint64_t(msg, 0);
356 return _MAV_RETURN_int32_t(msg, 8);
366 return _MAV_RETURN_int32_t(msg, 12);
376 return _MAV_RETURN_int32_t(msg, 16);
386 return _MAV_RETURN_uint16_t(msg, 24);
396 return _MAV_RETURN_uint16_t(msg, 26);
406 return _MAV_RETURN_uint16_t(msg, 28);
416 return _MAV_RETURN_uint16_t(msg, 30);
446 return _MAV_RETURN_uint32_t(msg, 20);
457 #if MAVLINK_NEED_BYTE_SWAP static int32_t mavlink_msg_gps2_raw_get_lat(const mavlink_message_t *msg)
Get field lat from gps2_raw message.
static uint16_t mavlink_msg_gps2_raw_get_epv(const mavlink_message_t *msg)
Get field epv from gps2_raw message.
static int32_t mavlink_msg_gps2_raw_get_alt(const mavlink_message_t *msg)
Get field alt from gps2_raw message.
static uint32_t mavlink_msg_gps2_raw_get_dgps_age(const mavlink_message_t *msg)
Get field dgps_age from gps2_raw message.
static uint16_t mavlink_msg_gps2_raw_get_cog(const mavlink_message_t *msg)
Get field cog from gps2_raw message.
#define MAVLINK_MSG_ID_GPS2_RAW_CRC
#define _MAV_RETURN_uint8_t(msg, wire_offset)
static int32_t mavlink_msg_gps2_raw_get_lon(const mavlink_message_t *msg)
Get field lon from gps2_raw message.
static uint16_t mavlink_msg_gps2_raw_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_gps2_raw_t *gps2_raw)
Encode a gps2_raw struct.
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.
#define _mav_put_uint8_t(buf, wire_offset, b)
#define _mav_put_uint64_t(buf, wire_offset, b)
#define _mav_put_int32_t(buf, wire_offset, b)
static void mavlink_msg_gps2_raw_decode(const mavlink_message_t *msg, mavlink_gps2_raw_t *gps2_raw)
Decode a gps2_raw message into a struct.
#define _MAV_PAYLOAD_NON_CONST(msg)
static uint16_t mavlink_msg_gps2_raw_get_eph(const mavlink_message_t *msg)
Get field eph from gps2_raw message.
static uint8_t mavlink_msg_gps2_raw_get_dgps_numch(const mavlink_message_t *msg)
Get field dgps_numch from gps2_raw message.
uint8_t satellites_visible
static uint16_t mavlink_msg_gps2_raw_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_gps2_raw_t *gps2_raw)
Encode a gps2_raw struct on a channel.
#define _MAV_PAYLOAD(msg)
#define MAVLINK_MSG_ID_GPS2_RAW
static uint16_t mavlink_msg_gps2_raw_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_usec, uint8_t fix_type, int32_t lat, int32_t lon, int32_t alt, uint16_t eph, uint16_t epv, uint16_t vel, uint16_t cog, uint8_t satellites_visible, uint8_t dgps_numch, uint32_t dgps_age)
Pack a gps2_raw message.
static uint8_t mavlink_msg_gps2_raw_get_fix_type(const mavlink_message_t *msg)
Get field fix_type from gps2_raw message.
struct __mavlink_gps2_raw_t mavlink_gps2_raw_t
static uint8_t mavlink_msg_gps2_raw_get_satellites_visible(const mavlink_message_t *msg)
Get field satellites_visible from gps2_raw message.
static uint16_t mavlink_msg_gps2_raw_get_vel(const mavlink_message_t *msg)
Get field vel from gps2_raw message.
#define MAVLINK_MSG_ID_GPS2_RAW_LEN
#define _mav_put_uint16_t(buf, wire_offset, b)
static uint16_t mavlink_msg_gps2_raw_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_usec, uint8_t fix_type, int32_t lat, int32_t lon, int32_t alt, uint16_t eph, uint16_t epv, uint16_t vel, uint16_t cog, uint8_t satellites_visible, uint8_t dgps_numch, uint32_t dgps_age)
Pack a gps2_raw message on a channel.
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.
static uint64_t mavlink_msg_gps2_raw_get_time_usec(const mavlink_message_t *msg)
Send a gps2_raw message.
#define _mav_put_uint32_t(buf, wire_offset, b)