3 #define MAVLINK_MSG_ID_LIMITS_STATUS 167
18 #define MAVLINK_MSG_ID_LIMITS_STATUS_LEN 22
19 #define MAVLINK_MSG_ID_167_LEN 22
21 #define MAVLINK_MSG_ID_LIMITS_STATUS_CRC 144
22 #define MAVLINK_MSG_ID_167_CRC 144
26 #define MAVLINK_MESSAGE_INFO_LIMITS_STATUS { \
29 { { "last_trigger", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_limits_status_t, last_trigger) }, \
30 { "last_action", NULL, MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_limits_status_t, last_action) }, \
31 { "last_recovery", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_limits_status_t, last_recovery) }, \
32 { "last_clear", NULL, MAVLINK_TYPE_UINT32_T, 0, 12, offsetof(mavlink_limits_status_t, last_clear) }, \
33 { "breach_count", NULL, MAVLINK_TYPE_UINT16_T, 0, 16, offsetof(mavlink_limits_status_t, breach_count) }, \
34 { "limits_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_limits_status_t, limits_state) }, \
35 { "mods_enabled", NULL, MAVLINK_TYPE_UINT8_T, 0, 19, offsetof(mavlink_limits_status_t, mods_enabled) }, \
36 { "mods_required", NULL, MAVLINK_TYPE_UINT8_T, 0, 20, offsetof(mavlink_limits_status_t, mods_required) }, \
37 { "mods_triggered", NULL, MAVLINK_TYPE_UINT8_T, 0, 21, offsetof(mavlink_limits_status_t, mods_triggered) }, \
59 static inline uint16_t mavlink_msg_limits_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
60 uint8_t limits_state, uint32_t last_trigger, uint32_t last_action, uint32_t last_recovery, uint32_t last_clear, uint16_t breach_count, uint8_t mods_enabled, uint8_t mods_required, uint8_t mods_triggered)
62 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
115 static inline uint16_t mavlink_msg_limits_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
116 mavlink_message_t* msg,
117 uint8_t limits_state,uint32_t last_trigger,uint32_t last_action,uint32_t last_recovery,uint32_t last_clear,uint16_t breach_count,uint8_t mods_enabled,uint8_t mods_required,uint8_t mods_triggered)
119 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
148 #if MAVLINK_CRC_EXTRA
163 static inline uint16_t mavlink_msg_limits_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_limits_status_t* limits_status)
165 return mavlink_msg_limits_status_pack(system_id, component_id, msg, limits_status->
limits_state, limits_status->
last_trigger, limits_status->
last_action, limits_status->
last_recovery, limits_status->
last_clear, limits_status->
breach_count, limits_status->
mods_enabled, limits_status->
mods_required, limits_status->
mods_triggered);
177 static inline uint16_t mavlink_msg_limits_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_limits_status_t* limits_status)
179 return mavlink_msg_limits_status_pack_chan(system_id, component_id, chan, msg, limits_status->
limits_state, limits_status->
last_trigger, limits_status->
last_action, limits_status->
last_recovery, limits_status->
last_clear, limits_status->
breach_count, limits_status->
mods_enabled, limits_status->
mods_required, limits_status->
mods_triggered);
196 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
198 static inline void mavlink_msg_limits_status_send(
mavlink_channel_t chan, uint8_t limits_state, uint32_t last_trigger, uint32_t last_action, uint32_t last_recovery, uint32_t last_clear, uint16_t breach_count, uint8_t mods_enabled, uint8_t mods_required, uint8_t mods_triggered)
200 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
212 #if MAVLINK_CRC_EXTRA
229 #if MAVLINK_CRC_EXTRA
237 #if MAVLINK_MSG_ID_LIMITS_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
245 static inline void mavlink_msg_limits_status_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t limits_state, uint32_t last_trigger, uint32_t last_action, uint32_t last_recovery, uint32_t last_clear, uint16_t breach_count, uint8_t mods_enabled, uint8_t mods_required, uint8_t mods_triggered)
247 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
248 char *buf = (
char *)msgbuf;
259 #if MAVLINK_CRC_EXTRA
276 #if MAVLINK_CRC_EXTRA
295 static inline uint8_t mavlink_msg_limits_status_get_limits_state(
const mavlink_message_t* msg)
305 static inline uint32_t mavlink_msg_limits_status_get_last_trigger(
const mavlink_message_t* msg)
307 return _MAV_RETURN_uint32_t(msg, 0);
315 static inline uint32_t mavlink_msg_limits_status_get_last_action(
const mavlink_message_t* msg)
317 return _MAV_RETURN_uint32_t(msg, 4);
325 static inline uint32_t mavlink_msg_limits_status_get_last_recovery(
const mavlink_message_t* msg)
327 return _MAV_RETURN_uint32_t(msg, 8);
335 static inline uint32_t mavlink_msg_limits_status_get_last_clear(
const mavlink_message_t* msg)
337 return _MAV_RETURN_uint32_t(msg, 12);
345 static inline uint16_t mavlink_msg_limits_status_get_breach_count(
const mavlink_message_t* msg)
347 return _MAV_RETURN_uint16_t(msg, 16);
355 static inline uint8_t mavlink_msg_limits_status_get_mods_enabled(
const mavlink_message_t* msg)
365 static inline uint8_t mavlink_msg_limits_status_get_mods_required(
const mavlink_message_t* msg)
375 static inline uint8_t mavlink_msg_limits_status_get_mods_triggered(
const mavlink_message_t* msg)
386 static inline void mavlink_msg_limits_status_decode(
const mavlink_message_t* msg,
mavlink_limits_status_t* limits_status)
388 #if MAVLINK_NEED_BYTE_SWAP
389 limits_status->
last_trigger = mavlink_msg_limits_status_get_last_trigger(msg);
390 limits_status->
last_action = mavlink_msg_limits_status_get_last_action(msg);
391 limits_status->
last_recovery = mavlink_msg_limits_status_get_last_recovery(msg);
392 limits_status->
last_clear = mavlink_msg_limits_status_get_last_clear(msg);
393 limits_status->
breach_count = mavlink_msg_limits_status_get_breach_count(msg);
394 limits_status->
limits_state = mavlink_msg_limits_status_get_limits_state(msg);
395 limits_status->
mods_enabled = mavlink_msg_limits_status_get_mods_enabled(msg);
396 limits_status->
mods_required = mavlink_msg_limits_status_get_mods_required(msg);
397 limits_status->
mods_triggered = mavlink_msg_limits_status_get_mods_triggered(msg);
#define MAVLINK_MSG_ID_LIMITS_STATUS_LEN
Definition: mavlink_msg_limits_status.h:18
uint32_t last_recovery
time of last successful recovery in milliseconds since boot
Definition: mavlink_msg_limits_status.h:9
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint8_t mods_triggered
AP_Limit_Module bitfield of triggered modules, (see enum moduleid or LIMIT_MODULE) ...
Definition: mavlink_msg_limits_status.h:15
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
Definition: mavlink_msg_limits_status.h:5
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_LIMITS_STATUS
Definition: mavlink_msg_limits_status.h:3
#define MAVLINK_MSG_ID_LIMITS_STATUS_CRC
Definition: mavlink_msg_limits_status.h:21
uint16_t breach_count
number of fence breaches
Definition: mavlink_msg_limits_status.h:11
uint8_t limits_state
state of AP_Limits, (see enum LimitState, LIMITS_STATE)
Definition: mavlink_msg_limits_status.h:12
uint8_t mods_enabled
AP_Limit_Module bitfield of enabled modules, (see enum moduleid or LIMIT_MODULE)
Definition: mavlink_msg_limits_status.h:13
uint32_t last_clear
time of last all-clear in milliseconds since boot
Definition: mavlink_msg_limits_status.h:10
uint8_t mods_required
AP_Limit_Module bitfield of required modules, (see enum moduleid or LIMIT_MODULE) ...
Definition: mavlink_msg_limits_status.h:14
uint32_t last_action
time of last recovery action in milliseconds since boot
Definition: mavlink_msg_limits_status.h:8
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
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
uint32_t last_trigger
time of last breach in milliseconds since boot
Definition: mavlink_msg_limits_status.h:7
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141
struct __mavlink_limits_status_t mavlink_limits_status_t