Classes | Macros | Typedefs | Functions
mavlink_msg_sys_status.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __mavlink_sys_status_t
 

Macros

#define MAVLINK_MESSAGE_INFO_SYS_STATUS
 
#define MAVLINK_MSG_ID_1_CRC   124
 
#define MAVLINK_MSG_ID_1_LEN   31
 
#define MAVLINK_MSG_ID_SYS_STATUS   1
 
#define MAVLINK_MSG_ID_SYS_STATUS_CRC   124
 
#define MAVLINK_MSG_ID_SYS_STATUS_LEN   31
 

Typedefs

typedef struct __mavlink_sys_status_t mavlink_sys_status_t
 

Functions

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. More...
 
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. More...
 
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. More...
 
static int8_t mavlink_msg_sys_status_get_battery_remaining (const mavlink_message_t *msg)
 Get field battery_remaining from sys_status message. More...
 
static int16_t mavlink_msg_sys_status_get_current_battery (const mavlink_message_t *msg)
 Get field current_battery from sys_status message. More...
 
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. More...
 
static uint16_t mavlink_msg_sys_status_get_errors_comm (const mavlink_message_t *msg)
 Get field errors_comm from sys_status message. More...
 
static uint16_t mavlink_msg_sys_status_get_errors_count1 (const mavlink_message_t *msg)
 Get field errors_count1 from sys_status message. More...
 
static uint16_t mavlink_msg_sys_status_get_errors_count2 (const mavlink_message_t *msg)
 Get field errors_count2 from sys_status message. More...
 
static uint16_t mavlink_msg_sys_status_get_errors_count3 (const mavlink_message_t *msg)
 Get field errors_count3 from sys_status message. More...
 
static uint16_t mavlink_msg_sys_status_get_errors_count4 (const mavlink_message_t *msg)
 Get field errors_count4 from sys_status message. More...
 
static uint16_t mavlink_msg_sys_status_get_load (const mavlink_message_t *msg)
 Get field load from sys_status message. More...
 
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. More...
 
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. More...
 
static uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_present (const mavlink_message_t *msg)
 Send a sys_status message. More...
 
static uint16_t mavlink_msg_sys_status_get_voltage_battery (const mavlink_message_t *msg)
 Get field voltage_battery from sys_status message. More...
 
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. More...
 
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. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_SYS_STATUS
Value:
{ \
"SYS_STATUS", \
13, \
{ { "onboard_control_sensors_present", "0x%04x", MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_sys_status_t, onboard_control_sensors_present) }, \
{ "onboard_control_sensors_enabled", "0x%04x", MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_sys_status_t, onboard_control_sensors_enabled) }, \
{ "onboard_control_sensors_health", "0x%04x", MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_sys_status_t, onboard_control_sensors_health) }, \
{ "load", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_sys_status_t, load) }, \
{ "voltage_battery", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_sys_status_t, voltage_battery) }, \
{ "current_battery", NULL, MAVLINK_TYPE_INT16_T, 0, 16, offsetof(mavlink_sys_status_t, current_battery) }, \
{ "drop_rate_comm", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_sys_status_t, drop_rate_comm) }, \
{ "errors_comm", NULL, MAVLINK_TYPE_UINT16_T, 0, 20, offsetof(mavlink_sys_status_t, errors_comm) }, \
{ "errors_count1", NULL, MAVLINK_TYPE_UINT16_T, 0, 22, offsetof(mavlink_sys_status_t, errors_count1) }, \
{ "errors_count2", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_sys_status_t, errors_count2) }, \
{ "errors_count3", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_sys_status_t, errors_count3) }, \
{ "errors_count4", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_sys_status_t, errors_count4) }, \
{ "battery_remaining", NULL, MAVLINK_TYPE_INT8_T, 0, 30, offsetof(mavlink_sys_status_t, battery_remaining) }, \
} \
}
#define NULL
Definition: usbd_def.h:50

Definition at line 30 of file mavlink_msg_sys_status.h.

#define MAVLINK_MSG_ID_1_CRC   124

Definition at line 26 of file mavlink_msg_sys_status.h.

#define MAVLINK_MSG_ID_1_LEN   31

