3 #define MAVLINK_MSG_ID_SYS_STATUS 1 22 #define MAVLINK_MSG_ID_SYS_STATUS_LEN 31 23 #define MAVLINK_MSG_ID_1_LEN 31 25 #define MAVLINK_MSG_ID_SYS_STATUS_CRC 124 26 #define MAVLINK_MSG_ID_1_CRC 124 30 #define MAVLINK_MESSAGE_INFO_SYS_STATUS { \ 33 { { "onboard_control_sensors_present", "0x%04x", MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_sys_status_t, onboard_control_sensors_present) }, \ 34 { "onboard_control_sensors_enabled", "0x%04x", MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_sys_status_t, onboard_control_sensors_enabled) }, \ 35 { "onboard_control_sensors_health", "0x%04x", MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_sys_status_t, onboard_control_sensors_health) }, \ 36 { "load", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_sys_status_t, load) }, \ 37 { "voltage_battery", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_sys_status_t, voltage_battery) }, \ 38 { "current_battery", NULL, MAVLINK_TYPE_INT16_T, 0, 16, offsetof(mavlink_sys_status_t, current_battery) }, \ 39 { "drop_rate_comm", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_sys_status_t, drop_rate_comm) }, \ 40 { "errors_comm", NULL, MAVLINK_TYPE_UINT16_T, 0, 20, offsetof(mavlink_sys_status_t, errors_comm) }, \ 41 { "errors_count1", NULL, MAVLINK_TYPE_UINT16_T, 0, 22, offsetof(mavlink_sys_status_t, errors_count1) }, \ 42 { "errors_count2", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_sys_status_t, errors_count2) }, \ 43 { "errors_count3", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_sys_status_t, errors_count3) }, \ 44 { "errors_count4", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_sys_status_t, errors_count4) }, \ 45 { "battery_remaining", NULL, MAVLINK_TYPE_INT8_T, 0, 30, offsetof(mavlink_sys_status_t, battery_remaining) }, \ 72 uint32_t
onboard_control_sensors_present, uint32_t
onboard_control_sensors_enabled, uint32_t
onboard_control_sensors_health, uint16_t
load, uint16_t
voltage_battery, int16_t
current_battery, int8_t
battery_remaining, uint16_t
drop_rate_comm, uint16_t
errors_comm, uint16_t
errors_count1, uint16_t
errors_count2, uint16_t
errors_count3, uint16_t
errors_count4)
74 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 111 #if MAVLINK_CRC_EXTRA 140 mavlink_message_t* msg,
141 uint32_t
onboard_control_sensors_present,uint32_t
onboard_control_sensors_enabled,uint32_t
onboard_control_sensors_health,uint16_t
load,uint16_t
voltage_battery,int16_t
current_battery,int8_t
battery_remaining,uint16_t
drop_rate_comm,uint16_t
errors_comm,uint16_t
errors_count1,uint16_t
errors_count2,uint16_t
errors_count3,uint16_t
errors_count4)
143 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 180 #if MAVLINK_CRC_EXTRA 197 return mavlink_msg_sys_status_pack(system_id, component_id, msg, sys_status->
onboard_control_sensors_present, sys_status->
onboard_control_sensors_enabled, sys_status->
onboard_control_sensors_health, sys_status->
load, sys_status->
voltage_battery, sys_status->
current_battery, sys_status->
battery_remaining, sys_status->
drop_rate_comm, sys_status->
errors_comm, sys_status->
errors_count1, sys_status->
errors_count2, sys_status->
errors_count3, sys_status->
errors_count4);
211 return mavlink_msg_sys_status_pack_chan(system_id, component_id, chan, msg, sys_status->
onboard_control_sensors_present, sys_status->
onboard_control_sensors_enabled, sys_status->
onboard_control_sensors_health, sys_status->
load, sys_status->
voltage_battery, sys_status->
current_battery, sys_status->
battery_remaining, sys_status->
drop_rate_comm, sys_status->
errors_comm, sys_status->
errors_count1, sys_status->
errors_count2, sys_status->
errors_count3, sys_status->
errors_count4);
232 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 234 static inline void mavlink_msg_sys_status_send(
mavlink_channel_t chan, uint32_t
onboard_control_sensors_present, uint32_t
onboard_control_sensors_enabled, uint32_t
onboard_control_sensors_health, uint16_t
load, uint16_t
voltage_battery, int16_t
current_battery, int8_t
battery_remaining, uint16_t
drop_rate_comm, uint16_t
errors_comm, uint16_t
errors_count1, uint16_t
errors_count2, uint16_t
errors_count3, uint16_t
errors_count4)
236 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 252 #if MAVLINK_CRC_EXTRA 273 #if MAVLINK_CRC_EXTRA 281 #if MAVLINK_MSG_ID_SYS_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN 289 static inline void mavlink_msg_sys_status_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t
onboard_control_sensors_present, uint32_t
onboard_control_sensors_enabled, uint32_t
onboard_control_sensors_health, uint16_t
load, uint16_t
voltage_battery, int16_t
current_battery, int8_t
battery_remaining, uint16_t
drop_rate_comm, uint16_t
errors_comm, uint16_t
errors_count1, uint16_t
errors_count2, uint16_t
errors_count3, uint16_t
errors_count4)
291 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 292 char *buf = (
char *)msgbuf;
307 #if MAVLINK_CRC_EXTRA 328 #if MAVLINK_CRC_EXTRA 349 return _MAV_RETURN_uint32_t(msg, 0);
359 return _MAV_RETURN_uint32_t(msg, 4);
369 return _MAV_RETURN_uint32_t(msg, 8);
379 return _MAV_RETURN_uint16_t(msg, 12);
389 return _MAV_RETURN_uint16_t(msg, 14);
399 return _MAV_RETURN_int16_t(msg, 16);
419 return _MAV_RETURN_uint16_t(msg, 18);
429 return _MAV_RETURN_uint16_t(msg, 20);
439 return _MAV_RETURN_uint16_t(msg, 22);
449 return _MAV_RETURN_uint16_t(msg, 24);
459 return _MAV_RETURN_uint16_t(msg, 26);
469 return _MAV_RETURN_uint16_t(msg, 28);
480 #if MAVLINK_NEED_BYTE_SWAP static uint16_t mavlink_msg_sys_status_get_drop_rate_comm(const mavlink_message_t *msg)
Get field drop_rate_comm from sys_status message.
static uint16_t mavlink_msg_sys_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t onboard_control_sensors_present, uint32_t onboard_control_sensors_enabled, uint32_t onboard_control_sensors_health, uint16_t load, uint16_t voltage_battery, int16_t current_battery, int8_t battery_remaining, uint16_t drop_rate_comm, uint16_t errors_comm, uint16_t errors_count1, uint16_t errors_count2, uint16_t errors_count3, uint16_t errors_count4)
Pack a sys_status message.
uint32_t onboard_control_sensors_health
struct __mavlink_sys_status_t mavlink_sys_status_t
static uint16_t mavlink_msg_sys_status_get_voltage_battery(const mavlink_message_t *msg)
Get field voltage_battery from sys_status message.
static int8_t mavlink_msg_sys_status_get_battery_remaining(const mavlink_message_t *msg)
Get field battery_remaining from sys_status message.
#define MAVLINK_MSG_ID_SYS_STATUS
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.
uint32_t onboard_control_sensors_present
static uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_health(const mavlink_message_t *msg)
Get field onboard_control_sensors_health from sys_status message.
#define MAVLINK_MSG_ID_SYS_STATUS_CRC
static uint16_t mavlink_msg_sys_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_sys_status_t *sys_status)
Encode a sys_status struct.
#define _MAV_PAYLOAD_NON_CONST(msg)
static int16_t mavlink_msg_sys_status_get_current_battery(const mavlink_message_t *msg)
Get field current_battery from sys_status message.
uint32_t onboard_control_sensors_enabled
static uint16_t mavlink_msg_sys_status_get_errors_count1(const mavlink_message_t *msg)
Get field errors_count1 from sys_status message.
#define _MAV_RETURN_int8_t(msg, wire_offset)
static uint16_t mavlink_msg_sys_status_get_errors_count2(const mavlink_message_t *msg)
Get field errors_count2 from sys_status message.
#define _MAV_PAYLOAD(msg)
#define MAVLINK_MSG_ID_SYS_STATUS_LEN
static uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_present(const mavlink_message_t *msg)
Send a sys_status message.
static uint16_t mavlink_msg_sys_status_get_errors_count3(const mavlink_message_t *msg)
Get field errors_count3 from sys_status message.
#define _mav_put_int8_t(buf, wire_offset, b)
static void mavlink_msg_sys_status_decode(const mavlink_message_t *msg, mavlink_sys_status_t *sys_status)
Decode a sys_status message into a struct.
static uint16_t mavlink_msg_sys_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t onboard_control_sensors_present, uint32_t onboard_control_sensors_enabled, uint32_t onboard_control_sensors_health, uint16_t load, uint16_t voltage_battery, int16_t current_battery, int8_t battery_remaining, uint16_t drop_rate_comm, uint16_t errors_comm, uint16_t errors_count1, uint16_t errors_count2, uint16_t errors_count3, uint16_t errors_count4)
Pack a sys_status message on a channel.
#define _mav_put_uint16_t(buf, wire_offset, b)
static uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_enabled(const mavlink_message_t *msg)
Get field onboard_control_sensors_enabled from sys_status message.
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.
#define _mav_put_int16_t(buf, wire_offset, b)
static uint16_t mavlink_msg_sys_status_get_load(const mavlink_message_t *msg)
Get field load from sys_status message.
static uint16_t mavlink_msg_sys_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_sys_status_t *sys_status)
Encode a sys_status struct on a channel.
static uint16_t mavlink_msg_sys_status_get_errors_comm(const mavlink_message_t *msg)
Get field errors_comm from sys_status message.
static uint16_t mavlink_msg_sys_status_get_errors_count4(const mavlink_message_t *msg)
Get field errors_count4 from sys_status message.
#define _mav_put_uint32_t(buf, wire_offset, b)