3 #define MAVLINK_MSG_ID_ONBOARD_HEALTH 206
23 #define MAVLINK_MSG_ID_ONBOARD_HEALTH_LEN 39
24 #define MAVLINK_MSG_ID_206_LEN 39
26 #define MAVLINK_MSG_ID_ONBOARD_HEALTH_CRC 19
27 #define MAVLINK_MSG_ID_206_CRC 19
31 #define MAVLINK_MESSAGE_INFO_ONBOARD_HEALTH { \
34 { { "uptime", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_onboard_health_t, uptime) }, \
35 { "ram_total", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_onboard_health_t, ram_total) }, \
36 { "swap_total", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_onboard_health_t, swap_total) }, \
37 { "disk_total", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_onboard_health_t, disk_total) }, \
38 { "temp", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_onboard_health_t, temp) }, \
39 { "voltage", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_onboard_health_t, voltage) }, \
40 { "network_load_in", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_onboard_health_t, network_load_in) }, \
41 { "network_load_out", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_onboard_health_t, network_load_out) }, \
42 { "cpu_freq", NULL, MAVLINK_TYPE_UINT16_T, 0, 32, offsetof(mavlink_onboard_health_t, cpu_freq) }, \
43 { "cpu_load", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_onboard_health_t, cpu_load) }, \
44 { "ram_usage", NULL, MAVLINK_TYPE_UINT8_T, 0, 35, offsetof(mavlink_onboard_health_t, ram_usage) }, \
45 { "swap_usage", NULL, MAVLINK_TYPE_UINT8_T, 0, 36, offsetof(mavlink_onboard_health_t, swap_usage) }, \
46 { "disk_health", NULL, MAVLINK_TYPE_INT8_T, 0, 37, offsetof(mavlink_onboard_health_t, disk_health) }, \
47 { "disk_usage", NULL, MAVLINK_TYPE_UINT8_T, 0, 38, offsetof(mavlink_onboard_health_t, disk_usage) }, \
74 static inline uint16_t mavlink_msg_onboard_health_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
75 uint32_t uptime, uint16_t cpu_freq, uint8_t cpu_load, uint8_t ram_usage,
float ram_total, uint8_t swap_usage,
float swap_total, int8_t disk_health, uint8_t disk_usage,
float disk_total,
float temp,
float voltage,
float network_load_in,
float network_load_out)
77 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
116 #if MAVLINK_CRC_EXTRA
145 static inline uint16_t mavlink_msg_onboard_health_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
146 mavlink_message_t* msg,
147 uint32_t uptime,uint16_t cpu_freq,uint8_t cpu_load,uint8_t ram_usage,
float ram_total,uint8_t swap_usage,
float swap_total,int8_t disk_health,uint8_t disk_usage,
float disk_total,
float temp,
float voltage,
float network_load_in,
float network_load_out)
149 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
188 #if MAVLINK_CRC_EXTRA
203 static inline uint16_t mavlink_msg_onboard_health_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_onboard_health_t* onboard_health)
205 return mavlink_msg_onboard_health_pack(system_id, component_id, msg, onboard_health->
uptime, onboard_health->
cpu_freq, onboard_health->
cpu_load, onboard_health->
ram_usage, onboard_health->
ram_total, onboard_health->
swap_usage, onboard_health->
swap_total, onboard_health->
disk_health, onboard_health->
disk_usage, onboard_health->
disk_total, onboard_health->
temp, onboard_health->
voltage, onboard_health->
network_load_in, onboard_health->
network_load_out);
217 static inline uint16_t mavlink_msg_onboard_health_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_onboard_health_t* onboard_health)
219 return mavlink_msg_onboard_health_pack_chan(system_id, component_id, chan, msg, onboard_health->
uptime, onboard_health->
cpu_freq, onboard_health->
cpu_load, onboard_health->
ram_usage, onboard_health->
ram_total, onboard_health->
swap_usage, onboard_health->
swap_total, onboard_health->
disk_health, onboard_health->
disk_usage, onboard_health->
disk_total, onboard_health->
temp, onboard_health->
voltage, onboard_health->
network_load_in, onboard_health->
network_load_out);
241 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
243 static inline void mavlink_msg_onboard_health_send(
mavlink_channel_t chan, uint32_t uptime, uint16_t cpu_freq, uint8_t cpu_load, uint8_t ram_usage,
float ram_total, uint8_t swap_usage,
float swap_total, int8_t disk_health, uint8_t disk_usage,
float disk_total,
float temp,
float voltage,
float network_load_in,
float network_load_out)
245 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
262 #if MAVLINK_CRC_EXTRA
284 #if MAVLINK_CRC_EXTRA
292 #if MAVLINK_MSG_ID_ONBOARD_HEALTH_LEN <= MAVLINK_MAX_PAYLOAD_LEN
300 static inline void mavlink_msg_onboard_health_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t uptime, uint16_t cpu_freq, uint8_t cpu_load, uint8_t ram_usage,
float ram_total, uint8_t swap_usage,
float swap_total, int8_t disk_health, uint8_t disk_usage,
float disk_total,
float temp,
float voltage,
float network_load_in,
float network_load_out)
302 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
303 char *buf = (
char *)msgbuf;
319 #if MAVLINK_CRC_EXTRA
341 #if MAVLINK_CRC_EXTRA
360 static inline uint32_t mavlink_msg_onboard_health_get_uptime(
const mavlink_message_t* msg)
362 return _MAV_RETURN_uint32_t(msg, 0);
370 static inline uint16_t mavlink_msg_onboard_health_get_cpu_freq(
const mavlink_message_t* msg)
372 return _MAV_RETURN_uint16_t(msg, 32);
380 static inline uint8_t mavlink_msg_onboard_health_get_cpu_load(
const mavlink_message_t* msg)
390 static inline uint8_t mavlink_msg_onboard_health_get_ram_usage(
const mavlink_message_t* msg)
400 static inline float mavlink_msg_onboard_health_get_ram_total(
const mavlink_message_t* msg)
402 return _MAV_RETURN_float(msg, 4);
410 static inline uint8_t mavlink_msg_onboard_health_get_swap_usage(
const mavlink_message_t* msg)
420 static inline float mavlink_msg_onboard_health_get_swap_total(
const mavlink_message_t* msg)
422 return _MAV_RETURN_float(msg, 8);
430 static inline int8_t mavlink_msg_onboard_health_get_disk_health(
const mavlink_message_t* msg)
440 static inline uint8_t mavlink_msg_onboard_health_get_disk_usage(
const mavlink_message_t* msg)
450 static inline float mavlink_msg_onboard_health_get_disk_total(
const mavlink_message_t* msg)
452 return _MAV_RETURN_float(msg, 12);
460 static inline float mavlink_msg_onboard_health_get_temp(
const mavlink_message_t* msg)
462 return _MAV_RETURN_float(msg, 16);
470 static inline float mavlink_msg_onboard_health_get_voltage(
const mavlink_message_t* msg)
472 return _MAV_RETURN_float(msg, 20);
480 static inline float mavlink_msg_onboard_health_get_network_load_in(
const mavlink_message_t* msg)
482 return _MAV_RETURN_float(msg, 24);
490 static inline float mavlink_msg_onboard_health_get_network_load_out(
const mavlink_message_t* msg)
492 return _MAV_RETURN_float(msg, 28);
501 static inline void mavlink_msg_onboard_health_decode(
const mavlink_message_t* msg,
mavlink_onboard_health_t* onboard_health)
503 #if MAVLINK_NEED_BYTE_SWAP
504 onboard_health->
uptime = mavlink_msg_onboard_health_get_uptime(msg);
505 onboard_health->
ram_total = mavlink_msg_onboard_health_get_ram_total(msg);
506 onboard_health->
swap_total = mavlink_msg_onboard_health_get_swap_total(msg);
507 onboard_health->
disk_total = mavlink_msg_onboard_health_get_disk_total(msg);
508 onboard_health->
temp = mavlink_msg_onboard_health_get_temp(msg);
509 onboard_health->
voltage = mavlink_msg_onboard_health_get_voltage(msg);
510 onboard_health->
network_load_in = mavlink_msg_onboard_health_get_network_load_in(msg);
511 onboard_health->
network_load_out = mavlink_msg_onboard_health_get_network_load_out(msg);
512 onboard_health->
cpu_freq = mavlink_msg_onboard_health_get_cpu_freq(msg);
513 onboard_health->
cpu_load = mavlink_msg_onboard_health_get_cpu_load(msg);
514 onboard_health->
ram_usage = mavlink_msg_onboard_health_get_ram_usage(msg);
515 onboard_health->
swap_usage = mavlink_msg_onboard_health_get_swap_usage(msg);
516 onboard_health->
disk_health = mavlink_msg_onboard_health_get_disk_health(msg);
517 onboard_health->
disk_usage = mavlink_msg_onboard_health_get_disk_usage(msg);
struct __mavlink_onboard_health_t mavlink_onboard_health_t
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
uint8_t cpu_load
CPU load in percent.
Definition: mavlink_msg_onboard_health.h:16
uint8_t disk_usage
Disk usage in percent.
Definition: mavlink_msg_onboard_health.h:20
float disk_total
Disk total in GiB.
Definition: mavlink_msg_onboard_health.h:10
float temp
Temperature.
Definition: mavlink_msg_onboard_health.h:11
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
float network_load_out
Network load outbound in KiB/s.
Definition: mavlink_msg_onboard_health.h:14
float ram_total
RAM size in GiB.
Definition: mavlink_msg_onboard_health.h:8
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
uint8_t swap_usage
Swap usage in percent.
Definition: mavlink_msg_onboard_health.h:18
uint32_t uptime
Uptime of system.
Definition: mavlink_msg_onboard_health.h:7
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
uint8_t ram_usage
RAM usage in percent.
Definition: mavlink_msg_onboard_health.h:17
#define _MAV_RETURN_int8_t(msg, wire_offset)
Definition: protocol.h:237
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_ONBOARD_HEALTH_LEN
Definition: mavlink_msg_onboard_health.h:23
float voltage
Supply voltage V.
Definition: mavlink_msg_onboard_health.h:12
int8_t disk_health
Disk health (-1: N/A, 0: ERR, 1: RO, 2: RW)
Definition: mavlink_msg_onboard_health.h:19
#define _mav_put_int8_t(buf, wire_offset, b)
Definition: protocol.h:135
uint16_t cpu_freq
CPU frequency.
Definition: mavlink_msg_onboard_health.h:15
float network_load_in
Network load inbound KiB/s.
Definition: mavlink_msg_onboard_health.h:13
#define MAVLINK_MSG_ID_ONBOARD_HEALTH
Definition: mavlink_msg_onboard_health.h:3
#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
#define MAVLINK_MSG_ID_ONBOARD_HEALTH_CRC
Definition: mavlink_msg_onboard_health.h:26
Definition: mavlink_msg_onboard_health.h:5
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141
float swap_total
Swap size in GiB.
Definition: mavlink_msg_onboard_health.h:9