Definition at line 23 of file mavlink_msg_sys_status.h.

#define MAVLINK_MSG_ID_SYS_STATUS   1

Definition at line 3 of file mavlink_msg_sys_status.h.

#define MAVLINK_MSG_ID_SYS_STATUS_CRC   124

Definition at line 25 of file mavlink_msg_sys_status.h.

#define MAVLINK_MSG_ID_SYS_STATUS_LEN   31

Definition at line 22 of file mavlink_msg_sys_status.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_sys_status_decode ( const mavlink_message_t *  msg,
mavlink_sys_status_t sys_status 
)
inlinestatic

Decode a sys_status message into a struct.

Parameters
msgThe message to decode
sys_statusC-struct to decode the message contents into

Definition at line 478 of file mavlink_msg_sys_status.h.

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 
)
inlinestatic

Encode a sys_status struct.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
sys_statusC-struct to read the message contents from

Definition at line 195 of file mavlink_msg_sys_status.h.

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 
)
inlinestatic

Encode a sys_status struct on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
sys_statusC-struct to read the message contents from

Definition at line 209 of file mavlink_msg_sys_status.h.

static int8_t mavlink_msg_sys_status_get_battery_remaining ( const mavlink_message_t *  msg)
inlinestatic

Get field battery_remaining from sys_status message.

Returns
Remaining battery energy: (0%: 0, 100%: 100), -1: autopilot estimate the remaining battery

Definition at line 407 of file mavlink_msg_sys_status.h.

static int16_t mavlink_msg_sys_status_get_current_battery ( const mavlink_message_t *  msg)
inlinestatic

Get field current_battery from sys_status message.

Returns
Battery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current

Definition at line 397 of file mavlink_msg_sys_status.h.

static uint16_t mavlink_msg_sys_status_get_drop_rate_comm ( const mavlink_message_t *  msg)
inlinestatic

Get field drop_rate_comm from sys_status message.

