3 #define MAVLINK_MSG_ID_GPS_DATE_TIME 179
21 #define MAVLINK_MSG_ID_GPS_DATE_TIME_LEN 12
22 #define MAVLINK_MSG_ID_179_LEN 12
24 #define MAVLINK_MSG_ID_GPS_DATE_TIME_CRC 132
25 #define MAVLINK_MSG_ID_179_CRC 132
29 #define MAVLINK_MESSAGE_INFO_GPS_DATE_TIME { \
32 { { "year", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_gps_date_time_t, year) }, \
33 { "month", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_gps_date_time_t, month) }, \
34 { "day", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_gps_date_time_t, day) }, \
35 { "hour", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_gps_date_time_t, hour) }, \
36 { "min", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_gps_date_time_t, min) }, \
37 { "sec", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_gps_date_time_t, sec) }, \
38 { "clockStat", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_gps_date_time_t, clockStat) }, \
39 { "visSat", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_gps_date_time_t, visSat) }, \
40 { "useSat", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_gps_date_time_t, useSat) }, \
41 { "GppGl", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_gps_date_time_t, GppGl) }, \
42 { "sigUsedMask", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_gps_date_time_t, sigUsedMask) }, \
43 { "percentUsed", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_gps_date_time_t, percentUsed) }, \
68 static inline uint16_t mavlink_msg_gps_date_time_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
69 uint8_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t
min, uint8_t sec, uint8_t clockStat, uint8_t visSat, uint8_t useSat, uint8_t GppGl, uint8_t sigUsedMask, uint8_t percentUsed)
71 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
106 #if MAVLINK_CRC_EXTRA
133 static inline uint16_t mavlink_msg_gps_date_time_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
134 mavlink_message_t* msg,
135 uint8_t year,uint8_t month,uint8_t day,uint8_t hour,uint8_t
min,uint8_t sec,uint8_t clockStat,uint8_t visSat,uint8_t useSat,uint8_t GppGl,uint8_t sigUsedMask,uint8_t percentUsed)
137 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
156 packet.
month = month;
164 packet.
GppGl = GppGl;
172 #if MAVLINK_CRC_EXTRA
187 static inline uint16_t mavlink_msg_gps_date_time_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_gps_date_time_t* gps_date_time)
189 return mavlink_msg_gps_date_time_pack(system_id, component_id, msg, gps_date_time->
year, gps_date_time->
month, gps_date_time->
day, gps_date_time->
hour, gps_date_time->
min, gps_date_time->
sec, gps_date_time->
clockStat, gps_date_time->
visSat, gps_date_time->
useSat, gps_date_time->
GppGl, gps_date_time->
sigUsedMask, gps_date_time->
percentUsed);
201 static inline uint16_t mavlink_msg_gps_date_time_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_gps_date_time_t* gps_date_time)
203 return mavlink_msg_gps_date_time_pack_chan(system_id, component_id, chan, msg, gps_date_time->
year, gps_date_time->
month, gps_date_time->
day, gps_date_time->
hour, gps_date_time->
min, gps_date_time->
sec, gps_date_time->
clockStat, gps_date_time->
visSat, gps_date_time->
useSat, gps_date_time->
GppGl, gps_date_time->
sigUsedMask, gps_date_time->
percentUsed);
223 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
225 static inline void mavlink_msg_gps_date_time_send(
mavlink_channel_t chan, uint8_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t min, uint8_t sec, uint8_t clockStat, uint8_t visSat, uint8_t useSat, uint8_t GppGl, uint8_t sigUsedMask, uint8_t percentUsed)
227 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
242 #if MAVLINK_CRC_EXTRA
250 packet.
month = month;
258 packet.
GppGl = GppGl;
262 #if MAVLINK_CRC_EXTRA
270 #if MAVLINK_MSG_ID_GPS_DATE_TIME_LEN <= MAVLINK_MAX_PAYLOAD_LEN
278 static inline void mavlink_msg_gps_date_time_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t min, uint8_t sec, uint8_t clockStat, uint8_t visSat, uint8_t useSat, uint8_t GppGl, uint8_t sigUsedMask, uint8_t percentUsed)
280 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
281 char *buf = (
char *)msgbuf;
295 #if MAVLINK_CRC_EXTRA
303 packet->
month = month;
311 packet->
GppGl = GppGl;
315 #if MAVLINK_CRC_EXTRA
334 static inline uint8_t mavlink_msg_gps_date_time_get_year(
const mavlink_message_t* msg)
344 static inline uint8_t mavlink_msg_gps_date_time_get_month(
const mavlink_message_t* msg)
354 static inline uint8_t mavlink_msg_gps_date_time_get_day(
const mavlink_message_t* msg)
364 static inline uint8_t mavlink_msg_gps_date_time_get_hour(
const mavlink_message_t* msg)
374 static inline uint8_t mavlink_msg_gps_date_time_get_min(
const mavlink_message_t* msg)
384 static inline uint8_t mavlink_msg_gps_date_time_get_sec(
const mavlink_message_t* msg)
394 static inline uint8_t mavlink_msg_gps_date_time_get_clockStat(
const mavlink_message_t* msg)
404 static inline uint8_t mavlink_msg_gps_date_time_get_visSat(
const mavlink_message_t* msg)
414 static inline uint8_t mavlink_msg_gps_date_time_get_useSat(
const mavlink_message_t* msg)
424 static inline uint8_t mavlink_msg_gps_date_time_get_GppGl(
const mavlink_message_t* msg)
434 static inline uint8_t mavlink_msg_gps_date_time_get_sigUsedMask(
const mavlink_message_t* msg)
444 static inline uint8_t mavlink_msg_gps_date_time_get_percentUsed(
const mavlink_message_t* msg)
455 static inline void mavlink_msg_gps_date_time_decode(
const mavlink_message_t* msg,
mavlink_gps_date_time_t* gps_date_time)
457 #if MAVLINK_NEED_BYTE_SWAP
458 gps_date_time->
year = mavlink_msg_gps_date_time_get_year(msg);
459 gps_date_time->
month = mavlink_msg_gps_date_time_get_month(msg);
460 gps_date_time->
day = mavlink_msg_gps_date_time_get_day(msg);
461 gps_date_time->
hour = mavlink_msg_gps_date_time_get_hour(msg);
462 gps_date_time->
min = mavlink_msg_gps_date_time_get_min(msg);
463 gps_date_time->
sec = mavlink_msg_gps_date_time_get_sec(msg);
464 gps_date_time->
clockStat = mavlink_msg_gps_date_time_get_clockStat(msg);
465 gps_date_time->
visSat = mavlink_msg_gps_date_time_get_visSat(msg);
466 gps_date_time->
useSat = mavlink_msg_gps_date_time_get_useSat(msg);
467 gps_date_time->
GppGl = mavlink_msg_gps_date_time_get_GppGl(msg);
468 gps_date_time->
sigUsedMask = mavlink_msg_gps_date_time_get_sigUsedMask(msg);
469 gps_date_time->
percentUsed = mavlink_msg_gps_date_time_get_percentUsed(msg);
uint8_t month
Month reported by Gps.
Definition: mavlink_msg_gps_date_time.h:8
uint8_t sec
Sec reported by Gps.
Definition: mavlink_msg_gps_date_time.h:12
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint8_t visSat
Visible satellites reported by Gps.
Definition: mavlink_msg_gps_date_time.h:14
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 _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
uint8_t GppGl
GPS+GLONASS satellites in Solution.
Definition: mavlink_msg_gps_date_time.h:16
uint8_t day
Day reported by Gps.
Definition: mavlink_msg_gps_date_time.h:9
uint8_t hour
Hour reported by Gps.
Definition: mavlink_msg_gps_date_time.h:10
mavlink_channel_t
Definition: mavlink_types.h:178
uint8_t min
Min reported by Gps.
Definition: mavlink_msg_gps_date_time.h:11
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_GPS_DATE_TIME_LEN
Definition: mavlink_msg_gps_date_time.h:21
uint8_t year
Year reported by Gps.
Definition: mavlink_msg_gps_date_time.h:7
uint8_t useSat
Used satellites in Solution.
Definition: mavlink_msg_gps_date_time.h:15
uint8_t sigUsedMask
GPS and GLONASS usage mask (bit 0 GPS_used? bit_4 GLONASS_used?)
Definition: mavlink_msg_gps_date_time.h:17
uint8_t clockStat
Clock Status. See table 47 page 211 OEMStar Manual.
Definition: mavlink_msg_gps_date_time.h:13
#define MAVLINK_MSG_ID_GPS_DATE_TIME_CRC
Definition: mavlink_msg_gps_date_time.h:24
Definition: mavlink_msg_gps_date_time.h:5
int16_t min
Minimum pwm value that is sent to the servo.
Definition: mixer.h:12
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
#define MAVLINK_MSG_ID_GPS_DATE_TIME
Definition: mavlink_msg_gps_date_time.h:3
struct __mavlink_gps_date_time_t mavlink_gps_date_time_t
uint8_t percentUsed
Percent used GPS.
Definition: mavlink_msg_gps_date_time.h:18