3 #define MAVLINK_MSG_ID_PARAM_VALUE 22 14 #define MAVLINK_MSG_ID_PARAM_VALUE_LEN 25 15 #define MAVLINK_MSG_ID_22_LEN 25 17 #define MAVLINK_MSG_ID_PARAM_VALUE_CRC 220 18 #define MAVLINK_MSG_ID_22_CRC 220 20 #define MAVLINK_MSG_PARAM_VALUE_FIELD_PARAM_ID_LEN 16 22 #define MAVLINK_MESSAGE_INFO_PARAM_VALUE { \ 25 { { "param_value", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_param_value_t, param_value) }, \ 26 { "param_count", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_param_value_t, param_count) }, \ 27 { "param_index", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_param_value_t, param_index) }, \ 28 { "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 8, offsetof(mavlink_param_value_t, param_id) }, \ 29 { "param_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 24, offsetof(mavlink_param_value_t, param_type) }, \ 50 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 90 mavlink_message_t* msg,
93 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 112 #if MAVLINK_CRC_EXTRA 156 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 160 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 167 #if MAVLINK_CRC_EXTRA 179 #if MAVLINK_CRC_EXTRA 187 #if MAVLINK_MSG_ID_PARAM_VALUE_LEN <= MAVLINK_MAX_PAYLOAD_LEN 197 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 198 char *buf = (
char *)msgbuf;
204 #if MAVLINK_CRC_EXTRA 216 #if MAVLINK_CRC_EXTRA 247 return _MAV_RETURN_float(msg, 0);
267 return _MAV_RETURN_uint16_t(msg, 4);
277 return _MAV_RETURN_uint16_t(msg, 6);
288 #if MAVLINK_NEED_BYTE_SWAP #define _mav_put_float(buf, wire_offset, b)
static uint16_t mavlink_msg_param_value_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const char *param_id, float param_value, uint8_t param_type, uint16_t param_count, uint16_t param_index)
Pack a param_value message.
static uint16_t mavlink_msg_param_value_get_param_id(const mavlink_message_t *msg, char *param_id)
Send a param_value message.
static uint8_t mavlink_msg_param_value_get_param_type(const mavlink_message_t *msg)
Get field param_type from param_value message.
#define _MAV_RETURN_uint8_t(msg, wire_offset)
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
#define _mav_put_uint8_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
static uint16_t mavlink_msg_param_value_get_param_count(const mavlink_message_t *msg)
Get field param_count from param_value message.
#define _MAV_PAYLOAD(msg)
struct __mavlink_param_value_t mavlink_param_value_t
static uint16_t mavlink_msg_param_value_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const char *param_id, float param_value, uint8_t param_type, uint16_t param_count, uint16_t param_index)
Pack a param_value message on a channel.
#define MAVLINK_MSG_ID_PARAM_VALUE_LEN
static uint16_t mavlink_msg_param_value_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_param_value_t *param_value)
Encode a param_value struct.
#define MAVLINK_MSG_ID_PARAM_VALUE
static uint16_t mavlink_msg_param_value_get_param_index(const mavlink_message_t *msg)
Get field param_index from param_value message.
#define MAVLINK_MSG_ID_PARAM_VALUE_CRC
static void mav_array_memcpy(void *dest, const void *src, size_t n)
static uint16_t _MAV_RETURN_char_array(const mavlink_message_t *msg, char *value, uint8_t array_length, uint8_t wire_offset)
static void mavlink_msg_param_value_decode(const mavlink_message_t *msg, mavlink_param_value_t *param_value)
Decode a param_value message into a struct.
static float mavlink_msg_param_value_get_param_value(const mavlink_message_t *msg)
Get field param_value from param_value message.
static void _mav_put_char_array(char *buf, uint8_t wire_offset, const char *b, uint8_t array_length)
#define _mav_put_uint16_t(buf, wire_offset, b)
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
static uint16_t mavlink_msg_param_value_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_param_value_t *param_value)
Encode a param_value struct on a channel.