Returns
Communication drops in percent, (0%: 0, 100%: 10'000), (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)

Definition at line 417 of file mavlink_msg_sys_status.h.

static uint16_t mavlink_msg_sys_status_get_errors_comm ( const mavlink_message_t *  msg)
inlinestatic

Get field errors_comm from sys_status message.

Returns
Communication errors (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)

Definition at line 427 of file mavlink_msg_sys_status.h.

static uint16_t mavlink_msg_sys_status_get_errors_count1 ( const mavlink_message_t *  msg)
inlinestatic

Get field errors_count1 from sys_status message.

Returns
Autopilot-specific errors

Definition at line 437 of file mavlink_msg_sys_status.h.

static uint16_t mavlink_msg_sys_status_get_errors_count2 ( const mavlink_message_t *  msg)
inlinestatic

Get field errors_count2 from sys_status message.

Returns
Autopilot-specific errors

Definition at line 447 of file mavlink_msg_sys_status.h.

static uint16_t mavlink_msg_sys_status_get_errors_count3 ( const mavlink_message_t *  msg)
inlinestatic

Get field errors_count3 from sys_status message.

Returns
Autopilot-specific errors

Definition at line 457 of file mavlink_msg_sys_status.h.

static uint16_t mavlink_msg_sys_status_get_errors_count4 ( const mavlink_message_t *  msg)
inlinestatic

Get field errors_count4 from sys_status message.

Returns
Autopilot-specific errors

Definition at line 467 of file mavlink_msg_sys_status.h.

static uint16_t mavlink_msg_sys_status_get_load ( const mavlink_message_t *  msg)
inlinestatic

Get field load from sys_status message.

Returns
Maximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000

Definition at line 377 of file mavlink_msg_sys_status.h.

static uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_enabled ( const mavlink_message_t *  msg)
inlinestatic

Get field onboard_control_sensors_enabled from sys_status message.

Returns
Bitmask showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. Indices defined by ENUM MAV_SYS_STATUS_SENSOR

Definition at line 357 of file mavlink_msg_sys_status.h.

static uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_health ( const mavlink_message_t *  msg)
inlinestatic

Get field onboard_control_sensors_health from sys_status message.

Returns
Bitmask showing which onboard controllers and sensors are operational or have an error: Value of 0: not enabled. Value of 1: enabled. Indices defined by ENUM MAV_SYS_STATUS_SENSOR

Definition at line 367 of file mavlink_msg_sys_status.h.

static uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_present ( const mavlink_message_t *  msg)
inlinestatic

Send a sys_status message.

Parameters
chanMAVLink channel to send the message
onboard_control_sensors_presentBitmask showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. Indices defined by ENUM MAV_SYS_STATUS_SENSOR
onboard_control_sensors_enabledBitmask showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. Indices defined by ENUM MAV_SYS_STATUS_SENSOR
onboard_control_sensors_healthBitmask showing which onboard controllers and sensors are operational or have an error: Value of 0: not enabled. Value of 1: enabled. Indices defined by ENUM MAV_SYS_STATUS_SENSOR
loadMaximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000
voltage_batteryBattery voltage, in millivolts (1 = 1 millivolt)
current_batteryBattery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current
battery_remainingRemaining battery energy: (0%: 0, 100%: 100), -1: autopilot estimate the remaining battery
drop_rate_commCommunication drops in percent, (0%: 0, 100%: 10'000), (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)
errors_commCommunication errors (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)
errors_count1Autopilot-specific errors
errors_count2Autopilot-specific errors
errors_count3Autopilot-specific errors
errors_count4Autopilot-specific errors Get field onboard_control_sensors_present from sys_status message
Returns
Bitmask showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. Indices defined by ENUM MAV_SYS_STATUS_SENSOR

Definition at line 347 of file mavlink_msg_sys_status.h.

static uint16_t mavlink_msg_sys_status_get_voltage_battery ( const mavlink_message_t *  msg)
inlinestatic

Get field voltage_battery from sys_status message.

Returns
Battery voltage, in millivolts (1 = 1 millivolt)

Definition at line 387 of file mavlink_msg_sys_status.h.

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 
)
inlinestatic

Pack a sys_status message.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
onboard_control_sensors_presentBitmask showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. Indices defined by ENUM MAV_SYS_STATUS_SENSOR
onboard_control_sensors_enabledBitmask showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. Indices defined by ENUM MAV_SYS_STATUS_SENSOR
onboard_control_sensors_healthBitmask showing which onboard controllers and sensors are operational or have an error: Value of 0: not enabled. Value of 1: enabled. Indices defined by ENUM MAV_SYS_STATUS_SENSOR
loadMaximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000
voltage_batteryBattery voltage, in millivolts (1 = 1 millivolt)
current_batteryBattery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current
battery_remainingRemaining battery energy: (0%: 0, 100%: 100), -1: autopilot estimate the remaining battery
drop_rate_commCommunication drops in percent, (0%: 0, 100%: 10'000), (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)
errors_commCommunication errors (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)
errors_count1Autopilot-specific errors
errors_count2Autopilot-specific errors
errors_count3Autopilot-specific errors
errors_count4Autopilot-specific errors
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 71 of file mavlink_msg_sys_status.h.

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 
)
inlinestatic

Pack a sys_status message on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
onboard_control_sensors_presentBitmask showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. Indices defined by ENUM MAV_SYS_STATUS_SENSOR
onboard_control_sensors_enabledBitmask showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. Indices defined by ENUM MAV_SYS_STATUS_SENSOR
onboard_control_sensors_healthBitmask showing which onboard controllers and sensors are operational or have an error: Value of 0: not enabled. Value of 1: enabled. Indices defined by ENUM MAV_SYS_STATUS_SENSOR
loadMaximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000
voltage_batteryBattery voltage, in millivolts (1 = 1 millivolt)
current_batteryBattery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current
battery_remainingRemaining battery energy: (0%: 0, 100%: 100), -1: autopilot estimate the remaining battery
drop_rate_commCommunication drops in percent, (0%: 0, 100%: 10'000), (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)
errors_commCommunication errors (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)
errors_count1Autopilot-specific errors
errors_count2Autopilot-specific errors
errors_count3Autopilot-specific errors
errors_count4Autopilot-specific errors
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 139 of file mavlink_msg_sys_status.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:27