autogenerated headers for rev https://github.com/mavlink/mavlink/tree/5b29f942e3a4e26e06ee226e631cd7b375fb42c7
This commit is contained in:
+5
-3
File diff suppressed because one or more lines are too long
@@ -0,0 +1,388 @@
|
||||
#pragma once
|
||||
// MESSAGE SATCOM_LINK_STATUS PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_SATCOM_LINK_STATUS 214
|
||||
|
||||
|
||||
typedef struct __mavlink_satcom_link_status_t {
|
||||
uint64_t timestamp; /*< [us] Timestamp*/
|
||||
uint64_t last_heartbeat; /*< [us] Timestamp of the last successful sbd session*/
|
||||
uint16_t failed_sessions; /*< Number of failed sessions*/
|
||||
uint16_t successful_sessions; /*< Number of successful sessions*/
|
||||
uint8_t signal_quality; /*< Signal quality*/
|
||||
uint8_t ring_pending; /*< Ring call pending*/
|
||||
uint8_t tx_session_pending; /*< Transmission session pending*/
|
||||
uint8_t rx_session_pending; /*< Receiving session pending*/
|
||||
} mavlink_satcom_link_status_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN 24
|
||||
#define MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN 24
|
||||
#define MAVLINK_MSG_ID_214_LEN 24
|
||||
#define MAVLINK_MSG_ID_214_MIN_LEN 24
|
||||
|
||||
#define MAVLINK_MSG_ID_SATCOM_LINK_STATUS_CRC 23
|
||||
#define MAVLINK_MSG_ID_214_CRC 23
|
||||
|
||||
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_SATCOM_LINK_STATUS { \
|
||||
214, \
|
||||
"SATCOM_LINK_STATUS", \
|
||||
8, \
|
||||
{ { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_satcom_link_status_t, timestamp) }, \
|
||||
{ "last_heartbeat", NULL, MAVLINK_TYPE_UINT64_T, 0, 8, offsetof(mavlink_satcom_link_status_t, last_heartbeat) }, \
|
||||
{ "failed_sessions", NULL, MAVLINK_TYPE_UINT16_T, 0, 16, offsetof(mavlink_satcom_link_status_t, failed_sessions) }, \
|
||||
{ "successful_sessions", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_satcom_link_status_t, successful_sessions) }, \
|
||||
{ "signal_quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 20, offsetof(mavlink_satcom_link_status_t, signal_quality) }, \
|
||||
{ "ring_pending", NULL, MAVLINK_TYPE_UINT8_T, 0, 21, offsetof(mavlink_satcom_link_status_t, ring_pending) }, \
|
||||
{ "tx_session_pending", NULL, MAVLINK_TYPE_UINT8_T, 0, 22, offsetof(mavlink_satcom_link_status_t, tx_session_pending) }, \
|
||||
{ "rx_session_pending", NULL, MAVLINK_TYPE_UINT8_T, 0, 23, offsetof(mavlink_satcom_link_status_t, rx_session_pending) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_SATCOM_LINK_STATUS { \
|
||||
"SATCOM_LINK_STATUS", \
|
||||
8, \
|
||||
{ { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_satcom_link_status_t, timestamp) }, \
|
||||
{ "last_heartbeat", NULL, MAVLINK_TYPE_UINT64_T, 0, 8, offsetof(mavlink_satcom_link_status_t, last_heartbeat) }, \
|
||||
{ "failed_sessions", NULL, MAVLINK_TYPE_UINT16_T, 0, 16, offsetof(mavlink_satcom_link_status_t, failed_sessions) }, \
|
||||
{ "successful_sessions", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_satcom_link_status_t, successful_sessions) }, \
|
||||
{ "signal_quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 20, offsetof(mavlink_satcom_link_status_t, signal_quality) }, \
|
||||
{ "ring_pending", NULL, MAVLINK_TYPE_UINT8_T, 0, 21, offsetof(mavlink_satcom_link_status_t, ring_pending) }, \
|
||||
{ "tx_session_pending", NULL, MAVLINK_TYPE_UINT8_T, 0, 22, offsetof(mavlink_satcom_link_status_t, tx_session_pending) }, \
|
||||
{ "rx_session_pending", NULL, MAVLINK_TYPE_UINT8_T, 0, 23, offsetof(mavlink_satcom_link_status_t, rx_session_pending) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a satcom_link_status message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param timestamp [us] Timestamp
|
||||
* @param last_heartbeat [us] Timestamp of the last successful sbd session
|
||||
* @param failed_sessions Number of failed sessions
|
||||
* @param successful_sessions Number of successful sessions
|
||||
* @param signal_quality Signal quality
|
||||
* @param ring_pending Ring call pending
|
||||
* @param tx_session_pending Transmission session pending
|
||||
* @param rx_session_pending Receiving session pending
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_satcom_link_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint64_t timestamp, uint64_t last_heartbeat, uint16_t failed_sessions, uint16_t successful_sessions, uint8_t signal_quality, uint8_t ring_pending, uint8_t tx_session_pending, uint8_t rx_session_pending)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN];
|
||||
_mav_put_uint64_t(buf, 0, timestamp);
|
||||
_mav_put_uint64_t(buf, 8, last_heartbeat);
|
||||
_mav_put_uint16_t(buf, 16, failed_sessions);
|
||||
_mav_put_uint16_t(buf, 18, successful_sessions);
|
||||
_mav_put_uint8_t(buf, 20, signal_quality);
|
||||
_mav_put_uint8_t(buf, 21, ring_pending);
|
||||
_mav_put_uint8_t(buf, 22, tx_session_pending);
|
||||
_mav_put_uint8_t(buf, 23, rx_session_pending);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN);
|
||||
#else
|
||||
mavlink_satcom_link_status_t packet;
|
||||
packet.timestamp = timestamp;
|
||||
packet.last_heartbeat = last_heartbeat;
|
||||
packet.failed_sessions = failed_sessions;
|
||||
packet.successful_sessions = successful_sessions;
|
||||
packet.signal_quality = signal_quality;
|
||||
packet.ring_pending = ring_pending;
|
||||
packet.tx_session_pending = tx_session_pending;
|
||||
packet.rx_session_pending = rx_session_pending;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_SATCOM_LINK_STATUS;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a satcom_link_status message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param timestamp [us] Timestamp
|
||||
* @param last_heartbeat [us] Timestamp of the last successful sbd session
|
||||
* @param failed_sessions Number of failed sessions
|
||||
* @param successful_sessions Number of successful sessions
|
||||
* @param signal_quality Signal quality
|
||||
* @param ring_pending Ring call pending
|
||||
* @param tx_session_pending Transmission session pending
|
||||
* @param rx_session_pending Receiving session pending
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_satcom_link_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint64_t timestamp,uint64_t last_heartbeat,uint16_t failed_sessions,uint16_t successful_sessions,uint8_t signal_quality,uint8_t ring_pending,uint8_t tx_session_pending,uint8_t rx_session_pending)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN];
|
||||
_mav_put_uint64_t(buf, 0, timestamp);
|
||||
_mav_put_uint64_t(buf, 8, last_heartbeat);
|
||||
_mav_put_uint16_t(buf, 16, failed_sessions);
|
||||
_mav_put_uint16_t(buf, 18, successful_sessions);
|
||||
_mav_put_uint8_t(buf, 20, signal_quality);
|
||||
_mav_put_uint8_t(buf, 21, ring_pending);
|
||||
_mav_put_uint8_t(buf, 22, tx_session_pending);
|
||||
_mav_put_uint8_t(buf, 23, rx_session_pending);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN);
|
||||
#else
|
||||
mavlink_satcom_link_status_t packet;
|
||||
packet.timestamp = timestamp;
|
||||
packet.last_heartbeat = last_heartbeat;
|
||||
packet.failed_sessions = failed_sessions;
|
||||
packet.successful_sessions = successful_sessions;
|
||||
packet.signal_quality = signal_quality;
|
||||
packet.ring_pending = ring_pending;
|
||||
packet.tx_session_pending = tx_session_pending;
|
||||
packet.rx_session_pending = rx_session_pending;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_SATCOM_LINK_STATUS;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a satcom_link_status struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param satcom_link_status C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_satcom_link_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_satcom_link_status_t* satcom_link_status)
|
||||
{
|
||||
return mavlink_msg_satcom_link_status_pack(system_id, component_id, msg, satcom_link_status->timestamp, satcom_link_status->last_heartbeat, satcom_link_status->failed_sessions, satcom_link_status->successful_sessions, satcom_link_status->signal_quality, satcom_link_status->ring_pending, satcom_link_status->tx_session_pending, satcom_link_status->rx_session_pending);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a satcom_link_status struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param satcom_link_status C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_satcom_link_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_satcom_link_status_t* satcom_link_status)
|
||||
{
|
||||
return mavlink_msg_satcom_link_status_pack_chan(system_id, component_id, chan, msg, satcom_link_status->timestamp, satcom_link_status->last_heartbeat, satcom_link_status->failed_sessions, satcom_link_status->successful_sessions, satcom_link_status->signal_quality, satcom_link_status->ring_pending, satcom_link_status->tx_session_pending, satcom_link_status->rx_session_pending);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a satcom_link_status message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param timestamp [us] Timestamp
|
||||
* @param last_heartbeat [us] Timestamp of the last successful sbd session
|
||||
* @param failed_sessions Number of failed sessions
|
||||
* @param successful_sessions Number of successful sessions
|
||||
* @param signal_quality Signal quality
|
||||
* @param ring_pending Ring call pending
|
||||
* @param tx_session_pending Transmission session pending
|
||||
* @param rx_session_pending Receiving session pending
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_satcom_link_status_send(mavlink_channel_t chan, uint64_t timestamp, uint64_t last_heartbeat, uint16_t failed_sessions, uint16_t successful_sessions, uint8_t signal_quality, uint8_t ring_pending, uint8_t tx_session_pending, uint8_t rx_session_pending)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN];
|
||||
_mav_put_uint64_t(buf, 0, timestamp);
|
||||
_mav_put_uint64_t(buf, 8, last_heartbeat);
|
||||
_mav_put_uint16_t(buf, 16, failed_sessions);
|
||||
_mav_put_uint16_t(buf, 18, successful_sessions);
|
||||
_mav_put_uint8_t(buf, 20, signal_quality);
|
||||
_mav_put_uint8_t(buf, 21, ring_pending);
|
||||
_mav_put_uint8_t(buf, 22, tx_session_pending);
|
||||
_mav_put_uint8_t(buf, 23, rx_session_pending);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SATCOM_LINK_STATUS, buf, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_CRC);
|
||||
#else
|
||||
mavlink_satcom_link_status_t packet;
|
||||
packet.timestamp = timestamp;
|
||||
packet.last_heartbeat = last_heartbeat;
|
||||
packet.failed_sessions = failed_sessions;
|
||||
packet.successful_sessions = successful_sessions;
|
||||
packet.signal_quality = signal_quality;
|
||||
packet.ring_pending = ring_pending;
|
||||
packet.tx_session_pending = tx_session_pending;
|
||||
packet.rx_session_pending = rx_session_pending;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SATCOM_LINK_STATUS, (const char *)&packet, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a satcom_link_status message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_satcom_link_status_send_struct(mavlink_channel_t chan, const mavlink_satcom_link_status_t* satcom_link_status)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_satcom_link_status_send(chan, satcom_link_status->timestamp, satcom_link_status->last_heartbeat, satcom_link_status->failed_sessions, satcom_link_status->successful_sessions, satcom_link_status->signal_quality, satcom_link_status->ring_pending, satcom_link_status->tx_session_pending, satcom_link_status->rx_session_pending);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SATCOM_LINK_STATUS, (const char *)satcom_link_status, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This varient of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_satcom_link_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t timestamp, uint64_t last_heartbeat, uint16_t failed_sessions, uint16_t successful_sessions, uint8_t signal_quality, uint8_t ring_pending, uint8_t tx_session_pending, uint8_t rx_session_pending)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint64_t(buf, 0, timestamp);
|
||||
_mav_put_uint64_t(buf, 8, last_heartbeat);
|
||||
_mav_put_uint16_t(buf, 16, failed_sessions);
|
||||
_mav_put_uint16_t(buf, 18, successful_sessions);
|
||||
_mav_put_uint8_t(buf, 20, signal_quality);
|
||||
_mav_put_uint8_t(buf, 21, ring_pending);
|
||||
_mav_put_uint8_t(buf, 22, tx_session_pending);
|
||||
_mav_put_uint8_t(buf, 23, rx_session_pending);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SATCOM_LINK_STATUS, buf, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_CRC);
|
||||
#else
|
||||
mavlink_satcom_link_status_t *packet = (mavlink_satcom_link_status_t *)msgbuf;
|
||||
packet->timestamp = timestamp;
|
||||
packet->last_heartbeat = last_heartbeat;
|
||||
packet->failed_sessions = failed_sessions;
|
||||
packet->successful_sessions = successful_sessions;
|
||||
packet->signal_quality = signal_quality;
|
||||
packet->ring_pending = ring_pending;
|
||||
packet->tx_session_pending = tx_session_pending;
|
||||
packet->rx_session_pending = rx_session_pending;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SATCOM_LINK_STATUS, (const char *)packet, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE SATCOM_LINK_STATUS UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field timestamp from satcom_link_status message
|
||||
*
|
||||
* @return [us] Timestamp
|
||||
*/
|
||||
static inline uint64_t mavlink_msg_satcom_link_status_get_timestamp(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint64_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field last_heartbeat from satcom_link_status message
|
||||
*
|
||||
* @return [us] Timestamp of the last successful sbd session
|
||||
*/
|
||||
static inline uint64_t mavlink_msg_satcom_link_status_get_last_heartbeat(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint64_t(msg, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field failed_sessions from satcom_link_status message
|
||||
*
|
||||
* @return Number of failed sessions
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_satcom_link_status_get_failed_sessions(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 16);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field successful_sessions from satcom_link_status message
|
||||
*
|
||||
* @return Number of successful sessions
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_satcom_link_status_get_successful_sessions(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 18);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field signal_quality from satcom_link_status message
|
||||
*
|
||||
* @return Signal quality
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_satcom_link_status_get_signal_quality(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 20);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field ring_pending from satcom_link_status message
|
||||
*
|
||||
* @return Ring call pending
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_satcom_link_status_get_ring_pending(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 21);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field tx_session_pending from satcom_link_status message
|
||||
*
|
||||
* @return Transmission session pending
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_satcom_link_status_get_tx_session_pending(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 22);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field rx_session_pending from satcom_link_status message
|
||||
*
|
||||
* @return Receiving session pending
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_satcom_link_status_get_rx_session_pending(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 23);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a satcom_link_status message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param satcom_link_status C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_satcom_link_status_decode(const mavlink_message_t* msg, mavlink_satcom_link_status_t* satcom_link_status)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
satcom_link_status->timestamp = mavlink_msg_satcom_link_status_get_timestamp(msg);
|
||||
satcom_link_status->last_heartbeat = mavlink_msg_satcom_link_status_get_last_heartbeat(msg);
|
||||
satcom_link_status->failed_sessions = mavlink_msg_satcom_link_status_get_failed_sessions(msg);
|
||||
satcom_link_status->successful_sessions = mavlink_msg_satcom_link_status_get_successful_sessions(msg);
|
||||
satcom_link_status->signal_quality = mavlink_msg_satcom_link_status_get_signal_quality(msg);
|
||||
satcom_link_status->ring_pending = mavlink_msg_satcom_link_status_get_ring_pending(msg);
|
||||
satcom_link_status->tx_session_pending = mavlink_msg_satcom_link_status_get_tx_session_pending(msg);
|
||||
satcom_link_status->rx_session_pending = mavlink_msg_satcom_link_status_get_rx_session_pending(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN? msg->len : MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN;
|
||||
memset(satcom_link_status, 0, MAVLINK_MSG_ID_SATCOM_LINK_STATUS_LEN);
|
||||
memcpy(satcom_link_status, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -0,0 +1,313 @@
|
||||
#pragma once
|
||||
// MESSAGE SENSOR_AIRFLOW_ANGLES PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES 215
|
||||
|
||||
|
||||
typedef struct __mavlink_sensor_airflow_angles_t {
|
||||
uint64_t timestamp; /*< [us] Timestamp*/
|
||||
float angleofattack; /*< [deg] Angle of attack*/
|
||||
float sideslip; /*< [deg] Sideslip angle*/
|
||||
uint8_t angleofattack_valid; /*< Angle of attack measurement valid*/
|
||||
uint8_t sideslip_valid; /*< Sideslip angle measurement valid*/
|
||||
} mavlink_sensor_airflow_angles_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN 18
|
||||
#define MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN 18
|
||||
#define MAVLINK_MSG_ID_215_LEN 18
|
||||
#define MAVLINK_MSG_ID_215_MIN_LEN 18
|
||||
|
||||
#define MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_CRC 149
|
||||
#define MAVLINK_MSG_ID_215_CRC 149
|
||||
|
||||
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_SENSOR_AIRFLOW_ANGLES { \
|
||||
215, \
|
||||
"SENSOR_AIRFLOW_ANGLES", \
|
||||
5, \
|
||||
{ { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_sensor_airflow_angles_t, timestamp) }, \
|
||||
{ "angleofattack", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_sensor_airflow_angles_t, angleofattack) }, \
|
||||
{ "angleofattack_valid", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_sensor_airflow_angles_t, angleofattack_valid) }, \
|
||||
{ "sideslip", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_sensor_airflow_angles_t, sideslip) }, \
|
||||
{ "sideslip_valid", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_sensor_airflow_angles_t, sideslip_valid) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_SENSOR_AIRFLOW_ANGLES { \
|
||||
"SENSOR_AIRFLOW_ANGLES", \
|
||||
5, \
|
||||
{ { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_sensor_airflow_angles_t, timestamp) }, \
|
||||
{ "angleofattack", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_sensor_airflow_angles_t, angleofattack) }, \
|
||||
{ "angleofattack_valid", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_sensor_airflow_angles_t, angleofattack_valid) }, \
|
||||
{ "sideslip", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_sensor_airflow_angles_t, sideslip) }, \
|
||||
{ "sideslip_valid", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_sensor_airflow_angles_t, sideslip_valid) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a sensor_airflow_angles message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param timestamp [us] Timestamp
|
||||
* @param angleofattack [deg] Angle of attack
|
||||
* @param angleofattack_valid Angle of attack measurement valid
|
||||
* @param sideslip [deg] Sideslip angle
|
||||
* @param sideslip_valid Sideslip angle measurement valid
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_sensor_airflow_angles_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint64_t timestamp, float angleofattack, uint8_t angleofattack_valid, float sideslip, uint8_t sideslip_valid)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN];
|
||||
_mav_put_uint64_t(buf, 0, timestamp);
|
||||
_mav_put_float(buf, 8, angleofattack);
|
||||
_mav_put_float(buf, 12, sideslip);
|
||||
_mav_put_uint8_t(buf, 16, angleofattack_valid);
|
||||
_mav_put_uint8_t(buf, 17, sideslip_valid);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN);
|
||||
#else
|
||||
mavlink_sensor_airflow_angles_t packet;
|
||||
packet.timestamp = timestamp;
|
||||
packet.angleofattack = angleofattack;
|
||||
packet.sideslip = sideslip;
|
||||
packet.angleofattack_valid = angleofattack_valid;
|
||||
packet.sideslip_valid = sideslip_valid;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a sensor_airflow_angles message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param timestamp [us] Timestamp
|
||||
* @param angleofattack [deg] Angle of attack
|
||||
* @param angleofattack_valid Angle of attack measurement valid
|
||||
* @param sideslip [deg] Sideslip angle
|
||||
* @param sideslip_valid Sideslip angle measurement valid
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_sensor_airflow_angles_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint64_t timestamp,float angleofattack,uint8_t angleofattack_valid,float sideslip,uint8_t sideslip_valid)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN];
|
||||
_mav_put_uint64_t(buf, 0, timestamp);
|
||||
_mav_put_float(buf, 8, angleofattack);
|
||||
_mav_put_float(buf, 12, sideslip);
|
||||
_mav_put_uint8_t(buf, 16, angleofattack_valid);
|
||||
_mav_put_uint8_t(buf, 17, sideslip_valid);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN);
|
||||
#else
|
||||
mavlink_sensor_airflow_angles_t packet;
|
||||
packet.timestamp = timestamp;
|
||||
packet.angleofattack = angleofattack;
|
||||
packet.sideslip = sideslip;
|
||||
packet.angleofattack_valid = angleofattack_valid;
|
||||
packet.sideslip_valid = sideslip_valid;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a sensor_airflow_angles struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param sensor_airflow_angles C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_sensor_airflow_angles_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_sensor_airflow_angles_t* sensor_airflow_angles)
|
||||
{
|
||||
return mavlink_msg_sensor_airflow_angles_pack(system_id, component_id, msg, sensor_airflow_angles->timestamp, sensor_airflow_angles->angleofattack, sensor_airflow_angles->angleofattack_valid, sensor_airflow_angles->sideslip, sensor_airflow_angles->sideslip_valid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a sensor_airflow_angles struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param sensor_airflow_angles C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_sensor_airflow_angles_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_sensor_airflow_angles_t* sensor_airflow_angles)
|
||||
{
|
||||
return mavlink_msg_sensor_airflow_angles_pack_chan(system_id, component_id, chan, msg, sensor_airflow_angles->timestamp, sensor_airflow_angles->angleofattack, sensor_airflow_angles->angleofattack_valid, sensor_airflow_angles->sideslip, sensor_airflow_angles->sideslip_valid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a sensor_airflow_angles message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param timestamp [us] Timestamp
|
||||
* @param angleofattack [deg] Angle of attack
|
||||
* @param angleofattack_valid Angle of attack measurement valid
|
||||
* @param sideslip [deg] Sideslip angle
|
||||
* @param sideslip_valid Sideslip angle measurement valid
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_sensor_airflow_angles_send(mavlink_channel_t chan, uint64_t timestamp, float angleofattack, uint8_t angleofattack_valid, float sideslip, uint8_t sideslip_valid)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN];
|
||||
_mav_put_uint64_t(buf, 0, timestamp);
|
||||
_mav_put_float(buf, 8, angleofattack);
|
||||
_mav_put_float(buf, 12, sideslip);
|
||||
_mav_put_uint8_t(buf, 16, angleofattack_valid);
|
||||
_mav_put_uint8_t(buf, 17, sideslip_valid);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES, buf, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_CRC);
|
||||
#else
|
||||
mavlink_sensor_airflow_angles_t packet;
|
||||
packet.timestamp = timestamp;
|
||||
packet.angleofattack = angleofattack;
|
||||
packet.sideslip = sideslip;
|
||||
packet.angleofattack_valid = angleofattack_valid;
|
||||
packet.sideslip_valid = sideslip_valid;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES, (const char *)&packet, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a sensor_airflow_angles message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_sensor_airflow_angles_send_struct(mavlink_channel_t chan, const mavlink_sensor_airflow_angles_t* sensor_airflow_angles)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_sensor_airflow_angles_send(chan, sensor_airflow_angles->timestamp, sensor_airflow_angles->angleofattack, sensor_airflow_angles->angleofattack_valid, sensor_airflow_angles->sideslip, sensor_airflow_angles->sideslip_valid);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES, (const char *)sensor_airflow_angles, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This varient of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_sensor_airflow_angles_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t timestamp, float angleofattack, uint8_t angleofattack_valid, float sideslip, uint8_t sideslip_valid)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint64_t(buf, 0, timestamp);
|
||||
_mav_put_float(buf, 8, angleofattack);
|
||||
_mav_put_float(buf, 12, sideslip);
|
||||
_mav_put_uint8_t(buf, 16, angleofattack_valid);
|
||||
_mav_put_uint8_t(buf, 17, sideslip_valid);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES, buf, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_CRC);
|
||||
#else
|
||||
mavlink_sensor_airflow_angles_t *packet = (mavlink_sensor_airflow_angles_t *)msgbuf;
|
||||
packet->timestamp = timestamp;
|
||||
packet->angleofattack = angleofattack;
|
||||
packet->sideslip = sideslip;
|
||||
packet->angleofattack_valid = angleofattack_valid;
|
||||
packet->sideslip_valid = sideslip_valid;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES, (const char *)packet, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE SENSOR_AIRFLOW_ANGLES UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field timestamp from sensor_airflow_angles message
|
||||
*
|
||||
* @return [us] Timestamp
|
||||
*/
|
||||
static inline uint64_t mavlink_msg_sensor_airflow_angles_get_timestamp(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint64_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field angleofattack from sensor_airflow_angles message
|
||||
*
|
||||
* @return [deg] Angle of attack
|
||||
*/
|
||||
static inline float mavlink_msg_sensor_airflow_angles_get_angleofattack(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field angleofattack_valid from sensor_airflow_angles message
|
||||
*
|
||||
* @return Angle of attack measurement valid
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_sensor_airflow_angles_get_angleofattack_valid(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 16);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field sideslip from sensor_airflow_angles message
|
||||
*
|
||||
* @return [deg] Sideslip angle
|
||||
*/
|
||||
static inline float mavlink_msg_sensor_airflow_angles_get_sideslip(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 12);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field sideslip_valid from sensor_airflow_angles message
|
||||
*
|
||||
* @return Sideslip angle measurement valid
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_sensor_airflow_angles_get_sideslip_valid(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 17);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a sensor_airflow_angles message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param sensor_airflow_angles C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_sensor_airflow_angles_decode(const mavlink_message_t* msg, mavlink_sensor_airflow_angles_t* sensor_airflow_angles)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
sensor_airflow_angles->timestamp = mavlink_msg_sensor_airflow_angles_get_timestamp(msg);
|
||||
sensor_airflow_angles->angleofattack = mavlink_msg_sensor_airflow_angles_get_angleofattack(msg);
|
||||
sensor_airflow_angles->sideslip = mavlink_msg_sensor_airflow_angles_get_sideslip(msg);
|
||||
sensor_airflow_angles->angleofattack_valid = mavlink_msg_sensor_airflow_angles_get_angleofattack_valid(msg);
|
||||
sensor_airflow_angles->sideslip_valid = mavlink_msg_sensor_airflow_angles_get_sideslip_valid(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN? msg->len : MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN;
|
||||
memset(sensor_airflow_angles, 0, MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_LEN);
|
||||
memcpy(sensor_airflow_angles, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -990,6 +990,125 @@ static void mavlink_test_gsm_link_status(uint8_t system_id, uint8_t component_id
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
}
|
||||
|
||||
static void mavlink_test_satcom_link_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_SATCOM_LINK_STATUS >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_satcom_link_status_t packet_in = {
|
||||
93372036854775807ULL,93372036854776311ULL,18067,18171,65,132,199,10
|
||||
};
|
||||
mavlink_satcom_link_status_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.timestamp = packet_in.timestamp;
|
||||
packet1.last_heartbeat = packet_in.last_heartbeat;
|
||||
packet1.failed_sessions = packet_in.failed_sessions;
|
||||
packet1.successful_sessions = packet_in.successful_sessions;
|
||||
packet1.signal_quality = packet_in.signal_quality;
|
||||
packet1.ring_pending = packet_in.ring_pending;
|
||||
packet1.tx_session_pending = packet_in.tx_session_pending;
|
||||
packet1.rx_session_pending = packet_in.rx_session_pending;
|
||||
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_SATCOM_LINK_STATUS_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_satcom_link_status_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_satcom_link_status_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_satcom_link_status_pack(system_id, component_id, &msg , packet1.timestamp , packet1.last_heartbeat , packet1.failed_sessions , packet1.successful_sessions , packet1.signal_quality , packet1.ring_pending , packet1.tx_session_pending , packet1.rx_session_pending );
|
||||
mavlink_msg_satcom_link_status_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_satcom_link_status_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.timestamp , packet1.last_heartbeat , packet1.failed_sessions , packet1.successful_sessions , packet1.signal_quality , packet1.ring_pending , packet1.tx_session_pending , packet1.rx_session_pending );
|
||||
mavlink_msg_satcom_link_status_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_satcom_link_status_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_satcom_link_status_send(MAVLINK_COMM_1 , packet1.timestamp , packet1.last_heartbeat , packet1.failed_sessions , packet1.successful_sessions , packet1.signal_quality , packet1.ring_pending , packet1.tx_session_pending , packet1.rx_session_pending );
|
||||
mavlink_msg_satcom_link_status_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
}
|
||||
|
||||
static void mavlink_test_sensor_airflow_angles(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_sensor_airflow_angles_t packet_in = {
|
||||
93372036854775807ULL,73.0,101.0,53,120
|
||||
};
|
||||
mavlink_sensor_airflow_angles_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.timestamp = packet_in.timestamp;
|
||||
packet1.angleofattack = packet_in.angleofattack;
|
||||
packet1.sideslip = packet_in.sideslip;
|
||||
packet1.angleofattack_valid = packet_in.angleofattack_valid;
|
||||
packet1.sideslip_valid = packet_in.sideslip_valid;
|
||||
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_SENSOR_AIRFLOW_ANGLES_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_sensor_airflow_angles_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_sensor_airflow_angles_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_sensor_airflow_angles_pack(system_id, component_id, &msg , packet1.timestamp , packet1.angleofattack , packet1.angleofattack_valid , packet1.sideslip , packet1.sideslip_valid );
|
||||
mavlink_msg_sensor_airflow_angles_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_sensor_airflow_angles_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.timestamp , packet1.angleofattack , packet1.angleofattack_valid , packet1.sideslip , packet1.sideslip_valid );
|
||||
mavlink_msg_sensor_airflow_angles_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_sensor_airflow_angles_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_sensor_airflow_angles_send(MAVLINK_COMM_1 , packet1.timestamp , packet1.angleofattack , packet1.angleofattack_valid , packet1.sideslip , packet1.sideslip_valid );
|
||||
mavlink_msg_sensor_airflow_angles_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
}
|
||||
|
||||
static void mavlink_test_ASLUAV(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
mavlink_test_command_int_stamped(system_id, component_id, last_msg);
|
||||
@@ -1007,6 +1126,8 @@ static void mavlink_test_ASLUAV(uint8_t system_id, uint8_t component_id, mavlink
|
||||
mavlink_test_sensorpod_status(system_id, component_id, last_msg);
|
||||
mavlink_test_sens_power_board(system_id, component_id, last_msg);
|
||||
mavlink_test_gsm_link_status(system_id, component_id, last_msg);
|
||||
mavlink_test_satcom_link_status(system_id, component_id, last_msg);
|
||||
mavlink_test_sensor_airflow_angles(system_id, component_id, last_msg);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+5
-5
@@ -24,7 +24,7 @@ extern "C" {
|
||||
|
||||
#ifndef HAVE_CRC_ACCUMULATE
|
||||
/**
|
||||
* @brief Accumulate the X.25 CRC by adding one char at a time.
|
||||
* @brief Accumulate the CRC16_MCRF4XX checksum by adding one char at a time.
|
||||
*
|
||||
* The checksum function adds the hash of one char at a time to the
|
||||
* 16 bit checksum (uint16_t).
|
||||
@@ -45,9 +45,9 @@ static inline void crc_accumulate(uint8_t data, uint16_t *crcAccum)
|
||||
|
||||
|
||||
/**
|
||||
* @brief Initiliaze the buffer for the X.25 CRC
|
||||
* @brief Initiliaze the buffer for the MCRF4XX CRC16
|
||||
*
|
||||
* @param crcAccum the 16 bit X.25 CRC
|
||||
* @param crcAccum the 16 bit MCRF4XX CRC16
|
||||
*/
|
||||
static inline void crc_init(uint16_t* crcAccum)
|
||||
{
|
||||
@@ -56,7 +56,7 @@ static inline void crc_init(uint16_t* crcAccum)
|
||||
|
||||
|
||||
/**
|
||||
* @brief Calculates the X.25 checksum on a byte buffer
|
||||
* @brief Calculates the CRC16_MCRF4XX checksum on a byte buffer
|
||||
*
|
||||
* @param pBuffer buffer containing the byte array to hash
|
||||
* @param length length of the byte array
|
||||
@@ -74,7 +74,7 @@ static inline uint16_t crc_calculate(const uint8_t* pBuffer, uint16_t length)
|
||||
|
||||
|
||||
/**
|
||||
* @brief Accumulate the X.25 CRC by adding an array of bytes
|
||||
* @brief Accumulate the MCRF4XX CRC16 by adding an array of bytes
|
||||
*
|
||||
* The checksum function adds the hash of one char at a time to the
|
||||
* 16 bit checksum (uint16_t).
|
||||
|
||||
+3
-7
File diff suppressed because one or more lines are too long
@@ -7,8 +7,8 @@
|
||||
typedef struct __mavlink_efi_status_t {
|
||||
float ecu_index; /*< ECU index*/
|
||||
float rpm; /*< RPM*/
|
||||
float fuel_consumed; /*< [g] Fuel consumed*/
|
||||
float fuel_flow; /*< [g/min] Fuel flow rate*/
|
||||
float fuel_consumed; /*< [cm^3] Fuel consumed*/
|
||||
float fuel_flow; /*< [cm^3/min] Fuel flow rate*/
|
||||
float engine_load; /*< [%] Engine load*/
|
||||
float throttle_position; /*< [%] Throttle position*/
|
||||
float spark_dwell_time; /*< [ms] Spark dwell time*/
|
||||
@@ -92,8 +92,8 @@ typedef struct __mavlink_efi_status_t {
|
||||
* @param health EFI health status
|
||||
* @param ecu_index ECU index
|
||||
* @param rpm RPM
|
||||
* @param fuel_consumed [g] Fuel consumed
|
||||
* @param fuel_flow [g/min] Fuel flow rate
|
||||
* @param fuel_consumed [cm^3] Fuel consumed
|
||||
* @param fuel_flow [cm^3/min] Fuel flow rate
|
||||
* @param engine_load [%] Engine load
|
||||
* @param throttle_position [%] Throttle position
|
||||
* @param spark_dwell_time [ms] Spark dwell time
|
||||
@@ -168,8 +168,8 @@ static inline uint16_t mavlink_msg_efi_status_pack(uint8_t system_id, uint8_t co
|
||||
* @param health EFI health status
|
||||
* @param ecu_index ECU index
|
||||
* @param rpm RPM
|
||||
* @param fuel_consumed [g] Fuel consumed
|
||||
* @param fuel_flow [g/min] Fuel flow rate
|
||||
* @param fuel_consumed [cm^3] Fuel consumed
|
||||
* @param fuel_flow [cm^3/min] Fuel flow rate
|
||||
* @param engine_load [%] Engine load
|
||||
* @param throttle_position [%] Throttle position
|
||||
* @param spark_dwell_time [ms] Spark dwell time
|
||||
@@ -270,8 +270,8 @@ static inline uint16_t mavlink_msg_efi_status_encode_chan(uint8_t system_id, uin
|
||||
* @param health EFI health status
|
||||
* @param ecu_index ECU index
|
||||
* @param rpm RPM
|
||||
* @param fuel_consumed [g] Fuel consumed
|
||||
* @param fuel_flow [g/min] Fuel flow rate
|
||||
* @param fuel_consumed [cm^3] Fuel consumed
|
||||
* @param fuel_flow [cm^3/min] Fuel flow rate
|
||||
* @param engine_load [%] Engine load
|
||||
* @param throttle_position [%] Throttle position
|
||||
* @param spark_dwell_time [ms] Spark dwell time
|
||||
@@ -442,7 +442,7 @@ static inline float mavlink_msg_efi_status_get_rpm(const mavlink_message_t* msg)
|
||||
/**
|
||||
* @brief Get field fuel_consumed from efi_status message
|
||||
*
|
||||
* @return [g] Fuel consumed
|
||||
* @return [cm^3] Fuel consumed
|
||||
*/
|
||||
static inline float mavlink_msg_efi_status_get_fuel_consumed(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -452,7 +452,7 @@ static inline float mavlink_msg_efi_status_get_fuel_consumed(const mavlink_messa
|
||||
/**
|
||||
* @brief Get field fuel_flow from efi_status message
|
||||
*
|
||||
* @return [g/min] Fuel flow rate
|
||||
* @return [cm^3/min] Fuel flow rate
|
||||
*/
|
||||
static inline float mavlink_msg_efi_status_get_fuel_flow(const mavlink_message_t* msg)
|
||||
{
|
||||
|
||||
@@ -1,281 +0,0 @@
|
||||
#pragma once
|
||||
// MESSAGE PARAM_EXT_ACK_TRIMMED PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED 327
|
||||
|
||||
|
||||
typedef struct __mavlink_param_ext_ack_trimmed_t {
|
||||
uint8_t param_result; /*< Result code.*/
|
||||
uint8_t param_type; /*< Parameter type.*/
|
||||
char param_id[16]; /*< Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string*/
|
||||
char param_value[128]; /*< Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise, zeros get trimmed)*/
|
||||
} mavlink_param_ext_ack_trimmed_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN 146
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN 146
|
||||
#define MAVLINK_MSG_ID_327_LEN 146
|
||||
#define MAVLINK_MSG_ID_327_MIN_LEN 146
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_CRC 129
|
||||
#define MAVLINK_MSG_ID_327_CRC 129
|
||||
|
||||
#define MAVLINK_MSG_PARAM_EXT_ACK_TRIMMED_FIELD_PARAM_ID_LEN 16
|
||||
#define MAVLINK_MSG_PARAM_EXT_ACK_TRIMMED_FIELD_PARAM_VALUE_LEN 128
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_ACK_TRIMMED { \
|
||||
327, \
|
||||
"PARAM_EXT_ACK_TRIMMED", \
|
||||
4, \
|
||||
{ { "param_result", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_param_ext_ack_trimmed_t, param_result) }, \
|
||||
{ "param_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_param_ext_ack_trimmed_t, param_type) }, \
|
||||
{ "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 2, offsetof(mavlink_param_ext_ack_trimmed_t, param_id) }, \
|
||||
{ "param_value", NULL, MAVLINK_TYPE_CHAR, 128, 18, offsetof(mavlink_param_ext_ack_trimmed_t, param_value) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_ACK_TRIMMED { \
|
||||
"PARAM_EXT_ACK_TRIMMED", \
|
||||
4, \
|
||||
{ { "param_result", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_param_ext_ack_trimmed_t, param_result) }, \
|
||||
{ "param_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_param_ext_ack_trimmed_t, param_type) }, \
|
||||
{ "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 2, offsetof(mavlink_param_ext_ack_trimmed_t, param_id) }, \
|
||||
{ "param_value", NULL, MAVLINK_TYPE_CHAR, 128, 18, offsetof(mavlink_param_ext_ack_trimmed_t, param_value) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a param_ext_ack_trimmed message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param param_result Result code.
|
||||
* @param param_type Parameter type.
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_value Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise, zeros get trimmed)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_ack_trimmed_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t param_result, uint8_t param_type, const char *param_id, const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN];
|
||||
_mav_put_uint8_t(buf, 0, param_result);
|
||||
_mav_put_uint8_t(buf, 1, param_type);
|
||||
_mav_put_char_array(buf, 2, param_id, 16);
|
||||
_mav_put_char_array(buf, 18, param_value, 128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN);
|
||||
#else
|
||||
mavlink_param_ext_ack_trimmed_t packet;
|
||||
packet.param_result = param_result;
|
||||
packet.param_type = param_type;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet.param_value, param_value, sizeof(char)*128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a param_ext_ack_trimmed message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param param_result Result code.
|
||||
* @param param_type Parameter type.
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_value Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise, zeros get trimmed)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_ack_trimmed_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t param_result,uint8_t param_type,const char *param_id,const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN];
|
||||
_mav_put_uint8_t(buf, 0, param_result);
|
||||
_mav_put_uint8_t(buf, 1, param_type);
|
||||
_mav_put_char_array(buf, 2, param_id, 16);
|
||||
_mav_put_char_array(buf, 18, param_value, 128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN);
|
||||
#else
|
||||
mavlink_param_ext_ack_trimmed_t packet;
|
||||
packet.param_result = param_result;
|
||||
packet.param_type = param_type;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet.param_value, param_value, sizeof(char)*128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a param_ext_ack_trimmed struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param param_ext_ack_trimmed C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_ack_trimmed_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_param_ext_ack_trimmed_t* param_ext_ack_trimmed)
|
||||
{
|
||||
return mavlink_msg_param_ext_ack_trimmed_pack(system_id, component_id, msg, param_ext_ack_trimmed->param_result, param_ext_ack_trimmed->param_type, param_ext_ack_trimmed->param_id, param_ext_ack_trimmed->param_value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a param_ext_ack_trimmed struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param param_ext_ack_trimmed C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_ack_trimmed_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_param_ext_ack_trimmed_t* param_ext_ack_trimmed)
|
||||
{
|
||||
return mavlink_msg_param_ext_ack_trimmed_pack_chan(system_id, component_id, chan, msg, param_ext_ack_trimmed->param_result, param_ext_ack_trimmed->param_type, param_ext_ack_trimmed->param_id, param_ext_ack_trimmed->param_value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a param_ext_ack_trimmed message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param param_result Result code.
|
||||
* @param param_type Parameter type.
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_value Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise, zeros get trimmed)
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_param_ext_ack_trimmed_send(mavlink_channel_t chan, uint8_t param_result, uint8_t param_type, const char *param_id, const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN];
|
||||
_mav_put_uint8_t(buf, 0, param_result);
|
||||
_mav_put_uint8_t(buf, 1, param_type);
|
||||
_mav_put_char_array(buf, 2, param_id, 16);
|
||||
_mav_put_char_array(buf, 18, param_value, 128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED, buf, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_CRC);
|
||||
#else
|
||||
mavlink_param_ext_ack_trimmed_t packet;
|
||||
packet.param_result = param_result;
|
||||
packet.param_type = param_type;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet.param_value, param_value, sizeof(char)*128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED, (const char *)&packet, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a param_ext_ack_trimmed message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_ack_trimmed_send_struct(mavlink_channel_t chan, const mavlink_param_ext_ack_trimmed_t* param_ext_ack_trimmed)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_param_ext_ack_trimmed_send(chan, param_ext_ack_trimmed->param_result, param_ext_ack_trimmed->param_type, param_ext_ack_trimmed->param_id, param_ext_ack_trimmed->param_value);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED, (const char *)param_ext_ack_trimmed, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This varient of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_ack_trimmed_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t param_result, uint8_t param_type, const char *param_id, const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint8_t(buf, 0, param_result);
|
||||
_mav_put_uint8_t(buf, 1, param_type);
|
||||
_mav_put_char_array(buf, 2, param_id, 16);
|
||||
_mav_put_char_array(buf, 18, param_value, 128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED, buf, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_CRC);
|
||||
#else
|
||||
mavlink_param_ext_ack_trimmed_t *packet = (mavlink_param_ext_ack_trimmed_t *)msgbuf;
|
||||
packet->param_result = param_result;
|
||||
packet->param_type = param_type;
|
||||
mav_array_memcpy(packet->param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet->param_value, param_value, sizeof(char)*128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED, (const char *)packet, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE PARAM_EXT_ACK_TRIMMED UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field param_result from param_ext_ack_trimmed message
|
||||
*
|
||||
* @return Result code.
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_param_ext_ack_trimmed_get_param_result(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_type from param_ext_ack_trimmed message
|
||||
*
|
||||
* @return Parameter type.
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_param_ext_ack_trimmed_get_param_type(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_id from param_ext_ack_trimmed message
|
||||
*
|
||||
* @return Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_ack_trimmed_get_param_id(const mavlink_message_t* msg, char *param_id)
|
||||
{
|
||||
return _MAV_RETURN_char_array(msg, param_id, 16, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_value from param_ext_ack_trimmed message
|
||||
*
|
||||
* @return Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise, zeros get trimmed)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_ack_trimmed_get_param_value(const mavlink_message_t* msg, char *param_value)
|
||||
{
|
||||
return _MAV_RETURN_char_array(msg, param_value, 128, 18);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a param_ext_ack_trimmed message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param param_ext_ack_trimmed C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_ack_trimmed_decode(const mavlink_message_t* msg, mavlink_param_ext_ack_trimmed_t* param_ext_ack_trimmed)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
param_ext_ack_trimmed->param_result = mavlink_msg_param_ext_ack_trimmed_get_param_result(msg);
|
||||
param_ext_ack_trimmed->param_type = mavlink_msg_param_ext_ack_trimmed_get_param_type(msg);
|
||||
mavlink_msg_param_ext_ack_trimmed_get_param_id(msg, param_ext_ack_trimmed->param_id);
|
||||
mavlink_msg_param_ext_ack_trimmed_get_param_value(msg, param_ext_ack_trimmed->param_value);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN? msg->len : MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN;
|
||||
memset(param_ext_ack_trimmed, 0, MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_LEN);
|
||||
memcpy(param_ext_ack_trimmed, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -7,12 +7,11 @@
|
||||
typedef struct __mavlink_param_ext_request_list_t {
|
||||
uint8_t target_system; /*< System ID*/
|
||||
uint8_t target_component; /*< Component ID*/
|
||||
uint8_t trimmed; /*< Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).*/
|
||||
} mavlink_param_ext_request_list_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN 3
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN 2
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_MIN_LEN 2
|
||||
#define MAVLINK_MSG_ID_321_LEN 3
|
||||
#define MAVLINK_MSG_ID_321_LEN 2
|
||||
#define MAVLINK_MSG_ID_321_MIN_LEN 2
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_CRC 88
|
||||
@@ -24,19 +23,17 @@ typedef struct __mavlink_param_ext_request_list_t {
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_REQUEST_LIST { \
|
||||
321, \
|
||||
"PARAM_EXT_REQUEST_LIST", \
|
||||
3, \
|
||||
2, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_param_ext_request_list_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_param_ext_request_list_t, target_component) }, \
|
||||
{ "trimmed", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_param_ext_request_list_t, trimmed) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_REQUEST_LIST { \
|
||||
"PARAM_EXT_REQUEST_LIST", \
|
||||
3, \
|
||||
2, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_param_ext_request_list_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_param_ext_request_list_t, target_component) }, \
|
||||
{ "trimmed", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_param_ext_request_list_t, trimmed) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
@@ -49,24 +46,21 @@ typedef struct __mavlink_param_ext_request_list_t {
|
||||
*
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param trimmed Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_request_list_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target_system, uint8_t target_component, uint8_t trimmed)
|
||||
uint8_t target_system, uint8_t target_component)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN];
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, trimmed);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN);
|
||||
#else
|
||||
mavlink_param_ext_request_list_t packet;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.trimmed = trimmed;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN);
|
||||
#endif
|
||||
@@ -83,25 +77,22 @@ static inline uint16_t mavlink_msg_param_ext_request_list_pack(uint8_t system_id
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param trimmed Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_request_list_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t target_system,uint8_t target_component,uint8_t trimmed)
|
||||
uint8_t target_system,uint8_t target_component)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN];
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, trimmed);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN);
|
||||
#else
|
||||
mavlink_param_ext_request_list_t packet;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.trimmed = trimmed;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN);
|
||||
#endif
|
||||
@@ -120,7 +111,7 @@ static inline uint16_t mavlink_msg_param_ext_request_list_pack_chan(uint8_t syst
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_request_list_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_param_ext_request_list_t* param_ext_request_list)
|
||||
{
|
||||
return mavlink_msg_param_ext_request_list_pack(system_id, component_id, msg, param_ext_request_list->target_system, param_ext_request_list->target_component, param_ext_request_list->trimmed);
|
||||
return mavlink_msg_param_ext_request_list_pack(system_id, component_id, msg, param_ext_request_list->target_system, param_ext_request_list->target_component);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -134,7 +125,7 @@ static inline uint16_t mavlink_msg_param_ext_request_list_encode(uint8_t system_
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_request_list_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_param_ext_request_list_t* param_ext_request_list)
|
||||
{
|
||||
return mavlink_msg_param_ext_request_list_pack_chan(system_id, component_id, chan, msg, param_ext_request_list->target_system, param_ext_request_list->target_component, param_ext_request_list->trimmed);
|
||||
return mavlink_msg_param_ext_request_list_pack_chan(system_id, component_id, chan, msg, param_ext_request_list->target_system, param_ext_request_list->target_component);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -143,24 +134,21 @@ static inline uint16_t mavlink_msg_param_ext_request_list_encode_chan(uint8_t sy
|
||||
*
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param trimmed Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_param_ext_request_list_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t trimmed)
|
||||
static inline void mavlink_msg_param_ext_request_list_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN];
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, trimmed);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST, buf, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_CRC);
|
||||
#else
|
||||
mavlink_param_ext_request_list_t packet;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.trimmed = trimmed;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST, (const char *)&packet, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_CRC);
|
||||
#endif
|
||||
@@ -174,7 +162,7 @@ static inline void mavlink_msg_param_ext_request_list_send(mavlink_channel_t cha
|
||||
static inline void mavlink_msg_param_ext_request_list_send_struct(mavlink_channel_t chan, const mavlink_param_ext_request_list_t* param_ext_request_list)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_param_ext_request_list_send(chan, param_ext_request_list->target_system, param_ext_request_list->target_component, param_ext_request_list->trimmed);
|
||||
mavlink_msg_param_ext_request_list_send(chan, param_ext_request_list->target_system, param_ext_request_list->target_component);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST, (const char *)param_ext_request_list, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_CRC);
|
||||
#endif
|
||||
@@ -188,20 +176,18 @@ static inline void mavlink_msg_param_ext_request_list_send_struct(mavlink_channe
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_request_list_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t trimmed)
|
||||
static inline void mavlink_msg_param_ext_request_list_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, trimmed);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST, buf, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_CRC);
|
||||
#else
|
||||
mavlink_param_ext_request_list_t *packet = (mavlink_param_ext_request_list_t *)msgbuf;
|
||||
packet->target_system = target_system;
|
||||
packet->target_component = target_component;
|
||||
packet->trimmed = trimmed;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST, (const char *)packet, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_CRC);
|
||||
#endif
|
||||
@@ -233,16 +219,6 @@ static inline uint8_t mavlink_msg_param_ext_request_list_get_target_component(co
|
||||
return _MAV_RETURN_uint8_t(msg, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field trimmed from param_ext_request_list message
|
||||
*
|
||||
* @return Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_param_ext_request_list_get_trimmed(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a param_ext_request_list message into a struct
|
||||
*
|
||||
@@ -254,7 +230,6 @@ static inline void mavlink_msg_param_ext_request_list_decode(const mavlink_messa
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
param_ext_request_list->target_system = mavlink_msg_param_ext_request_list_get_target_system(msg);
|
||||
param_ext_request_list->target_component = mavlink_msg_param_ext_request_list_get_target_component(msg);
|
||||
param_ext_request_list->trimmed = mavlink_msg_param_ext_request_list_get_trimmed(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN? msg->len : MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN;
|
||||
memset(param_ext_request_list, 0, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_LIST_LEN);
|
||||
|
||||
@@ -9,12 +9,11 @@ typedef struct __mavlink_param_ext_request_read_t {
|
||||
uint8_t target_system; /*< System ID*/
|
||||
uint8_t target_component; /*< Component ID*/
|
||||
char param_id[16]; /*< Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string*/
|
||||
uint8_t trimmed; /*< Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).*/
|
||||
} mavlink_param_ext_request_read_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN 21
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN 20
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_MIN_LEN 20
|
||||
#define MAVLINK_MSG_ID_320_LEN 21
|
||||
#define MAVLINK_MSG_ID_320_LEN 20
|
||||
#define MAVLINK_MSG_ID_320_MIN_LEN 20
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_CRC 243
|
||||
@@ -26,23 +25,21 @@ typedef struct __mavlink_param_ext_request_read_t {
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_REQUEST_READ { \
|
||||
320, \
|
||||
"PARAM_EXT_REQUEST_READ", \
|
||||
5, \
|
||||
4, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_param_ext_request_read_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_param_ext_request_read_t, target_component) }, \
|
||||
{ "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 4, offsetof(mavlink_param_ext_request_read_t, param_id) }, \
|
||||
{ "param_index", NULL, MAVLINK_TYPE_INT16_T, 0, 0, offsetof(mavlink_param_ext_request_read_t, param_index) }, \
|
||||
{ "trimmed", NULL, MAVLINK_TYPE_UINT8_T, 0, 20, offsetof(mavlink_param_ext_request_read_t, trimmed) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_REQUEST_READ { \
|
||||
"PARAM_EXT_REQUEST_READ", \
|
||||
5, \
|
||||
4, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_param_ext_request_read_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_param_ext_request_read_t, target_component) }, \
|
||||
{ "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 4, offsetof(mavlink_param_ext_request_read_t, param_id) }, \
|
||||
{ "param_index", NULL, MAVLINK_TYPE_INT16_T, 0, 0, offsetof(mavlink_param_ext_request_read_t, param_index) }, \
|
||||
{ "trimmed", NULL, MAVLINK_TYPE_UINT8_T, 0, 20, offsetof(mavlink_param_ext_request_read_t, trimmed) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
@@ -57,18 +54,16 @@ typedef struct __mavlink_param_ext_request_read_t {
|
||||
* @param target_component Component ID
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_index Parameter index. Set to -1 to use the Parameter ID field as identifier (else param_id will be ignored)
|
||||
* @param trimmed Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_request_read_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target_system, uint8_t target_component, const char *param_id, int16_t param_index, uint8_t trimmed)
|
||||
uint8_t target_system, uint8_t target_component, const char *param_id, int16_t param_index)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN];
|
||||
_mav_put_int16_t(buf, 0, param_index);
|
||||
_mav_put_uint8_t(buf, 2, target_system);
|
||||
_mav_put_uint8_t(buf, 3, target_component);
|
||||
_mav_put_uint8_t(buf, 20, trimmed);
|
||||
_mav_put_char_array(buf, 4, param_id, 16);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN);
|
||||
#else
|
||||
@@ -76,7 +71,6 @@ static inline uint16_t mavlink_msg_param_ext_request_read_pack(uint8_t system_id
|
||||
packet.param_index = param_index;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.trimmed = trimmed;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN);
|
||||
#endif
|
||||
@@ -95,19 +89,17 @@ static inline uint16_t mavlink_msg_param_ext_request_read_pack(uint8_t system_id
|
||||
* @param target_component Component ID
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_index Parameter index. Set to -1 to use the Parameter ID field as identifier (else param_id will be ignored)
|
||||
* @param trimmed Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_request_read_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t target_system,uint8_t target_component,const char *param_id,int16_t param_index,uint8_t trimmed)
|
||||
uint8_t target_system,uint8_t target_component,const char *param_id,int16_t param_index)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN];
|
||||
_mav_put_int16_t(buf, 0, param_index);
|
||||
_mav_put_uint8_t(buf, 2, target_system);
|
||||
_mav_put_uint8_t(buf, 3, target_component);
|
||||
_mav_put_uint8_t(buf, 20, trimmed);
|
||||
_mav_put_char_array(buf, 4, param_id, 16);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN);
|
||||
#else
|
||||
@@ -115,7 +107,6 @@ static inline uint16_t mavlink_msg_param_ext_request_read_pack_chan(uint8_t syst
|
||||
packet.param_index = param_index;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.trimmed = trimmed;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN);
|
||||
#endif
|
||||
@@ -134,7 +125,7 @@ static inline uint16_t mavlink_msg_param_ext_request_read_pack_chan(uint8_t syst
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_request_read_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_param_ext_request_read_t* param_ext_request_read)
|
||||
{
|
||||
return mavlink_msg_param_ext_request_read_pack(system_id, component_id, msg, param_ext_request_read->target_system, param_ext_request_read->target_component, param_ext_request_read->param_id, param_ext_request_read->param_index, param_ext_request_read->trimmed);
|
||||
return mavlink_msg_param_ext_request_read_pack(system_id, component_id, msg, param_ext_request_read->target_system, param_ext_request_read->target_component, param_ext_request_read->param_id, param_ext_request_read->param_index);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -148,7 +139,7 @@ static inline uint16_t mavlink_msg_param_ext_request_read_encode(uint8_t system_
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_request_read_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_param_ext_request_read_t* param_ext_request_read)
|
||||
{
|
||||
return mavlink_msg_param_ext_request_read_pack_chan(system_id, component_id, chan, msg, param_ext_request_read->target_system, param_ext_request_read->target_component, param_ext_request_read->param_id, param_ext_request_read->param_index, param_ext_request_read->trimmed);
|
||||
return mavlink_msg_param_ext_request_read_pack_chan(system_id, component_id, chan, msg, param_ext_request_read->target_system, param_ext_request_read->target_component, param_ext_request_read->param_id, param_ext_request_read->param_index);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -159,18 +150,16 @@ static inline uint16_t mavlink_msg_param_ext_request_read_encode_chan(uint8_t sy
|
||||
* @param target_component Component ID
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_index Parameter index. Set to -1 to use the Parameter ID field as identifier (else param_id will be ignored)
|
||||
* @param trimmed Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_param_ext_request_read_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, const char *param_id, int16_t param_index, uint8_t trimmed)
|
||||
static inline void mavlink_msg_param_ext_request_read_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, const char *param_id, int16_t param_index)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN];
|
||||
_mav_put_int16_t(buf, 0, param_index);
|
||||
_mav_put_uint8_t(buf, 2, target_system);
|
||||
_mav_put_uint8_t(buf, 3, target_component);
|
||||
_mav_put_uint8_t(buf, 20, trimmed);
|
||||
_mav_put_char_array(buf, 4, param_id, 16);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ, buf, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_CRC);
|
||||
#else
|
||||
@@ -178,7 +167,6 @@ static inline void mavlink_msg_param_ext_request_read_send(mavlink_channel_t cha
|
||||
packet.param_index = param_index;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.trimmed = trimmed;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ, (const char *)&packet, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_CRC);
|
||||
#endif
|
||||
@@ -192,7 +180,7 @@ static inline void mavlink_msg_param_ext_request_read_send(mavlink_channel_t cha
|
||||
static inline void mavlink_msg_param_ext_request_read_send_struct(mavlink_channel_t chan, const mavlink_param_ext_request_read_t* param_ext_request_read)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_param_ext_request_read_send(chan, param_ext_request_read->target_system, param_ext_request_read->target_component, param_ext_request_read->param_id, param_ext_request_read->param_index, param_ext_request_read->trimmed);
|
||||
mavlink_msg_param_ext_request_read_send(chan, param_ext_request_read->target_system, param_ext_request_read->target_component, param_ext_request_read->param_id, param_ext_request_read->param_index);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ, (const char *)param_ext_request_read, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_CRC);
|
||||
#endif
|
||||
@@ -206,14 +194,13 @@ static inline void mavlink_msg_param_ext_request_read_send_struct(mavlink_channe
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_request_read_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, const char *param_id, int16_t param_index, uint8_t trimmed)
|
||||
static inline void mavlink_msg_param_ext_request_read_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, const char *param_id, int16_t param_index)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_int16_t(buf, 0, param_index);
|
||||
_mav_put_uint8_t(buf, 2, target_system);
|
||||
_mav_put_uint8_t(buf, 3, target_component);
|
||||
_mav_put_uint8_t(buf, 20, trimmed);
|
||||
_mav_put_char_array(buf, 4, param_id, 16);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ, buf, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_CRC);
|
||||
#else
|
||||
@@ -221,7 +208,6 @@ static inline void mavlink_msg_param_ext_request_read_send_buf(mavlink_message_t
|
||||
packet->param_index = param_index;
|
||||
packet->target_system = target_system;
|
||||
packet->target_component = target_component;
|
||||
packet->trimmed = trimmed;
|
||||
mav_array_memcpy(packet->param_id, param_id, sizeof(char)*16);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ, (const char *)packet, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_CRC);
|
||||
#endif
|
||||
@@ -273,16 +259,6 @@ static inline int16_t mavlink_msg_param_ext_request_read_get_param_index(const m
|
||||
return _MAV_RETURN_int16_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field trimmed from param_ext_request_read message
|
||||
*
|
||||
* @return Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_param_ext_request_read_get_trimmed(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 20);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a param_ext_request_read message into a struct
|
||||
*
|
||||
@@ -296,7 +272,6 @@ static inline void mavlink_msg_param_ext_request_read_decode(const mavlink_messa
|
||||
param_ext_request_read->target_system = mavlink_msg_param_ext_request_read_get_target_system(msg);
|
||||
param_ext_request_read->target_component = mavlink_msg_param_ext_request_read_get_target_component(msg);
|
||||
mavlink_msg_param_ext_request_read_get_param_id(msg, param_ext_request_read->param_id);
|
||||
param_ext_request_read->trimmed = mavlink_msg_param_ext_request_read_get_trimmed(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN? msg->len : MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN;
|
||||
memset(param_ext_request_read, 0, MAVLINK_MSG_ID_PARAM_EXT_REQUEST_READ_LEN);
|
||||
|
||||
@@ -1,306 +0,0 @@
|
||||
#pragma once
|
||||
// MESSAGE PARAM_EXT_SET_TRIMMED PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED 326
|
||||
|
||||
|
||||
typedef struct __mavlink_param_ext_set_trimmed_t {
|
||||
uint8_t target_system; /*< System ID*/
|
||||
uint8_t target_component; /*< Component ID*/
|
||||
uint8_t param_type; /*< Parameter type.*/
|
||||
char param_id[16]; /*< Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string*/
|
||||
char param_value[128]; /*< Parameter value (zeros get trimmed)*/
|
||||
} mavlink_param_ext_set_trimmed_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN 147
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN 147
|
||||
#define MAVLINK_MSG_ID_326_LEN 147
|
||||
#define MAVLINK_MSG_ID_326_MIN_LEN 147
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_CRC 120
|
||||
#define MAVLINK_MSG_ID_326_CRC 120
|
||||
|
||||
#define MAVLINK_MSG_PARAM_EXT_SET_TRIMMED_FIELD_PARAM_ID_LEN 16
|
||||
#define MAVLINK_MSG_PARAM_EXT_SET_TRIMMED_FIELD_PARAM_VALUE_LEN 128
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_SET_TRIMMED { \
|
||||
326, \
|
||||
"PARAM_EXT_SET_TRIMMED", \
|
||||
5, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_param_ext_set_trimmed_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_param_ext_set_trimmed_t, target_component) }, \
|
||||
{ "param_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_param_ext_set_trimmed_t, param_type) }, \
|
||||
{ "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 3, offsetof(mavlink_param_ext_set_trimmed_t, param_id) }, \
|
||||
{ "param_value", NULL, MAVLINK_TYPE_CHAR, 128, 19, offsetof(mavlink_param_ext_set_trimmed_t, param_value) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_SET_TRIMMED { \
|
||||
"PARAM_EXT_SET_TRIMMED", \
|
||||
5, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_param_ext_set_trimmed_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_param_ext_set_trimmed_t, target_component) }, \
|
||||
{ "param_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_param_ext_set_trimmed_t, param_type) }, \
|
||||
{ "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 3, offsetof(mavlink_param_ext_set_trimmed_t, param_id) }, \
|
||||
{ "param_value", NULL, MAVLINK_TYPE_CHAR, 128, 19, offsetof(mavlink_param_ext_set_trimmed_t, param_value) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a param_ext_set_trimmed message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param param_type Parameter type.
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_value Parameter value (zeros get trimmed)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_set_trimmed_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target_system, uint8_t target_component, uint8_t param_type, const char *param_id, const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN];
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, param_type);
|
||||
_mav_put_char_array(buf, 3, param_id, 16);
|
||||
_mav_put_char_array(buf, 19, param_value, 128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN);
|
||||
#else
|
||||
mavlink_param_ext_set_trimmed_t packet;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.param_type = param_type;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet.param_value, param_value, sizeof(char)*128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a param_ext_set_trimmed message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param param_type Parameter type.
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_value Parameter value (zeros get trimmed)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_set_trimmed_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t target_system,uint8_t target_component,uint8_t param_type,const char *param_id,const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN];
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, param_type);
|
||||
_mav_put_char_array(buf, 3, param_id, 16);
|
||||
_mav_put_char_array(buf, 19, param_value, 128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN);
|
||||
#else
|
||||
mavlink_param_ext_set_trimmed_t packet;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.param_type = param_type;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet.param_value, param_value, sizeof(char)*128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a param_ext_set_trimmed struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param param_ext_set_trimmed C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_set_trimmed_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_param_ext_set_trimmed_t* param_ext_set_trimmed)
|
||||
{
|
||||
return mavlink_msg_param_ext_set_trimmed_pack(system_id, component_id, msg, param_ext_set_trimmed->target_system, param_ext_set_trimmed->target_component, param_ext_set_trimmed->param_type, param_ext_set_trimmed->param_id, param_ext_set_trimmed->param_value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a param_ext_set_trimmed struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param param_ext_set_trimmed C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_set_trimmed_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_param_ext_set_trimmed_t* param_ext_set_trimmed)
|
||||
{
|
||||
return mavlink_msg_param_ext_set_trimmed_pack_chan(system_id, component_id, chan, msg, param_ext_set_trimmed->target_system, param_ext_set_trimmed->target_component, param_ext_set_trimmed->param_type, param_ext_set_trimmed->param_id, param_ext_set_trimmed->param_value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a param_ext_set_trimmed message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param param_type Parameter type.
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_value Parameter value (zeros get trimmed)
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_param_ext_set_trimmed_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t param_type, const char *param_id, const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN];
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, param_type);
|
||||
_mav_put_char_array(buf, 3, param_id, 16);
|
||||
_mav_put_char_array(buf, 19, param_value, 128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED, buf, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_CRC);
|
||||
#else
|
||||
mavlink_param_ext_set_trimmed_t packet;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.param_type = param_type;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet.param_value, param_value, sizeof(char)*128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED, (const char *)&packet, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a param_ext_set_trimmed message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_set_trimmed_send_struct(mavlink_channel_t chan, const mavlink_param_ext_set_trimmed_t* param_ext_set_trimmed)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_param_ext_set_trimmed_send(chan, param_ext_set_trimmed->target_system, param_ext_set_trimmed->target_component, param_ext_set_trimmed->param_type, param_ext_set_trimmed->param_id, param_ext_set_trimmed->param_value);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED, (const char *)param_ext_set_trimmed, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This varient of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_set_trimmed_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t param_type, const char *param_id, const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, param_type);
|
||||
_mav_put_char_array(buf, 3, param_id, 16);
|
||||
_mav_put_char_array(buf, 19, param_value, 128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED, buf, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_CRC);
|
||||
#else
|
||||
mavlink_param_ext_set_trimmed_t *packet = (mavlink_param_ext_set_trimmed_t *)msgbuf;
|
||||
packet->target_system = target_system;
|
||||
packet->target_component = target_component;
|
||||
packet->param_type = param_type;
|
||||
mav_array_memcpy(packet->param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet->param_value, param_value, sizeof(char)*128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED, (const char *)packet, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE PARAM_EXT_SET_TRIMMED UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field target_system from param_ext_set_trimmed message
|
||||
*
|
||||
* @return System ID
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_param_ext_set_trimmed_get_target_system(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field target_component from param_ext_set_trimmed message
|
||||
*
|
||||
* @return Component ID
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_param_ext_set_trimmed_get_target_component(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_type from param_ext_set_trimmed message
|
||||
*
|
||||
* @return Parameter type.
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_param_ext_set_trimmed_get_param_type(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_id from param_ext_set_trimmed message
|
||||
*
|
||||
* @return Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_set_trimmed_get_param_id(const mavlink_message_t* msg, char *param_id)
|
||||
{
|
||||
return _MAV_RETURN_char_array(msg, param_id, 16, 3);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_value from param_ext_set_trimmed message
|
||||
*
|
||||
* @return Parameter value (zeros get trimmed)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_set_trimmed_get_param_value(const mavlink_message_t* msg, char *param_value)
|
||||
{
|
||||
return _MAV_RETURN_char_array(msg, param_value, 128, 19);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a param_ext_set_trimmed message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param param_ext_set_trimmed C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_set_trimmed_decode(const mavlink_message_t* msg, mavlink_param_ext_set_trimmed_t* param_ext_set_trimmed)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
param_ext_set_trimmed->target_system = mavlink_msg_param_ext_set_trimmed_get_target_system(msg);
|
||||
param_ext_set_trimmed->target_component = mavlink_msg_param_ext_set_trimmed_get_target_component(msg);
|
||||
param_ext_set_trimmed->param_type = mavlink_msg_param_ext_set_trimmed_get_param_type(msg);
|
||||
mavlink_msg_param_ext_set_trimmed_get_param_id(msg, param_ext_set_trimmed->param_id);
|
||||
mavlink_msg_param_ext_set_trimmed_get_param_value(msg, param_ext_set_trimmed->param_value);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN? msg->len : MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN;
|
||||
memset(param_ext_set_trimmed, 0, MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_LEN);
|
||||
memcpy(param_ext_set_trimmed, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -1,306 +0,0 @@
|
||||
#pragma once
|
||||
// MESSAGE PARAM_EXT_VALUE_TRIMMED PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED 325
|
||||
|
||||
|
||||
typedef struct __mavlink_param_ext_value_trimmed_t {
|
||||
uint16_t param_count; /*< Total number of parameters*/
|
||||
uint16_t param_index; /*< Index of this parameter*/
|
||||
uint8_t param_type; /*< Parameter type.*/
|
||||
char param_id[16]; /*< Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string*/
|
||||
char param_value[128]; /*< Parameter value (zeros get trimmed)*/
|
||||
} mavlink_param_ext_value_trimmed_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN 149
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN 149
|
||||
#define MAVLINK_MSG_ID_325_LEN 149
|
||||
#define MAVLINK_MSG_ID_325_MIN_LEN 149
|
||||
|
||||
#define MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_CRC 132
|
||||
#define MAVLINK_MSG_ID_325_CRC 132
|
||||
|
||||
#define MAVLINK_MSG_PARAM_EXT_VALUE_TRIMMED_FIELD_PARAM_ID_LEN 16
|
||||
#define MAVLINK_MSG_PARAM_EXT_VALUE_TRIMMED_FIELD_PARAM_VALUE_LEN 128
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_VALUE_TRIMMED { \
|
||||
325, \
|
||||
"PARAM_EXT_VALUE_TRIMMED", \
|
||||
5, \
|
||||
{ { "param_count", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_param_ext_value_trimmed_t, param_count) }, \
|
||||
{ "param_index", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_param_ext_value_trimmed_t, param_index) }, \
|
||||
{ "param_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_param_ext_value_trimmed_t, param_type) }, \
|
||||
{ "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 5, offsetof(mavlink_param_ext_value_trimmed_t, param_id) }, \
|
||||
{ "param_value", NULL, MAVLINK_TYPE_CHAR, 128, 21, offsetof(mavlink_param_ext_value_trimmed_t, param_value) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_PARAM_EXT_VALUE_TRIMMED { \
|
||||
"PARAM_EXT_VALUE_TRIMMED", \
|
||||
5, \
|
||||
{ { "param_count", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_param_ext_value_trimmed_t, param_count) }, \
|
||||
{ "param_index", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_param_ext_value_trimmed_t, param_index) }, \
|
||||
{ "param_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_param_ext_value_trimmed_t, param_type) }, \
|
||||
{ "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 5, offsetof(mavlink_param_ext_value_trimmed_t, param_id) }, \
|
||||
{ "param_value", NULL, MAVLINK_TYPE_CHAR, 128, 21, offsetof(mavlink_param_ext_value_trimmed_t, param_value) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a param_ext_value_trimmed message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param param_count Total number of parameters
|
||||
* @param param_index Index of this parameter
|
||||
* @param param_type Parameter type.
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_value Parameter value (zeros get trimmed)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_value_trimmed_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint16_t param_count, uint16_t param_index, uint8_t param_type, const char *param_id, const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN];
|
||||
_mav_put_uint16_t(buf, 0, param_count);
|
||||
_mav_put_uint16_t(buf, 2, param_index);
|
||||
_mav_put_uint8_t(buf, 4, param_type);
|
||||
_mav_put_char_array(buf, 5, param_id, 16);
|
||||
_mav_put_char_array(buf, 21, param_value, 128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN);
|
||||
#else
|
||||
mavlink_param_ext_value_trimmed_t packet;
|
||||
packet.param_count = param_count;
|
||||
packet.param_index = param_index;
|
||||
packet.param_type = param_type;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet.param_value, param_value, sizeof(char)*128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a param_ext_value_trimmed message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param param_count Total number of parameters
|
||||
* @param param_index Index of this parameter
|
||||
* @param param_type Parameter type.
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_value Parameter value (zeros get trimmed)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_value_trimmed_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint16_t param_count,uint16_t param_index,uint8_t param_type,const char *param_id,const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN];
|
||||
_mav_put_uint16_t(buf, 0, param_count);
|
||||
_mav_put_uint16_t(buf, 2, param_index);
|
||||
_mav_put_uint8_t(buf, 4, param_type);
|
||||
_mav_put_char_array(buf, 5, param_id, 16);
|
||||
_mav_put_char_array(buf, 21, param_value, 128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN);
|
||||
#else
|
||||
mavlink_param_ext_value_trimmed_t packet;
|
||||
packet.param_count = param_count;
|
||||
packet.param_index = param_index;
|
||||
packet.param_type = param_type;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet.param_value, param_value, sizeof(char)*128);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a param_ext_value_trimmed struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param param_ext_value_trimmed C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_value_trimmed_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_param_ext_value_trimmed_t* param_ext_value_trimmed)
|
||||
{
|
||||
return mavlink_msg_param_ext_value_trimmed_pack(system_id, component_id, msg, param_ext_value_trimmed->param_count, param_ext_value_trimmed->param_index, param_ext_value_trimmed->param_type, param_ext_value_trimmed->param_id, param_ext_value_trimmed->param_value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a param_ext_value_trimmed struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param param_ext_value_trimmed C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_value_trimmed_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_param_ext_value_trimmed_t* param_ext_value_trimmed)
|
||||
{
|
||||
return mavlink_msg_param_ext_value_trimmed_pack_chan(system_id, component_id, chan, msg, param_ext_value_trimmed->param_count, param_ext_value_trimmed->param_index, param_ext_value_trimmed->param_type, param_ext_value_trimmed->param_id, param_ext_value_trimmed->param_value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a param_ext_value_trimmed message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param param_count Total number of parameters
|
||||
* @param param_index Index of this parameter
|
||||
* @param param_type Parameter type.
|
||||
* @param param_id Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
* @param param_value Parameter value (zeros get trimmed)
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_param_ext_value_trimmed_send(mavlink_channel_t chan, uint16_t param_count, uint16_t param_index, uint8_t param_type, const char *param_id, const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN];
|
||||
_mav_put_uint16_t(buf, 0, param_count);
|
||||
_mav_put_uint16_t(buf, 2, param_index);
|
||||
_mav_put_uint8_t(buf, 4, param_type);
|
||||
_mav_put_char_array(buf, 5, param_id, 16);
|
||||
_mav_put_char_array(buf, 21, param_value, 128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED, buf, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_CRC);
|
||||
#else
|
||||
mavlink_param_ext_value_trimmed_t packet;
|
||||
packet.param_count = param_count;
|
||||
packet.param_index = param_index;
|
||||
packet.param_type = param_type;
|
||||
mav_array_memcpy(packet.param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet.param_value, param_value, sizeof(char)*128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED, (const char *)&packet, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a param_ext_value_trimmed message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_value_trimmed_send_struct(mavlink_channel_t chan, const mavlink_param_ext_value_trimmed_t* param_ext_value_trimmed)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_param_ext_value_trimmed_send(chan, param_ext_value_trimmed->param_count, param_ext_value_trimmed->param_index, param_ext_value_trimmed->param_type, param_ext_value_trimmed->param_id, param_ext_value_trimmed->param_value);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED, (const char *)param_ext_value_trimmed, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This varient of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_value_trimmed_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint16_t param_count, uint16_t param_index, uint8_t param_type, const char *param_id, const char *param_value)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint16_t(buf, 0, param_count);
|
||||
_mav_put_uint16_t(buf, 2, param_index);
|
||||
_mav_put_uint8_t(buf, 4, param_type);
|
||||
_mav_put_char_array(buf, 5, param_id, 16);
|
||||
_mav_put_char_array(buf, 21, param_value, 128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED, buf, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_CRC);
|
||||
#else
|
||||
mavlink_param_ext_value_trimmed_t *packet = (mavlink_param_ext_value_trimmed_t *)msgbuf;
|
||||
packet->param_count = param_count;
|
||||
packet->param_index = param_index;
|
||||
packet->param_type = param_type;
|
||||
mav_array_memcpy(packet->param_id, param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet->param_value, param_value, sizeof(char)*128);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED, (const char *)packet, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE PARAM_EXT_VALUE_TRIMMED UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field param_count from param_ext_value_trimmed message
|
||||
*
|
||||
* @return Total number of parameters
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_value_trimmed_get_param_count(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_index from param_ext_value_trimmed message
|
||||
*
|
||||
* @return Index of this parameter
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_value_trimmed_get_param_index(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_type from param_ext_value_trimmed message
|
||||
*
|
||||
* @return Parameter type.
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_param_ext_value_trimmed_get_param_type(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_id from param_ext_value_trimmed message
|
||||
*
|
||||
* @return Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_value_trimmed_get_param_id(const mavlink_message_t* msg, char *param_id)
|
||||
{
|
||||
return _MAV_RETURN_char_array(msg, param_id, 16, 5);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field param_value from param_ext_value_trimmed message
|
||||
*
|
||||
* @return Parameter value (zeros get trimmed)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_param_ext_value_trimmed_get_param_value(const mavlink_message_t* msg, char *param_value)
|
||||
{
|
||||
return _MAV_RETURN_char_array(msg, param_value, 128, 21);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a param_ext_value_trimmed message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param param_ext_value_trimmed C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_param_ext_value_trimmed_decode(const mavlink_message_t* msg, mavlink_param_ext_value_trimmed_t* param_ext_value_trimmed)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
param_ext_value_trimmed->param_count = mavlink_msg_param_ext_value_trimmed_get_param_count(msg);
|
||||
param_ext_value_trimmed->param_index = mavlink_msg_param_ext_value_trimmed_get_param_index(msg);
|
||||
param_ext_value_trimmed->param_type = mavlink_msg_param_ext_value_trimmed_get_param_type(msg);
|
||||
mavlink_msg_param_ext_value_trimmed_get_param_id(msg, param_ext_value_trimmed->param_id);
|
||||
mavlink_msg_param_ext_value_trimmed_get_param_value(msg, param_ext_value_trimmed->param_value);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN? msg->len : MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN;
|
||||
memset(param_ext_value_trimmed, 0, MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_LEN);
|
||||
memcpy(param_ext_value_trimmed, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -5,26 +5,26 @@
|
||||
|
||||
|
||||
typedef struct __mavlink_rc_channels_override_t {
|
||||
uint16_t chan1_raw; /*< [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan2_raw; /*< [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan3_raw; /*< [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan4_raw; /*< [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan5_raw; /*< [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan6_raw; /*< [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan7_raw; /*< [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan8_raw; /*< [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan1_raw; /*< [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan2_raw; /*< [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan3_raw; /*< [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan4_raw; /*< [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan5_raw; /*< [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan6_raw; /*< [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan7_raw; /*< [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan8_raw; /*< [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
|
||||
uint8_t target_system; /*< System ID*/
|
||||
uint8_t target_component; /*< Component ID*/
|
||||
uint16_t chan9_raw; /*< [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan10_raw; /*< [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan11_raw; /*< [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan12_raw; /*< [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan13_raw; /*< [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan14_raw; /*< [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan15_raw; /*< [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan16_raw; /*< [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan17_raw; /*< [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan18_raw; /*< [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field.*/
|
||||
uint16_t chan9_raw; /*< [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan10_raw; /*< [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan11_raw; /*< [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan12_raw; /*< [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan13_raw; /*< [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan14_raw; /*< [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan15_raw; /*< [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan16_raw; /*< [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan17_raw; /*< [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
uint16_t chan18_raw; /*< [us] RC channel 18 val1ue. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
|
||||
} mavlink_rc_channels_override_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN 38
|
||||
@@ -100,24 +100,24 @@ typedef struct __mavlink_rc_channels_override_t {
|
||||
*
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param chan1_raw [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan2_raw [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan3_raw [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan4_raw [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan5_raw [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan6_raw [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan7_raw [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan8_raw [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan9_raw [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan10_raw [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan11_raw [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan12_raw [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan13_raw [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan14_raw [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan15_raw [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan16_raw [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan17_raw [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan18_raw [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan1_raw [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan2_raw [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan3_raw [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan4_raw [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan5_raw [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan6_raw [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan7_raw [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan8_raw [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan9_raw [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan10_raw [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan11_raw [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan12_raw [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan13_raw [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan14_raw [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan15_raw [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan16_raw [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan17_raw [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan18_raw [us] RC channel 18 val1ue. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
@@ -185,24 +185,24 @@ static inline uint16_t mavlink_msg_rc_channels_override_pack(uint8_t system_id,
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param chan1_raw [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan2_raw [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan3_raw [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan4_raw [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan5_raw [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan6_raw [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan7_raw [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan8_raw [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan9_raw [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan10_raw [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan11_raw [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan12_raw [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan13_raw [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan14_raw [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan15_raw [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan16_raw [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan17_raw [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan18_raw [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan1_raw [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan2_raw [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan3_raw [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan4_raw [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan5_raw [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan6_raw [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan7_raw [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan8_raw [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan9_raw [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan10_raw [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan11_raw [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan12_raw [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan13_raw [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan14_raw [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan15_raw [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan16_raw [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan17_raw [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan18_raw [us] RC channel 18 val1ue. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
@@ -296,24 +296,24 @@ static inline uint16_t mavlink_msg_rc_channels_override_encode_chan(uint8_t syst
|
||||
*
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param chan1_raw [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan2_raw [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan3_raw [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan4_raw [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan5_raw [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan6_raw [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan7_raw [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan8_raw [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @param chan9_raw [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan10_raw [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan11_raw [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan12_raw [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan13_raw [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan14_raw [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan15_raw [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan16_raw [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan17_raw [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan18_raw [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @param chan1_raw [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan2_raw [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan3_raw [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan4_raw [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan5_raw [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan6_raw [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan7_raw [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan8_raw [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
* @param chan9_raw [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan10_raw [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan11_raw [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan12_raw [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan13_raw [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan14_raw [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan15_raw [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan16_raw [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan17_raw [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
* @param chan18_raw [us] RC channel 18 val1ue. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
@@ -474,7 +474,7 @@ static inline uint8_t mavlink_msg_rc_channels_override_get_target_component(cons
|
||||
/**
|
||||
* @brief Get field chan1_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan1_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -484,7 +484,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan1_raw(const mavl
|
||||
/**
|
||||
* @brief Get field chan2_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan2_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -494,7 +494,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan2_raw(const mavl
|
||||
/**
|
||||
* @brief Get field chan3_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan3_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -504,7 +504,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan3_raw(const mavl
|
||||
/**
|
||||
* @brief Get field chan4_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan4_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -514,7 +514,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan4_raw(const mavl
|
||||
/**
|
||||
* @brief Get field chan5_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan5_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -524,7 +524,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan5_raw(const mavl
|
||||
/**
|
||||
* @brief Get field chan6_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan6_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -534,7 +534,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan6_raw(const mavl
|
||||
/**
|
||||
* @brief Get field chan7_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan7_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -544,7 +544,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan7_raw(const mavl
|
||||
/**
|
||||
* @brief Get field chan8_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan8_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -554,7 +554,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan8_raw(const mavl
|
||||
/**
|
||||
* @brief Get field chan9_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan9_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -564,7 +564,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan9_raw(const mavl
|
||||
/**
|
||||
* @brief Get field chan10_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan10_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -574,7 +574,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan10_raw(const mav
|
||||
/**
|
||||
* @brief Get field chan11_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan11_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -584,7 +584,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan11_raw(const mav
|
||||
/**
|
||||
* @brief Get field chan12_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan12_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -594,7 +594,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan12_raw(const mav
|
||||
/**
|
||||
* @brief Get field chan13_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan13_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -604,7 +604,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan13_raw(const mav
|
||||
/**
|
||||
* @brief Get field chan14_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan14_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -614,7 +614,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan14_raw(const mav
|
||||
/**
|
||||
* @brief Get field chan15_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan15_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -624,7 +624,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan15_raw(const mav
|
||||
/**
|
||||
* @brief Get field chan16_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan16_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -634,7 +634,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan16_raw(const mav
|
||||
/**
|
||||
* @brief Get field chan17_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan17_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -644,7 +644,7 @@ static inline uint16_t mavlink_msg_rc_channels_override_get_chan17_raw(const mav
|
||||
/**
|
||||
* @brief Get field chan18_raw from rc_channels_override message
|
||||
*
|
||||
* @return [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field.
|
||||
* @return [us] RC channel 18 val1ue. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_rc_channels_override_get_chan18_raw(const mavlink_message_t* msg)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
typedef struct __mavlink_smart_battery_info_t {
|
||||
int32_t capacity_full_specification; /*< [mAh] Capacity when full according to manufacturer, -1: field not provided.*/
|
||||
int32_t capacity_full; /*< [mAh] Capacity when full (accounting for battery degradation), -1: field not provided.*/
|
||||
uint16_t cycle_count; /*< Charge/discharge cycle count. -1: field not provided.*/
|
||||
uint16_t cycle_count; /*< Charge/discharge cycle count. UINT16_MAX: field not provided.*/
|
||||
uint16_t weight; /*< [g] Battery weight. 0: field not provided.*/
|
||||
uint16_t discharge_minimum_voltage; /*< [mV] Minimum per-cell voltage when discharging. If not supplied set to UINT16_MAX value.*/
|
||||
uint16_t charging_minimum_voltage; /*< [mV] Minimum per-cell voltage when charging. If not supplied set to UINT16_MAX value.*/
|
||||
@@ -80,7 +80,7 @@ typedef struct __mavlink_smart_battery_info_t {
|
||||
* @param type Type (chemistry) of the battery
|
||||
* @param capacity_full_specification [mAh] Capacity when full according to manufacturer, -1: field not provided.
|
||||
* @param capacity_full [mAh] Capacity when full (accounting for battery degradation), -1: field not provided.
|
||||
* @param cycle_count Charge/discharge cycle count. -1: field not provided.
|
||||
* @param cycle_count Charge/discharge cycle count. UINT16_MAX: field not provided.
|
||||
* @param serial_number Serial number in ASCII characters, 0 terminated. All 0: field not provided.
|
||||
* @param device_name Static device name. Encode as manufacturer and product names separated using an underscore.
|
||||
* @param weight [g] Battery weight. 0: field not provided.
|
||||
@@ -139,7 +139,7 @@ static inline uint16_t mavlink_msg_smart_battery_info_pack(uint8_t system_id, ui
|
||||
* @param type Type (chemistry) of the battery
|
||||
* @param capacity_full_specification [mAh] Capacity when full according to manufacturer, -1: field not provided.
|
||||
* @param capacity_full [mAh] Capacity when full (accounting for battery degradation), -1: field not provided.
|
||||
* @param cycle_count Charge/discharge cycle count. -1: field not provided.
|
||||
* @param cycle_count Charge/discharge cycle count. UINT16_MAX: field not provided.
|
||||
* @param serial_number Serial number in ASCII characters, 0 terminated. All 0: field not provided.
|
||||
* @param device_name Static device name. Encode as manufacturer and product names separated using an underscore.
|
||||
* @param weight [g] Battery weight. 0: field not provided.
|
||||
@@ -224,7 +224,7 @@ static inline uint16_t mavlink_msg_smart_battery_info_encode_chan(uint8_t system
|
||||
* @param type Type (chemistry) of the battery
|
||||
* @param capacity_full_specification [mAh] Capacity when full according to manufacturer, -1: field not provided.
|
||||
* @param capacity_full [mAh] Capacity when full (accounting for battery degradation), -1: field not provided.
|
||||
* @param cycle_count Charge/discharge cycle count. -1: field not provided.
|
||||
* @param cycle_count Charge/discharge cycle count. UINT16_MAX: field not provided.
|
||||
* @param serial_number Serial number in ASCII characters, 0 terminated. All 0: field not provided.
|
||||
* @param device_name Static device name. Encode as manufacturer and product names separated using an underscore.
|
||||
* @param weight [g] Battery weight. 0: field not provided.
|
||||
@@ -385,7 +385,7 @@ static inline int32_t mavlink_msg_smart_battery_info_get_capacity_full(const mav
|
||||
/**
|
||||
* @brief Get field cycle_count from smart_battery_info message
|
||||
*
|
||||
* @return Charge/discharge cycle count. -1: field not provided.
|
||||
* @return Charge/discharge cycle count. UINT16_MAX: field not provided.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_smart_battery_info_get_cycle_count(const mavlink_message_t* msg)
|
||||
{
|
||||
|
||||
+8
-186
@@ -10810,14 +10810,13 @@ static void mavlink_test_param_ext_request_read(uint8_t system_id, uint8_t compo
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_param_ext_request_read_t packet_in = {
|
||||
17235,139,206,"EFGHIJKLMNOPQRS",65
|
||||
17235,139,206,"EFGHIJKLMNOPQRS"
|
||||
};
|
||||
mavlink_param_ext_request_read_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.param_index = packet_in.param_index;
|
||||
packet1.target_system = packet_in.target_system;
|
||||
packet1.target_component = packet_in.target_component;
|
||||
packet1.trimmed = packet_in.trimmed;
|
||||
|
||||
mav_array_memcpy(packet1.param_id, packet_in.param_id, sizeof(char)*16);
|
||||
|
||||
@@ -10833,12 +10832,12 @@ static void mavlink_test_param_ext_request_read(uint8_t system_id, uint8_t compo
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_request_read_pack(system_id, component_id, &msg , packet1.target_system , packet1.target_component , packet1.param_id , packet1.param_index , packet1.trimmed );
|
||||
mavlink_msg_param_ext_request_read_pack(system_id, component_id, &msg , packet1.target_system , packet1.target_component , packet1.param_id , packet1.param_index );
|
||||
mavlink_msg_param_ext_request_read_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_request_read_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.target_system , packet1.target_component , packet1.param_id , packet1.param_index , packet1.trimmed );
|
||||
mavlink_msg_param_ext_request_read_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.target_system , packet1.target_component , packet1.param_id , packet1.param_index );
|
||||
mavlink_msg_param_ext_request_read_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
@@ -10851,7 +10850,7 @@ static void mavlink_test_param_ext_request_read(uint8_t system_id, uint8_t compo
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_request_read_send(MAVLINK_COMM_1 , packet1.target_system , packet1.target_component , packet1.param_id , packet1.param_index , packet1.trimmed );
|
||||
mavlink_msg_param_ext_request_read_send(MAVLINK_COMM_1 , packet1.target_system , packet1.target_component , packet1.param_id , packet1.param_index );
|
||||
mavlink_msg_param_ext_request_read_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
}
|
||||
@@ -10868,13 +10867,12 @@ static void mavlink_test_param_ext_request_list(uint8_t system_id, uint8_t compo
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_param_ext_request_list_t packet_in = {
|
||||
5,72,139
|
||||
5,72
|
||||
};
|
||||
mavlink_param_ext_request_list_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.target_system = packet_in.target_system;
|
||||
packet1.target_component = packet_in.target_component;
|
||||
packet1.trimmed = packet_in.trimmed;
|
||||
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
@@ -10889,12 +10887,12 @@ static void mavlink_test_param_ext_request_list(uint8_t system_id, uint8_t compo
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_request_list_pack(system_id, component_id, &msg , packet1.target_system , packet1.target_component , packet1.trimmed );
|
||||
mavlink_msg_param_ext_request_list_pack(system_id, component_id, &msg , packet1.target_system , packet1.target_component );
|
||||
mavlink_msg_param_ext_request_list_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_request_list_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.target_system , packet1.target_component , packet1.trimmed );
|
||||
mavlink_msg_param_ext_request_list_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.target_system , packet1.target_component );
|
||||
mavlink_msg_param_ext_request_list_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
@@ -10907,7 +10905,7 @@ static void mavlink_test_param_ext_request_list(uint8_t system_id, uint8_t compo
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_request_list_send(MAVLINK_COMM_1 , packet1.target_system , packet1.target_component , packet1.trimmed );
|
||||
mavlink_msg_param_ext_request_list_send(MAVLINK_COMM_1 , packet1.target_system , packet1.target_component );
|
||||
mavlink_msg_param_ext_request_list_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
}
|
||||
@@ -11085,179 +11083,6 @@ static void mavlink_test_param_ext_ack(uint8_t system_id, uint8_t component_id,
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
}
|
||||
|
||||
static void mavlink_test_param_ext_value_trimmed(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_param_ext_value_trimmed_t packet_in = {
|
||||
17235,17339,17,"FGHIJKLMNOPQRST","VWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQR"
|
||||
};
|
||||
mavlink_param_ext_value_trimmed_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.param_count = packet_in.param_count;
|
||||
packet1.param_index = packet_in.param_index;
|
||||
packet1.param_type = packet_in.param_type;
|
||||
|
||||
mav_array_memcpy(packet1.param_id, packet_in.param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet1.param_value, packet_in.param_value, sizeof(char)*128);
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_PARAM_EXT_VALUE_TRIMMED_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_value_trimmed_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_param_ext_value_trimmed_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_value_trimmed_pack(system_id, component_id, &msg , packet1.param_count , packet1.param_index , packet1.param_type , packet1.param_id , packet1.param_value );
|
||||
mavlink_msg_param_ext_value_trimmed_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_value_trimmed_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.param_count , packet1.param_index , packet1.param_type , packet1.param_id , packet1.param_value );
|
||||
mavlink_msg_param_ext_value_trimmed_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_param_ext_value_trimmed_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_value_trimmed_send(MAVLINK_COMM_1 , packet1.param_count , packet1.param_index , packet1.param_type , packet1.param_id , packet1.param_value );
|
||||
mavlink_msg_param_ext_value_trimmed_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
}
|
||||
|
||||
static void mavlink_test_param_ext_set_trimmed(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_param_ext_set_trimmed_t packet_in = {
|
||||
5,72,139,"DEFGHIJKLMNOPQR","TUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOP"
|
||||
};
|
||||
mavlink_param_ext_set_trimmed_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.target_system = packet_in.target_system;
|
||||
packet1.target_component = packet_in.target_component;
|
||||
packet1.param_type = packet_in.param_type;
|
||||
|
||||
mav_array_memcpy(packet1.param_id, packet_in.param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet1.param_value, packet_in.param_value, sizeof(char)*128);
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_PARAM_EXT_SET_TRIMMED_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_set_trimmed_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_param_ext_set_trimmed_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_set_trimmed_pack(system_id, component_id, &msg , packet1.target_system , packet1.target_component , packet1.param_type , packet1.param_id , packet1.param_value );
|
||||
mavlink_msg_param_ext_set_trimmed_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_set_trimmed_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.target_system , packet1.target_component , packet1.param_type , packet1.param_id , packet1.param_value );
|
||||
mavlink_msg_param_ext_set_trimmed_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_param_ext_set_trimmed_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_set_trimmed_send(MAVLINK_COMM_1 , packet1.target_system , packet1.target_component , packet1.param_type , packet1.param_id , packet1.param_value );
|
||||
mavlink_msg_param_ext_set_trimmed_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
}
|
||||
|
||||
static void mavlink_test_param_ext_ack_trimmed(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_param_ext_ack_trimmed_t packet_in = {
|
||||
5,72,"CDEFGHIJKLMNOPQ","STUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNO"
|
||||
};
|
||||
mavlink_param_ext_ack_trimmed_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.param_result = packet_in.param_result;
|
||||
packet1.param_type = packet_in.param_type;
|
||||
|
||||
mav_array_memcpy(packet1.param_id, packet_in.param_id, sizeof(char)*16);
|
||||
mav_array_memcpy(packet1.param_value, packet_in.param_value, sizeof(char)*128);
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_PARAM_EXT_ACK_TRIMMED_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_ack_trimmed_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_param_ext_ack_trimmed_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_ack_trimmed_pack(system_id, component_id, &msg , packet1.param_result , packet1.param_type , packet1.param_id , packet1.param_value );
|
||||
mavlink_msg_param_ext_ack_trimmed_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_ack_trimmed_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.param_result , packet1.param_type , packet1.param_id , packet1.param_value );
|
||||
mavlink_msg_param_ext_ack_trimmed_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_param_ext_ack_trimmed_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_param_ext_ack_trimmed_send(MAVLINK_COMM_1 , packet1.param_result , packet1.param_type , packet1.param_id , packet1.param_value );
|
||||
mavlink_msg_param_ext_ack_trimmed_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
}
|
||||
|
||||
static void mavlink_test_obstacle_distance(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
@@ -13220,9 +13045,6 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
|
||||
mavlink_test_param_ext_value(system_id, component_id, last_msg);
|
||||
mavlink_test_param_ext_set(system_id, component_id, last_msg);
|
||||
mavlink_test_param_ext_ack(system_id, component_id, last_msg);
|
||||
mavlink_test_param_ext_value_trimmed(system_id, component_id, last_msg);
|
||||
mavlink_test_param_ext_set_trimmed(system_id, component_id, last_msg);
|
||||
mavlink_test_param_ext_ack_trimmed(system_id, component_id, last_msg);
|
||||
mavlink_test_obstacle_distance(system_id, component_id, last_msg);
|
||||
mavlink_test_odometry(system_id, component_id, last_msg);
|
||||
mavlink_test_trajectory_representation_waypoints(system_id, component_id, last_msg);
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 46
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+25
-42
@@ -5,7 +5,7 @@
|
||||
modifications to suit mavlink headers
|
||||
*/
|
||||
/*
|
||||
* Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
|
||||
* Copyright (c) 1995 - 2001 Kungliga Tekniska Högskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -69,15 +69,6 @@ typedef struct {
|
||||
#define sigma0(x) (ROTR(x,7) ^ ROTR(x,18) ^ ((x)>>3))
|
||||
#define sigma1(x) (ROTR(x,17) ^ ROTR(x,19) ^ ((x)>>10))
|
||||
|
||||
#define A m->counter[0]
|
||||
#define B m->counter[1]
|
||||
#define C m->counter[2]
|
||||
#define D m->counter[3]
|
||||
#define E m->counter[4]
|
||||
#define F m->counter[5]
|
||||
#define G m->counter[6]
|
||||
#define H m->counter[7]
|
||||
|
||||
static const uint32_t mavlink_sha256_constant_256[64] = {
|
||||
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
|
||||
0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
|
||||
@@ -101,14 +92,14 @@ MAVLINK_HELPER void mavlink_sha256_init(mavlink_sha256_ctx *m)
|
||||
{
|
||||
m->sz[0] = 0;
|
||||
m->sz[1] = 0;
|
||||
A = 0x6a09e667;
|
||||
B = 0xbb67ae85;
|
||||
C = 0x3c6ef372;
|
||||
D = 0xa54ff53a;
|
||||
E = 0x510e527f;
|
||||
F = 0x9b05688c;
|
||||
G = 0x1f83d9ab;
|
||||
H = 0x5be0cd19;
|
||||
m->counter[0] = 0x6a09e667;
|
||||
m->counter[1] = 0xbb67ae85;
|
||||
m->counter[2] = 0x3c6ef372;
|
||||
m->counter[3] = 0xa54ff53a;
|
||||
m->counter[4] = 0x510e527f;
|
||||
m->counter[5] = 0x9b05688c;
|
||||
m->counter[6] = 0x1f83d9ab;
|
||||
m->counter[7] = 0x5be0cd19;
|
||||
}
|
||||
|
||||
static inline void mavlink_sha256_calc(mavlink_sha256_ctx *m, uint32_t *in)
|
||||
@@ -117,14 +108,14 @@ static inline void mavlink_sha256_calc(mavlink_sha256_ctx *m, uint32_t *in)
|
||||
uint32_t data[64];
|
||||
int i;
|
||||
|
||||
AA = A;
|
||||
BB = B;
|
||||
CC = C;
|
||||
DD = D;
|
||||
EE = E;
|
||||
FF = F;
|
||||
GG = G;
|
||||
HH = H;
|
||||
AA = m->counter[0];
|
||||
BB = m->counter[1];
|
||||
CC = m->counter[2];
|
||||
DD = m->counter[3];
|
||||
EE = m->counter[4];
|
||||
FF = m->counter[5];
|
||||
GG = m->counter[6];
|
||||
HH = m->counter[7];
|
||||
|
||||
for (i = 0; i < 16; ++i)
|
||||
data[i] = in[i];
|
||||
@@ -148,14 +139,14 @@ static inline void mavlink_sha256_calc(mavlink_sha256_ctx *m, uint32_t *in)
|
||||
AA = T1 + T2;
|
||||
}
|
||||
|
||||
A += AA;
|
||||
B += BB;
|
||||
C += CC;
|
||||
D += DD;
|
||||
E += EE;
|
||||
F += FF;
|
||||
G += GG;
|
||||
H += HH;
|
||||
m->counter[0] += AA;
|
||||
m->counter[1] += BB;
|
||||
m->counter[2] += CC;
|
||||
m->counter[3] += DD;
|
||||
m->counter[4] += EE;
|
||||
m->counter[5] += FF;
|
||||
m->counter[6] += GG;
|
||||
m->counter[7] += HH;
|
||||
}
|
||||
|
||||
MAVLINK_HELPER void mavlink_sha256_update(mavlink_sha256_ctx *m, const void *v, uint32_t len)
|
||||
@@ -230,14 +221,6 @@ MAVLINK_HELPER void mavlink_sha256_final_48(mavlink_sha256_ctx *m, uint8_t resul
|
||||
}
|
||||
|
||||
// prevent conflicts with users of the header
|
||||
#undef A
|
||||
#undef B
|
||||
#undef C
|
||||
#undef D
|
||||
#undef E
|
||||
#undef F
|
||||
#undef G
|
||||
#undef H
|
||||
#undef Ch
|
||||
#undef ROTR
|
||||
#undef Sigma0
|
||||
|
||||
@@ -161,12 +161,14 @@ typedef struct __mavlink_message_info {
|
||||
#define mavlink_ck_a(msg) *((msg)->len + (uint8_t *)_MAV_PAYLOAD_NON_CONST(msg))
|
||||
#define mavlink_ck_b(msg) *(((msg)->len+(uint16_t)1) + (uint8_t *)_MAV_PAYLOAD_NON_CONST(msg))
|
||||
|
||||
#ifndef HAVE_MAVLINK_CHANNEL_T
|
||||
typedef enum {
|
||||
MAVLINK_COMM_0,
|
||||
MAVLINK_COMM_1,
|
||||
MAVLINK_COMM_2,
|
||||
MAVLINK_COMM_3
|
||||
} mavlink_channel_t;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* applications can set MAVLINK_COMM_NUM_BUFFERS to the maximum number
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<entry value="0" name="GSM_MODEM_TYPE_UNKNOWN">
|
||||
<description>not specified</description>
|
||||
</entry>
|
||||
<entry name="GSM_MODEM_TYPE_HUAWEI_E3372">
|
||||
<entry value="1" name="GSM_MODEM_TYPE_HUAWEI_E3372">
|
||||
<description>HUAWEI LTE USB Stick E3372</description>
|
||||
</entry>
|
||||
</enum>
|
||||
@@ -270,5 +270,24 @@
|
||||
<field type="uint8_t" name="sinr_ecio">SINR (LTE) or ECIO (WCDMA) as reported by modem (unconverted)</field>
|
||||
<field type="uint8_t" name="rsrq">RSRQ (LTE only) as reported by modem (unconverted)</field>
|
||||
</message>
|
||||
<message id="214" name="SATCOM_LINK_STATUS">
|
||||
<description>Status of the SatCom link</description>
|
||||
<field type="uint64_t" name="timestamp" units="us">Timestamp</field>
|
||||
<field type="uint64_t" name="last_heartbeat" units="us">Timestamp of the last successful sbd session</field>
|
||||
<field type="uint16_t" name="failed_sessions">Number of failed sessions</field>
|
||||
<field type="uint16_t" name="successful_sessions">Number of successful sessions</field>
|
||||
<field type="uint8_t" name="signal_quality">Signal quality</field>
|
||||
<field type="uint8_t" name="ring_pending">Ring call pending</field>
|
||||
<field type="uint8_t" name="tx_session_pending">Transmission session pending</field>
|
||||
<field type="uint8_t" name="rx_session_pending">Receiving session pending</field>
|
||||
</message>
|
||||
<message id="215" name="SENSOR_AIRFLOW_ANGLES">
|
||||
<description>Calibrated airflow angle measurements</description>
|
||||
<field type="uint64_t" name="timestamp" units="us">Timestamp</field>
|
||||
<field type="float" name="angleofattack" units="deg">Angle of attack</field>
|
||||
<field type="uint8_t" name="angleofattack_valid">Angle of attack measurement valid</field>
|
||||
<field type="float" name="sideslip" units="deg">Sideslip angle</field>
|
||||
<field type="uint8_t" name="sideslip_valid">Sideslip angle measurement valid</field>
|
||||
</message>
|
||||
</messages>
|
||||
</mavlink>
|
||||
|
||||
@@ -12,11 +12,9 @@
|
||||
<include>minimal.xml</include>
|
||||
<!-- paparazzi.xml: : ERROR: Duplicate message id 180 for SCRIPT_ITEM (paparazzi.xml:9) also used by CAMERA_FEEDBACK (ardupilotmega.xml:1370) -->
|
||||
<!-- <include>paparazzi.xml</include> -->
|
||||
<!-- python_array_test.xml: ERROR: Duplicate message id 150 for ARRAY_TEST_0 (python_array_test.xml:6) also used by SENSOR_OFFSETS (ardupilotmega.xml:1101) -->
|
||||
<!-- <include>python_array_test.xml</include> -->
|
||||
<include>python_array_test.xml</include>
|
||||
<include>standard.xml</include>
|
||||
<!-- test.xml: ERROR: Duplicate message id 0 for TEST_TYPES (test.xml:5) also used by HEARTBEAT (common.xml:3527) -->
|
||||
<!-- <include>test.xml</include> -->
|
||||
<include>test.xml</include>
|
||||
<include>ualberta.xml</include>
|
||||
<include>uAvionix.xml</include>
|
||||
<messages/>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<enums>
|
||||
<enum name="AUTOQUAD_MAVLINK_DEFS_VERSION">
|
||||
<description>Track current version of these definitions (can be used by checking value of AUTOQUAD_MAVLINK_DEFS_VERSION_ENUM_END). Append a new entry for each published change.</description>
|
||||
<entry name="AQ_MAVLINK_DEFS_VERSION_1"/>
|
||||
<entry value="1" name="AQ_MAVLINK_DEFS_VERSION_1"/>
|
||||
</enum>
|
||||
<enum name="AUTOQUAD_NAV_STATUS">
|
||||
<description>Available operating modes/statuses for AutoQuad flight controller.
|
||||
@@ -111,7 +111,7 @@
|
||||
</enum>
|
||||
<!-- extend MAV_DATA_STREAM -->
|
||||
<enum name="MAV_DATA_STREAM">
|
||||
<entry name="MAV_DATA_STREAM_PROPULSION">
|
||||
<entry value="13" name="MAV_DATA_STREAM_PROPULSION">
|
||||
<description>Motor/ESC telemetry data.</description>
|
||||
</entry>
|
||||
</enum>
|
||||
|
||||
@@ -2728,9 +2728,6 @@
|
||||
<entry value="40" name="MAV_SENSOR_ROTATION_ROLL_90_PITCH_315">
|
||||
<description>Roll: 90, Pitch: 315</description>
|
||||
</entry>
|
||||
<entry value="41" name="MAV_SENSOR_ROTATION_ROLL_270_YAW_180">
|
||||
<description>Roll: 270, Yaw: 180</description>
|
||||
</entry>
|
||||
<entry value="100" name="MAV_SENSOR_ROTATION_CUSTOM">
|
||||
<description>Custom orientation</description>
|
||||
</entry>
|
||||
@@ -4392,7 +4389,9 @@
|
||||
<field type="uint16_t" name="param_index">Index of this onboard parameter</field>
|
||||
</message>
|
||||
<message id="23" name="PARAM_SET">
|
||||
<description>Set a parameter value (write new value to permanent storage). Within a transaction the recieving componenent should respond with PARAM_ACK_TRANSACTION to the setter component. IMPORTANT: If sent outside a transaction the receiving component should acknowledge the new parameter value by broadcasting a PARAM_VALUE message to all communication partners (broadcasting ensures that multiple GCS all have an up-to-date list of all parameters). If the sending GCS did not receive a PARAM_VALUE or PARAM_ACK_TRANSACTION message within its timeout time, it should re-send the PARAM_SET message. The parameter microservice is documented at https://mavlink.io/en/services/parameter.html</description>
|
||||
<description>Set a parameter value (write new value to permanent storage).
|
||||
The receiving component should acknowledge the new parameter value by broadcasting a PARAM_VALUE message (broadcasting ensures that multiple GCS all have an up-to-date list of all parameters). If the sending GCS did not receive a PARAM_VALUE within its timeout time, it should re-send the PARAM_SET message. The parameter microservice is documented at https://mavlink.io/en/services/parameter.html.
|
||||
PARAM_SET may also be called within the context of a transaction (started with MAV_CMD_PARAM_TRANSACTION). Within a transaction the receiving component should respond with PARAM_ACK_TRANSACTION to the setter component (instead of broadcasting PARAM_VALUE), and PARAM_SET should be re-sent if this is ACK not received.</description>
|
||||
<field type="uint8_t" name="target_system">System ID</field>
|
||||
<field type="uint8_t" name="target_component">Component ID</field>
|
||||
<field type="char[16]" name="param_id">Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string</field>
|
||||
@@ -4832,28 +4831,28 @@
|
||||
<field type="uint16_t" name="buttons">A bitfield corresponding to the joystick buttons' current state, 1 for pressed, 0 for released. The lowest bit corresponds to Button 1.</field>
|
||||
</message>
|
||||
<message id="70" name="RC_CHANNELS_OVERRIDE">
|
||||
<description>The RAW values of the RC channels sent to the MAV to override info received from the RC radio. A value of UINT16_MAX means no change to that channel. A value of 0 means control of that channel should be released back to the RC radio. The standard PPM modulation is as follows: 1000 microseconds: 0%, 2000 microseconds: 100%. Individual receivers/transmitters might violate this specification.</description>
|
||||
<description>The RAW values of the RC channels sent to the MAV to override info received from the RC radio. The standard PPM modulation is as follows: 1000 microseconds: 0%, 2000 microseconds: 100%. Individual receivers/transmitters might violate this specification. Note carefully the semantic differences between the first 8 channels and the subsequent channels</description>
|
||||
<field type="uint8_t" name="target_system">System ID</field>
|
||||
<field type="uint8_t" name="target_component">Component ID</field>
|
||||
<field type="uint16_t" name="chan1_raw" units="us">RC channel 1 value. A value of UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan2_raw" units="us">RC channel 2 value. A value of UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan3_raw" units="us">RC channel 3 value. A value of UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan4_raw" units="us">RC channel 4 value. A value of UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan5_raw" units="us">RC channel 5 value. A value of UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan6_raw" units="us">RC channel 6 value. A value of UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan7_raw" units="us">RC channel 7 value. A value of UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan8_raw" units="us">RC channel 8 value. A value of UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan1_raw" units="us">RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan2_raw" units="us">RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan3_raw" units="us">RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan4_raw" units="us">RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan5_raw" units="us">RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan6_raw" units="us">RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan7_raw" units="us">RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan8_raw" units="us">RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.</field>
|
||||
<extensions/>
|
||||
<field type="uint16_t" name="chan9_raw" units="us">RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan10_raw" units="us">RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan11_raw" units="us">RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan12_raw" units="us">RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan13_raw" units="us">RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan14_raw" units="us">RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan15_raw" units="us">RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan16_raw" units="us">RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan17_raw" units="us">RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan18_raw" units="us">RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field.</field>
|
||||
<field type="uint16_t" name="chan9_raw" units="us">RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan10_raw" units="us">RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan11_raw" units="us">RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan12_raw" units="us">RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan13_raw" units="us">RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan14_raw" units="us">RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan15_raw" units="us">RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan16_raw" units="us">RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan17_raw" units="us">RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
<field type="uint16_t" name="chan18_raw" units="us">RC channel 18 val1ue. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.</field>
|
||||
</message>
|
||||
<message id="73" name="MISSION_ITEM_INT">
|
||||
<description>Message encoding a mission item. This message is emitted to announce
|
||||
@@ -5514,13 +5513,12 @@
|
||||
<field type="int16_t[16]" name="data" units="m">Terrain data MSL</field>
|
||||
</message>
|
||||
<message id="135" name="TERRAIN_CHECK">
|
||||
<deprecated since="2020-08" replaced_by="">Deprecated (without replacement) as is not part of terrain protocol: https://mavlink.io/en/services/terrain.html.</deprecated>
|
||||
<description>Request that the vehicle report terrain height at the given location. Used by GCS to check if vehicle has all terrain data needed for a mission.</description>
|
||||
<description>Request that the vehicle report terrain height at the given location (expected response is a TERRAIN_REPORT). Used by GCS to check if vehicle has all terrain data needed for a mission.</description>
|
||||
<field type="int32_t" name="lat" units="degE7">Latitude</field>
|
||||
<field type="int32_t" name="lon" units="degE7">Longitude</field>
|
||||
</message>
|
||||
<message id="136" name="TERRAIN_REPORT">
|
||||
<description>Streamed from drone to report progress of terrain map download (or response from a TERRAIN_CHECK request - deprecated). See terrain protocol docs: https://mavlink.io/en/services/terrain.html</description>
|
||||
<description>Streamed from drone to report progress of terrain map download (initiated by TERRAIN_REQUEST), or sent as a response to a TERRAIN_CHECK request. See terrain protocol docs: https://mavlink.io/en/services/terrain.html</description>
|
||||
<field type="int32_t" name="lat" units="degE7">Latitude</field>
|
||||
<field type="int32_t" name="lon" units="degE7">Longitude</field>
|
||||
<field type="uint16_t" name="spacing">grid spacing (zero if terrain at this location unavailable)</field>
|
||||
@@ -5715,8 +5713,8 @@
|
||||
<field type="uint8_t" name="health">EFI health status</field>
|
||||
<field type="float" name="ecu_index">ECU index</field>
|
||||
<field type="float" name="rpm">RPM</field>
|
||||
<field type="float" name="fuel_consumed" units="g">Fuel consumed</field>
|
||||
<field type="float" name="fuel_flow" units="g/min">Fuel flow rate</field>
|
||||
<field type="float" name="fuel_consumed" units="cm^3">Fuel consumed</field>
|
||||
<field type="float" name="fuel_flow" units="cm^3/min">Fuel flow rate</field>
|
||||
<field type="float" name="engine_load" units="%">Engine load</field>
|
||||
<field type="float" name="throttle_position" units="%">Throttle position</field>
|
||||
<field type="float" name="spark_dwell_time" units="ms">Spark dwell time</field>
|
||||
@@ -6376,23 +6374,18 @@
|
||||
<field type="uint32_t" name="sw_vcs_commit">Version control system (VCS) revision identifier (e.g. git short commit hash). Zero if unknown.</field>
|
||||
</message>
|
||||
<message id="320" name="PARAM_EXT_REQUEST_READ">
|
||||
<description>Request to read the value of a parameter with either the param_id string id or param_index. PARAM_EXT_VALUE or PARAM_EXT_VALUE_TRIMMED should be emitted in response (see field: trimmed).</description>
|
||||
<description>Request to read the value of a parameter with either the param_id string id or param_index. PARAM_EXT_VALUE should be emitted in response.</description>
|
||||
<field type="uint8_t" name="target_system">System ID</field>
|
||||
<field type="uint8_t" name="target_component">Component ID</field>
|
||||
<field type="char[16]" name="param_id">Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string</field>
|
||||
<field type="int16_t" name="param_index">Parameter index. Set to -1 to use the Parameter ID field as identifier (else param_id will be ignored)</field>
|
||||
<extensions/>
|
||||
<field type="uint8_t" name="trimmed">Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).</field>
|
||||
</message>
|
||||
<message id="321" name="PARAM_EXT_REQUEST_LIST">
|
||||
<description>Request all parameters of this component. All parameters should be emitted in response (as PARAM_EXT_VALUE or PARAM_EXT_VALUE_TRIMMED messages - see field: trimmed).</description>
|
||||
<description>Request all parameters of this component. All parameters should be emitted in response as PARAM_EXT_VALUE.</description>
|
||||
<field type="uint8_t" name="target_system">System ID</field>
|
||||
<field type="uint8_t" name="target_component">Component ID</field>
|
||||
<extensions/>
|
||||
<field type="uint8_t" name="trimmed">Request _TRIMMED variants of PARAM_EXT_ messages. Set to 1 if _TRIMMED message variants are supported, and 0 otherwise. This signals the recipient that _TRIMMED messages are supported by the sender (and should be used if supported by the recipient).</field>
|
||||
</message>
|
||||
<message id="322" name="PARAM_EXT_VALUE">
|
||||
<deprecated since="2020-07" replaced_by="PARAM_EXT_VALUE_TRIMMED">The new version of this message correctly trims zeros.</deprecated>
|
||||
<description>Emit the value of a parameter. The inclusion of param_count and param_index in the message allows the recipient to keep track of received parameters and allows them to re-request missing parameters after a loss or timeout.</description>
|
||||
<field type="char[16]" name="param_id">Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string</field>
|
||||
<field type="char[128]" name="param_value">Parameter value</field>
|
||||
@@ -6401,7 +6394,6 @@
|
||||
<field type="uint16_t" name="param_index">Index of this parameter</field>
|
||||
</message>
|
||||
<message id="323" name="PARAM_EXT_SET">
|
||||
<deprecated since="2020-07" replaced_by="PARAM_EXT_SET_TRIMMED">New version of PARAM_EXT_SET that correctly trims zeros.</deprecated>
|
||||
<description>Set a parameter value. In order to deal with message loss (and retransmission of PARAM_EXT_SET), when setting a parameter value and the new value is the same as the current value, you will immediately get a PARAM_ACK_ACCEPTED response. If the current state is PARAM_ACK_IN_PROGRESS, you will accordingly receive a PARAM_ACK_IN_PROGRESS in response.</description>
|
||||
<field type="uint8_t" name="target_system">System ID</field>
|
||||
<field type="uint8_t" name="target_component">Component ID</field>
|
||||
@@ -6410,42 +6402,12 @@
|
||||
<field type="uint8_t" name="param_type" enum="MAV_PARAM_EXT_TYPE">Parameter type.</field>
|
||||
</message>
|
||||
<message id="324" name="PARAM_EXT_ACK">
|
||||
<deprecated since="2020-07" replaced_by="PARAM_EXT_ACK_TRIMMED">New version of PARAM_EXT_ACK that correctly trims zeros.</deprecated>
|
||||
<description>Response from a PARAM_EXT_SET message.</description>
|
||||
<field type="char[16]" name="param_id">Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string</field>
|
||||
<field type="char[128]" name="param_value">Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise)</field>
|
||||
<field type="uint8_t" name="param_type" enum="MAV_PARAM_EXT_TYPE">Parameter type.</field>
|
||||
<field type="uint8_t" name="param_result" enum="PARAM_ACK">Result code.</field>
|
||||
</message>
|
||||
<message id="325" name="PARAM_EXT_VALUE_TRIMMED">
|
||||
<wip/>
|
||||
<!-- This message is work-in-progress and it can therefore change. It should NOT be used in stable production environments. -->
|
||||
<description>Emit the value of a parameter. The inclusion of param_count and param_index in the message allows the recipient to keep track of received parameters and allows them to re-request missing parameters after a loss or timeout. Replacement for PARAM_EXT_VALUE.</description>
|
||||
<field type="uint16_t" name="param_count">Total number of parameters</field>
|
||||
<field type="uint16_t" name="param_index">Index of this parameter</field>
|
||||
<field type="uint8_t" name="param_type" enum="MAV_PARAM_EXT_TYPE">Parameter type.</field>
|
||||
<field type="char[16]" name="param_id">Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string</field>
|
||||
<field type="char[128]" name="param_value">Parameter value (zeros get trimmed)</field>
|
||||
</message>
|
||||
<message id="326" name="PARAM_EXT_SET_TRIMMED">
|
||||
<wip/>
|
||||
<!-- This message is work-in-progress and it can therefore change. It should NOT be used in stable production environments. -->
|
||||
<description>Set a parameter value. In order to deal with message loss (and retransmission of PARAM_EXT_SET_TRIMMED), when setting a parameter value and the new value is the same as the current value, you will immediately get a PARAM_ACK_ACCEPTED response. If the current state is PARAM_ACK_IN_PROGRESS, you will accordingly receive a PARAM_ACK_IN_PROGRESS in response. If there is no response to this message, and it is unknown whether the _TRIMMED messages are supported (because no PARAM_EXT_REQUEST_READ or PARAM_EXT_REQUEST_LIST has been performed yet), then fall back to PARAM_EXT_SET.</description>
|
||||
<field type="uint8_t" name="target_system">System ID</field>
|
||||
<field type="uint8_t" name="target_component">Component ID</field>
|
||||
<field type="uint8_t" name="param_type" enum="MAV_PARAM_EXT_TYPE">Parameter type.</field>
|
||||
<field type="char[16]" name="param_id">Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string</field>
|
||||
<field type="char[128]" name="param_value">Parameter value (zeros get trimmed)</field>
|
||||
</message>
|
||||
<message id="327" name="PARAM_EXT_ACK_TRIMMED">
|
||||
<wip/>
|
||||
<!-- This message is work-in-progress and it can therefore change. It should NOT be used in stable production environments. -->
|
||||
<description>Response from a PARAM_EXT_SET_TRIMMED message.</description>
|
||||
<field type="uint8_t" name="param_result" enum="PARAM_ACK">Result code.</field>
|
||||
<field type="uint8_t" name="param_type" enum="MAV_PARAM_EXT_TYPE">Parameter type.</field>
|
||||
<field type="char[16]" name="param_id">Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string</field>
|
||||
<field type="char[128]" name="param_value">Parameter value (new value if PARAM_ACK_ACCEPTED, current value otherwise, zeros get trimmed)</field>
|
||||
</message>
|
||||
<message id="330" name="OBSTACLE_DISTANCE">
|
||||
<description>Obstacle distances in front of the sensor, starting from the left in increment degrees to the right</description>
|
||||
<field type="uint64_t" name="time_usec" units="us">Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.</field>
|
||||
@@ -6599,7 +6561,7 @@
|
||||
<field type="uint8_t" name="type" enum="MAV_BATTERY_TYPE">Type (chemistry) of the battery</field>
|
||||
<field type="int32_t" name="capacity_full_specification" units="mAh">Capacity when full according to manufacturer, -1: field not provided.</field>
|
||||
<field type="int32_t" name="capacity_full" units="mAh">Capacity when full (accounting for battery degradation), -1: field not provided.</field>
|
||||
<field type="uint16_t" name="cycle_count">Charge/discharge cycle count. -1: field not provided.</field>
|
||||
<field type="uint16_t" name="cycle_count">Charge/discharge cycle count. UINT16_MAX: field not provided.</field>
|
||||
<field type="char[16]" name="serial_number">Serial number in ASCII characters, 0 terminated. All 0: field not provided.</field>
|
||||
<field type="char[50]" name="device_name">Static device name. Encode as manufacturer and product names separated using an underscore.</field>
|
||||
<field type="uint16_t" name="weight" units="g">Battery weight. 0: field not provided.</field>
|
||||
|
||||
@@ -235,28 +235,28 @@
|
||||
<entry value="0" name="MAV_STATE_UNINIT">
|
||||
<description>Uninitialized system, state is unknown.</description>
|
||||
</entry>
|
||||
<entry name="MAV_STATE_BOOT">
|
||||
<entry value="1" name="MAV_STATE_BOOT">
|
||||
<description>System is booting up.</description>
|
||||
</entry>
|
||||
<entry name="MAV_STATE_CALIBRATING">
|
||||
<entry value="2" name="MAV_STATE_CALIBRATING">
|
||||
<description>System is calibrating and not flight-ready.</description>
|
||||
</entry>
|
||||
<entry name="MAV_STATE_STANDBY">
|
||||
<entry value="3" name="MAV_STATE_STANDBY">
|
||||
<description>System is grounded and on standby. It can be launched any time.</description>
|
||||
</entry>
|
||||
<entry name="MAV_STATE_ACTIVE">
|
||||
<entry value="4" name="MAV_STATE_ACTIVE">
|
||||
<description>System is active and might be already airborne. Motors are engaged.</description>
|
||||
</entry>
|
||||
<entry name="MAV_STATE_CRITICAL">
|
||||
<entry value="5" name="MAV_STATE_CRITICAL">
|
||||
<description>System is in a non-normal flight mode. It can however still navigate.</description>
|
||||
</entry>
|
||||
<entry name="MAV_STATE_EMERGENCY">
|
||||
<entry value="6" name="MAV_STATE_EMERGENCY">
|
||||
<description>System is in a non-normal flight mode. It lost control over parts or over the whole airframe. It is in mayday and going down.</description>
|
||||
</entry>
|
||||
<entry name="MAV_STATE_POWEROFF">
|
||||
<entry value="7" name="MAV_STATE_POWEROFF">
|
||||
<description>System just initialized its power-down sequence, will shut down now.</description>
|
||||
</entry>
|
||||
<entry name="MAV_STATE_FLIGHT_TERMINATION">
|
||||
<entry value="8" name="MAV_STATE_FLIGHT_TERMINATION">
|
||||
<description>System is terminating itself.</description>
|
||||
</entry>
|
||||
</enum>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<mavlink>
|
||||
<include>common.xml</include>
|
||||
<messages>
|
||||
<message id="150" name="ARRAY_TEST_0">
|
||||
<message id="17150" name="ARRAY_TEST_0">
|
||||
<description>Array test #0.</description>
|
||||
<field type="uint8_t" name="v1">Stub field</field>
|
||||
<field type="int8_t[4]" name="ar_i8">Value array</field>
|
||||
@@ -11,26 +11,26 @@
|
||||
<field type="uint16_t[4]" name="ar_u16">Value array</field>
|
||||
<field type="uint32_t[4]" name="ar_u32">Value array</field>
|
||||
</message>
|
||||
<message id="151" name="ARRAY_TEST_1">
|
||||
<message id="17151" name="ARRAY_TEST_1">
|
||||
<description>Array test #1.</description>
|
||||
<field type="uint32_t[4]" name="ar_u32">Value array</field>
|
||||
</message>
|
||||
<message id="153" name="ARRAY_TEST_3">
|
||||
<message id="17153" name="ARRAY_TEST_3">
|
||||
<description>Array test #3.</description>
|
||||
<field type="uint8_t" name="v">Stub field</field>
|
||||
<field type="uint32_t[4]" name="ar_u32">Value array</field>
|
||||
</message>
|
||||
<message id="154" name="ARRAY_TEST_4">
|
||||
<message id="17154" name="ARRAY_TEST_4">
|
||||
<description>Array test #4.</description>
|
||||
<field type="uint32_t[4]" name="ar_u32">Value array</field>
|
||||
<field type="uint8_t" name="v">Stub field</field>
|
||||
</message>
|
||||
<message id="155" name="ARRAY_TEST_5">
|
||||
<message id="17155" name="ARRAY_TEST_5">
|
||||
<description>Array test #5.</description>
|
||||
<field type="char[5]" name="c1">Value array</field>
|
||||
<field type="char[5]" name="c2">Value array</field>
|
||||
</message>
|
||||
<message id="156" name="ARRAY_TEST_6">
|
||||
<message id="17156" name="ARRAY_TEST_6">
|
||||
<description>Array test #6.</description>
|
||||
<field type="uint8_t" name="v1">Stub field</field>
|
||||
<field type="uint16_t" name="v2">Stub field</field>
|
||||
@@ -45,7 +45,7 @@
|
||||
<field type="double[2]" name="ar_d">Value array</field>
|
||||
<field type="float[2]" name="ar_f">Value array</field>
|
||||
</message>
|
||||
<message id="157" name="ARRAY_TEST_7">
|
||||
<message id="17157" name="ARRAY_TEST_7">
|
||||
<description>Array test #7.</description>
|
||||
<field type="double[2]" name="ar_d">Value array</field>
|
||||
<field type="float[2]" name="ar_f">Value array</field>
|
||||
@@ -57,7 +57,7 @@
|
||||
<field type="int8_t[2]" name="ar_i8">Value array</field>
|
||||
<field type="char[32]" name="ar_c">Value array</field>
|
||||
</message>
|
||||
<message id="158" name="ARRAY_TEST_8">
|
||||
<message id="17158" name="ARRAY_TEST_8">
|
||||
<description>Array test #8.</description>
|
||||
<field type="uint32_t" name="v3">Stub field</field>
|
||||
<field type="double[2]" name="ar_d">Value array</field>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<mavlink>
|
||||
<version>3</version>
|
||||
<messages>
|
||||
<message id="0" name="TEST_TYPES">
|
||||
<message id="17000" name="TEST_TYPES">
|
||||
<description>Test all field types</description>
|
||||
<field type="char" name="c">char</field>
|
||||
<field type="char[10]" name="s">string</field>
|
||||
|
||||
@@ -4,44 +4,44 @@
|
||||
<enums>
|
||||
<enum name="UALBERTA_AUTOPILOT_MODE">
|
||||
<description>Available autopilot modes for ualberta uav</description>
|
||||
<entry name="MODE_MANUAL_DIRECT">
|
||||
<entry value="1" name="MODE_MANUAL_DIRECT">
|
||||
<description>Raw input pulse widts sent to output</description>
|
||||
</entry>
|
||||
<entry name="MODE_MANUAL_SCALED">
|
||||
<entry value="2" name="MODE_MANUAL_SCALED">
|
||||
<description>Inputs are normalized using calibration, the converted back to raw pulse widths for output</description>
|
||||
</entry>
|
||||
<entry name="MODE_AUTO_PID_ATT">
|
||||
<entry value="3" name="MODE_AUTO_PID_ATT">
|
||||
<description> dfsdfs</description>
|
||||
</entry>
|
||||
<entry name="MODE_AUTO_PID_VEL">
|
||||
<entry value="4" name="MODE_AUTO_PID_VEL">
|
||||
<description> dfsfds</description>
|
||||
</entry>
|
||||
<entry name="MODE_AUTO_PID_POS">
|
||||
<entry value="5" name="MODE_AUTO_PID_POS">
|
||||
<description> dfsdfsdfs</description>
|
||||
</entry>
|
||||
</enum>
|
||||
<enum name="UALBERTA_NAV_MODE">
|
||||
<description>Navigation filter mode</description>
|
||||
<entry name="NAV_AHRS_INIT"/>
|
||||
<entry name="NAV_AHRS">
|
||||
<entry value="1" name="NAV_AHRS_INIT"/>
|
||||
<entry value="2" name="NAV_AHRS">
|
||||
<description>AHRS mode</description>
|
||||
</entry>
|
||||
<entry name="NAV_INS_GPS_INIT">
|
||||
<entry value="3" name="NAV_INS_GPS_INIT">
|
||||
<description>INS/GPS initialization mode</description>
|
||||
</entry>
|
||||
<entry name="NAV_INS_GPS">
|
||||
<entry value="4" name="NAV_INS_GPS">
|
||||
<description>INS/GPS mode</description>
|
||||
</entry>
|
||||
</enum>
|
||||
<enum name="UALBERTA_PILOT_MODE">
|
||||
<description>Mode currently commanded by pilot</description>
|
||||
<entry name="PILOT_MANUAL">
|
||||
<entry value="1" name="PILOT_MANUAL">
|
||||
<description> sdf</description>
|
||||
</entry>
|
||||
<entry name="PILOT_AUTO">
|
||||
<entry value="2" name="PILOT_AUTO">
|
||||
<description> dfs</description>
|
||||
</entry>
|
||||
<entry name="PILOT_ROTO">
|
||||
<entry value="3" name="PILOT_ROTO">
|
||||
<description> Rotomotion mode </description>
|
||||
</entry>
|
||||
</enum>
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
|
||||
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
// MESSAGE TEST_TYPES PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_TEST_TYPES 0
|
||||
#define MAVLINK_MSG_ID_TEST_TYPES 17000
|
||||
|
||||
|
||||
typedef struct __mavlink_test_types_t {
|
||||
@@ -31,11 +31,11 @@ typedef struct __mavlink_test_types_t {
|
||||
|
||||
#define MAVLINK_MSG_ID_TEST_TYPES_LEN 179
|
||||
#define MAVLINK_MSG_ID_TEST_TYPES_MIN_LEN 179
|
||||
#define MAVLINK_MSG_ID_0_LEN 179
|
||||
#define MAVLINK_MSG_ID_0_MIN_LEN 179
|
||||
#define MAVLINK_MSG_ID_17000_LEN 179
|
||||
#define MAVLINK_MSG_ID_17000_MIN_LEN 179
|
||||
|
||||
#define MAVLINK_MSG_ID_TEST_TYPES_CRC 103
|
||||
#define MAVLINK_MSG_ID_0_CRC 103
|
||||
#define MAVLINK_MSG_ID_17000_CRC 103
|
||||
|
||||
#define MAVLINK_MSG_TEST_TYPES_FIELD_U64_ARRAY_LEN 3
|
||||
#define MAVLINK_MSG_TEST_TYPES_FIELD_S64_ARRAY_LEN 3
|
||||
@@ -51,7 +51,7 @@ typedef struct __mavlink_test_types_t {
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_TEST_TYPES { \
|
||||
0, \
|
||||
17000, \
|
||||
"TEST_TYPES", \
|
||||
22, \
|
||||
{ { "c", NULL, MAVLINK_TYPE_CHAR, 0, 160, offsetof(mavlink_test_types_t, c) }, \
|
||||
|
||||
+2
-2
@@ -24,7 +24,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef MAVLINK_MESSAGE_CRCS
|
||||
#define MAVLINK_MESSAGE_CRCS {{0, 103, 179, 179, 0, 0, 0}}
|
||||
#define MAVLINK_MESSAGE_CRCS {{17000, 103, 179, 179, 0, 0, 0}}
|
||||
#endif
|
||||
|
||||
#include "../protocol.h"
|
||||
@@ -57,7 +57,7 @@ extern "C" {
|
||||
|
||||
#if MAVLINK_THIS_XML_IDX == MAVLINK_PRIMARY_XML_IDX
|
||||
# define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_TEST_TYPES}
|
||||
# define MAVLINK_MESSAGE_NAMES {{ "TEST_TYPES", 0 }}
|
||||
# define MAVLINK_MESSAGE_NAMES {{ "TEST_TYPES", 17000 }}
|
||||
# if MAVLINK_COMMAND_24BIT
|
||||
# include "../mavlink_get_info.h"
|
||||
# endif
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 179
|
||||
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Wed Dec 23 2020"
|
||||
#define MAVLINK_BUILD_DATE "Wed Feb 03 2021"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
Reference in New Issue
Block a user