mavlink_msg_sys_status.h
Go to the documentation of this file.
00001 // MESSAGE SYS_STATUS PACKING
00002 
00003 #define MAVLINK_MSG_ID_SYS_STATUS 1
00004 
00005 typedef struct __mavlink_sys_status_t
00006 {
00007  uint32_t onboard_control_sensors_present; /*< 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*/
00008  uint32_t onboard_control_sensors_enabled; /*< 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*/
00009  uint32_t onboard_control_sensors_health; /*< 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*/
00010  uint16_t load; /*< Maximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000*/
00011  uint16_t voltage_battery; /*< Battery voltage, in millivolts (1 = 1 millivolt)*/
00012  int16_t current_battery; /*< Battery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current*/
00013  uint16_t drop_rate_comm; /*< 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)*/
00014  uint16_t errors_comm; /*< Communication errors (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted on reception on the MAV)*/
00015  uint16_t errors_count1; /*< Autopilot-specific errors*/
00016  uint16_t errors_count2; /*< Autopilot-specific errors*/
00017  uint16_t errors_count3; /*< Autopilot-specific errors*/
00018  uint16_t errors_count4; /*< Autopilot-specific errors*/
00019  int8_t battery_remaining; /*< Remaining battery energy: (0%: 0, 100%: 100), -1: autopilot estimate the remaining battery*/
00020 } mavlink_sys_status_t;
00021 
00022 #define MAVLINK_MSG_ID_SYS_STATUS_LEN 31
00023 #define MAVLINK_MSG_ID_1_LEN 31
00024 
00025 #define MAVLINK_MSG_ID_SYS_STATUS_CRC 124
00026 #define MAVLINK_MSG_ID_1_CRC 124
00027 
00028 
00029 
00030 #define MAVLINK_MESSAGE_INFO_SYS_STATUS { \
00031         "SYS_STATUS", \
00032         13, \
00033         {  { "onboard_control_sensors_present", "0x%04x", MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_sys_status_t, onboard_control_sensors_present) }, \
00034          { "onboard_control_sensors_enabled", "0x%04x", MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_sys_status_t, onboard_control_sensors_enabled) }, \
00035          { "onboard_control_sensors_health", "0x%04x", MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_sys_status_t, onboard_control_sensors_health) }, \
00036          { "load", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_sys_status_t, load) }, \
00037          { "voltage_battery", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_sys_status_t, voltage_battery) }, \
00038          { "current_battery", NULL, MAVLINK_TYPE_INT16_T, 0, 16, offsetof(mavlink_sys_status_t, current_battery) }, \
00039          { "drop_rate_comm", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_sys_status_t, drop_rate_comm) }, \
00040          { "errors_comm", NULL, MAVLINK_TYPE_UINT16_T, 0, 20, offsetof(mavlink_sys_status_t, errors_comm) }, \
00041          { "errors_count1", NULL, MAVLINK_TYPE_UINT16_T, 0, 22, offsetof(mavlink_sys_status_t, errors_count1) }, \
00042          { "errors_count2", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_sys_status_t, errors_count2) }, \
00043          { "errors_count3", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_sys_status_t, errors_count3) }, \
00044          { "errors_count4", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_sys_status_t, errors_count4) }, \
00045          { "battery_remaining", NULL, MAVLINK_TYPE_INT8_T, 0, 30, offsetof(mavlink_sys_status_t, battery_remaining) }, \
00046          } \
00047 }
00048 
00049 
00071 static inline uint16_t mavlink_msg_sys_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
00072                                                        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)
00073 {
00074 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
00075         char buf[MAVLINK_MSG_ID_SYS_STATUS_LEN];
00076         _mav_put_uint32_t(buf, 0, onboard_control_sensors_present);
00077         _mav_put_uint32_t(buf, 4, onboard_control_sensors_enabled);
00078         _mav_put_uint32_t(buf, 8, onboard_control_sensors_health);
00079         _mav_put_uint16_t(buf, 12, load);
00080         _mav_put_uint16_t(buf, 14, voltage_battery);
00081         _mav_put_int16_t(buf, 16, current_battery);
00082         _mav_put_uint16_t(buf, 18, drop_rate_comm);
00083         _mav_put_uint16_t(buf, 20, errors_comm);
00084         _mav_put_uint16_t(buf, 22, errors_count1);
00085         _mav_put_uint16_t(buf, 24, errors_count2);
00086         _mav_put_uint16_t(buf, 26, errors_count3);
00087         _mav_put_uint16_t(buf, 28, errors_count4);
00088         _mav_put_int8_t(buf, 30, battery_remaining);
00089 
00090         memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00091 #else
00092         mavlink_sys_status_t packet;
00093         packet.onboard_control_sensors_present = onboard_control_sensors_present;
00094         packet.onboard_control_sensors_enabled = onboard_control_sensors_enabled;
00095         packet.onboard_control_sensors_health = onboard_control_sensors_health;
00096         packet.load = load;
00097         packet.voltage_battery = voltage_battery;
00098         packet.current_battery = current_battery;
00099         packet.drop_rate_comm = drop_rate_comm;
00100         packet.errors_comm = errors_comm;
00101         packet.errors_count1 = errors_count1;
00102         packet.errors_count2 = errors_count2;
00103         packet.errors_count3 = errors_count3;
00104         packet.errors_count4 = errors_count4;
00105         packet.battery_remaining = battery_remaining;
00106 
00107         memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00108 #endif
00109 
00110         msg->msgid = MAVLINK_MSG_ID_SYS_STATUS;
00111 #if MAVLINK_CRC_EXTRA
00112     return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_SYS_STATUS_LEN, MAVLINK_MSG_ID_SYS_STATUS_CRC);
00113 #else
00114     return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00115 #endif
00116 }
00117 
00139 static inline uint16_t mavlink_msg_sys_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
00140                                                            mavlink_message_t* msg,
00141                                                            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)
00142 {
00143 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
00144         char buf[MAVLINK_MSG_ID_SYS_STATUS_LEN];
00145         _mav_put_uint32_t(buf, 0, onboard_control_sensors_present);
00146         _mav_put_uint32_t(buf, 4, onboard_control_sensors_enabled);
00147         _mav_put_uint32_t(buf, 8, onboard_control_sensors_health);
00148         _mav_put_uint16_t(buf, 12, load);
00149         _mav_put_uint16_t(buf, 14, voltage_battery);
00150         _mav_put_int16_t(buf, 16, current_battery);
00151         _mav_put_uint16_t(buf, 18, drop_rate_comm);
00152         _mav_put_uint16_t(buf, 20, errors_comm);
00153         _mav_put_uint16_t(buf, 22, errors_count1);
00154         _mav_put_uint16_t(buf, 24, errors_count2);
00155         _mav_put_uint16_t(buf, 26, errors_count3);
00156         _mav_put_uint16_t(buf, 28, errors_count4);
00157         _mav_put_int8_t(buf, 30, battery_remaining);
00158 
00159         memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00160 #else
00161         mavlink_sys_status_t packet;
00162         packet.onboard_control_sensors_present = onboard_control_sensors_present;
00163         packet.onboard_control_sensors_enabled = onboard_control_sensors_enabled;
00164         packet.onboard_control_sensors_health = onboard_control_sensors_health;
00165         packet.load = load;
00166         packet.voltage_battery = voltage_battery;
00167         packet.current_battery = current_battery;
00168         packet.drop_rate_comm = drop_rate_comm;
00169         packet.errors_comm = errors_comm;
00170         packet.errors_count1 = errors_count1;
00171         packet.errors_count2 = errors_count2;
00172         packet.errors_count3 = errors_count3;
00173         packet.errors_count4 = errors_count4;
00174         packet.battery_remaining = battery_remaining;
00175 
00176         memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00177 #endif
00178 
00179         msg->msgid = MAVLINK_MSG_ID_SYS_STATUS;
00180 #if MAVLINK_CRC_EXTRA
00181     return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_SYS_STATUS_LEN, MAVLINK_MSG_ID_SYS_STATUS_CRC);
00182 #else
00183     return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00184 #endif
00185 }
00186 
00195 static inline 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)
00196 {
00197         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);
00198 }
00199 
00209 static inline 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)
00210 {
00211         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);
00212 }
00213 
00232 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
00233 
00234 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)
00235 {
00236 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
00237         char buf[MAVLINK_MSG_ID_SYS_STATUS_LEN];
00238         _mav_put_uint32_t(buf, 0, onboard_control_sensors_present);
00239         _mav_put_uint32_t(buf, 4, onboard_control_sensors_enabled);
00240         _mav_put_uint32_t(buf, 8, onboard_control_sensors_health);
00241         _mav_put_uint16_t(buf, 12, load);
00242         _mav_put_uint16_t(buf, 14, voltage_battery);
00243         _mav_put_int16_t(buf, 16, current_battery);
00244         _mav_put_uint16_t(buf, 18, drop_rate_comm);
00245         _mav_put_uint16_t(buf, 20, errors_comm);
00246         _mav_put_uint16_t(buf, 22, errors_count1);
00247         _mav_put_uint16_t(buf, 24, errors_count2);
00248         _mav_put_uint16_t(buf, 26, errors_count3);
00249         _mav_put_uint16_t(buf, 28, errors_count4);
00250         _mav_put_int8_t(buf, 30, battery_remaining);
00251 
00252 #if MAVLINK_CRC_EXTRA
00253     _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SYS_STATUS, buf, MAVLINK_MSG_ID_SYS_STATUS_LEN, MAVLINK_MSG_ID_SYS_STATUS_CRC);
00254 #else
00255     _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SYS_STATUS, buf, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00256 #endif
00257 #else
00258         mavlink_sys_status_t packet;
00259         packet.onboard_control_sensors_present = onboard_control_sensors_present;
00260         packet.onboard_control_sensors_enabled = onboard_control_sensors_enabled;
00261         packet.onboard_control_sensors_health = onboard_control_sensors_health;
00262         packet.load = load;
00263         packet.voltage_battery = voltage_battery;
00264         packet.current_battery = current_battery;
00265         packet.drop_rate_comm = drop_rate_comm;
00266         packet.errors_comm = errors_comm;
00267         packet.errors_count1 = errors_count1;
00268         packet.errors_count2 = errors_count2;
00269         packet.errors_count3 = errors_count3;
00270         packet.errors_count4 = errors_count4;
00271         packet.battery_remaining = battery_remaining;
00272 
00273 #if MAVLINK_CRC_EXTRA
00274     _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SYS_STATUS, (const char *)&packet, MAVLINK_MSG_ID_SYS_STATUS_LEN, MAVLINK_MSG_ID_SYS_STATUS_CRC);
00275 #else
00276     _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SYS_STATUS, (const char *)&packet, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00277 #endif
00278 #endif
00279 }
00280 
00281 #if MAVLINK_MSG_ID_SYS_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
00282 /*
00283   This varient of _send() can be used to save stack space by re-using
00284   memory from the receive buffer.  The caller provides a
00285   mavlink_message_t which is the size of a full mavlink message. This
00286   is usually the receive buffer for the channel, and allows a reply to an
00287   incoming message with minimum stack space usage.
00288  */
00289 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)
00290 {
00291 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
00292         char *buf = (char *)msgbuf;
00293         _mav_put_uint32_t(buf, 0, onboard_control_sensors_present);
00294         _mav_put_uint32_t(buf, 4, onboard_control_sensors_enabled);
00295         _mav_put_uint32_t(buf, 8, onboard_control_sensors_health);
00296         _mav_put_uint16_t(buf, 12, load);
00297         _mav_put_uint16_t(buf, 14, voltage_battery);
00298         _mav_put_int16_t(buf, 16, current_battery);
00299         _mav_put_uint16_t(buf, 18, drop_rate_comm);
00300         _mav_put_uint16_t(buf, 20, errors_comm);
00301         _mav_put_uint16_t(buf, 22, errors_count1);
00302         _mav_put_uint16_t(buf, 24, errors_count2);
00303         _mav_put_uint16_t(buf, 26, errors_count3);
00304         _mav_put_uint16_t(buf, 28, errors_count4);
00305         _mav_put_int8_t(buf, 30, battery_remaining);
00306 
00307 #if MAVLINK_CRC_EXTRA
00308     _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SYS_STATUS, buf, MAVLINK_MSG_ID_SYS_STATUS_LEN, MAVLINK_MSG_ID_SYS_STATUS_CRC);
00309 #else
00310     _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SYS_STATUS, buf, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00311 #endif
00312 #else
00313         mavlink_sys_status_t *packet = (mavlink_sys_status_t *)msgbuf;
00314         packet->onboard_control_sensors_present = onboard_control_sensors_present;
00315         packet->onboard_control_sensors_enabled = onboard_control_sensors_enabled;
00316         packet->onboard_control_sensors_health = onboard_control_sensors_health;
00317         packet->load = load;
00318         packet->voltage_battery = voltage_battery;
00319         packet->current_battery = current_battery;
00320         packet->drop_rate_comm = drop_rate_comm;
00321         packet->errors_comm = errors_comm;
00322         packet->errors_count1 = errors_count1;
00323         packet->errors_count2 = errors_count2;
00324         packet->errors_count3 = errors_count3;
00325         packet->errors_count4 = errors_count4;
00326         packet->battery_remaining = battery_remaining;
00327 
00328 #if MAVLINK_CRC_EXTRA
00329     _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SYS_STATUS, (const char *)packet, MAVLINK_MSG_ID_SYS_STATUS_LEN, MAVLINK_MSG_ID_SYS_STATUS_CRC);
00330 #else
00331     _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SYS_STATUS, (const char *)packet, MAVLINK_MSG_ID_SYS_STATUS_LEN);
00332 #endif
00333 #endif
00334 }
00335 #endif
00336 
00337 #endif
00338 
00339 // MESSAGE SYS_STATUS UNPACKING
00340 
00341 
00347 static inline uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_present(const mavlink_message_t* msg)
00348 {
00349         return _MAV_RETURN_uint32_t(msg,  0);
00350 }
00351 
00357 static inline uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_enabled(const mavlink_message_t* msg)
00358 {
00359         return _MAV_RETURN_uint32_t(msg,  4);
00360 }
00361 
00367 static inline uint32_t mavlink_msg_sys_status_get_onboard_control_sensors_health(const mavlink_message_t* msg)
00368 {
00369         return _MAV_RETURN_uint32_t(msg,  8);
00370 }
00371 
00377 static inline uint16_t mavlink_msg_sys_status_get_load(const mavlink_message_t* msg)
00378 {
00379         return _MAV_RETURN_uint16_t(msg,  12);
00380 }
00381 
00387 static inline uint16_t mavlink_msg_sys_status_get_voltage_battery(const mavlink_message_t* msg)
00388 {
00389         return _MAV_RETURN_uint16_t(msg,  14);
00390 }
00391 
00397 static inline int16_t mavlink_msg_sys_status_get_current_battery(const mavlink_message_t* msg)
00398 {
00399         return _MAV_RETURN_int16_t(msg,  16);
00400 }
00401 
00407 static inline int8_t mavlink_msg_sys_status_get_battery_remaining(const mavlink_message_t* msg)
00408 {
00409         return _MAV_RETURN_int8_t(msg,  30);
00410 }
00411 
00417 static inline uint16_t mavlink_msg_sys_status_get_drop_rate_comm(const mavlink_message_t* msg)
00418 {
00419         return _MAV_RETURN_uint16_t(msg,  18);
00420 }
00421 
00427 static inline uint16_t mavlink_msg_sys_status_get_errors_comm(const mavlink_message_t* msg)
00428 {
00429         return _MAV_RETURN_uint16_t(msg,  20);
00430 }
00431 
00437 static inline uint16_t mavlink_msg_sys_status_get_errors_count1(const mavlink_message_t* msg)
00438 {
00439         return _MAV_RETURN_uint16_t(msg,  22);
00440 }
00441 
00447 static inline uint16_t mavlink_msg_sys_status_get_errors_count2(const mavlink_message_t* msg)
00448 {
00449         return _MAV_RETURN_uint16_t(msg,  24);
00450 }
00451 
00457 static inline uint16_t mavlink_msg_sys_status_get_errors_count3(const mavlink_message_t* msg)
00458 {
00459         return _MAV_RETURN_uint16_t(msg,  26);
00460 }
00461 
00467 static inline uint16_t mavlink_msg_sys_status_get_errors_count4(const mavlink_message_t* msg)
00468 {
00469         return _MAV_RETURN_uint16_t(msg,  28);
00470 }
00471 
00478 static inline void mavlink_msg_sys_status_decode(const mavlink_message_t* msg, mavlink_sys_status_t* sys_status)
00479 {
00480 #if MAVLINK_NEED_BYTE_SWAP
00481         sys_status->onboard_control_sensors_present = mavlink_msg_sys_status_get_onboard_control_sensors_present(msg);
00482         sys_status->onboard_control_sensors_enabled = mavlink_msg_sys_status_get_onboard_control_sensors_enabled(msg);
00483         sys_status->onboard_control_sensors_health = mavlink_msg_sys_status_get_onboard_control_sensors_health(msg);
00484         sys_status->load = mavlink_msg_sys_status_get_load(msg);
00485         sys_status->voltage_battery = mavlink_msg_sys_status_get_voltage_battery(msg);
00486         sys_status->current_battery = mavlink_msg_sys_status_get_current_battery(msg);
00487         sys_status->drop_rate_comm = mavlink_msg_sys_status_get_drop_rate_comm(msg);
00488         sys_status->errors_comm = mavlink_msg_sys_status_get_errors_comm(msg);
00489         sys_status->errors_count1 = mavlink_msg_sys_status_get_errors_count1(msg);
00490         sys_status->errors_count2 = mavlink_msg_sys_status_get_errors_count2(msg);
00491         sys_status->errors_count3 = mavlink_msg_sys_status_get_errors_count3(msg);
00492         sys_status->errors_count4 = mavlink_msg_sys_status_get_errors_count4(msg);
00493         sys_status->battery_remaining = mavlink_msg_sys_status_get_battery_remaining(msg);
00494 #else
00495         memcpy(sys_status, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_SYS_STATUS_LEN);
00496 #endif
00497 }


dji_sdk_dji2mav
Author(s):
autogenerated on Thu Jun 6 2019 17:55:35