3 #define MAVLINK_MSG_ID_CAMERA_STAMPED_SMALL_IMU 185 18 #define MAVLINK_MSG_ID_CAMERA_STAMPED_SMALL_IMU_LEN 37 19 #define MAVLINK_MSG_ID_185_LEN 37 21 #define MAVLINK_MSG_ID_CAMERA_STAMPED_SMALL_IMU_CRC 209 22 #define MAVLINK_MSG_ID_185_CRC 209 26 #define MAVLINK_MESSAGE_INFO_CAMERA_STAMPED_SMALL_IMU { \ 27 "CAMERA_STAMPED_SMALL_IMU", \ 29 { { "time_boot_us", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_camera_stamped_small_imu_t, time_boot_us) }, \ 30 { "xacc", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_camera_stamped_small_imu_t, xacc) }, \ 31 { "yacc", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_camera_stamped_small_imu_t, yacc) }, \ 32 { "zacc", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_camera_stamped_small_imu_t, zacc) }, \ 33 { "xgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_camera_stamped_small_imu_t, xgyro) }, \ 34 { "ygyro", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_camera_stamped_small_imu_t, ygyro) }, \ 35 { "zgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_camera_stamped_small_imu_t, zgyro) }, \ 36 { "temperature", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_camera_stamped_small_imu_t, temperature) }, \ 37 { "image", NULL, MAVLINK_TYPE_UINT8_T, 0, 36, offsetof(mavlink_camera_stamped_small_imu_t, image) }, \ 62 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 116 mavlink_message_t* msg,
119 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 148 #if MAVLINK_CRC_EXTRA 165 return mavlink_msg_camera_stamped_small_imu_pack(system_id, component_id, msg, camera_stamped_small_imu->
time_boot_us, camera_stamped_small_imu->
xacc, camera_stamped_small_imu->
yacc, camera_stamped_small_imu->
zacc, camera_stamped_small_imu->
xgyro, camera_stamped_small_imu->
ygyro, camera_stamped_small_imu->
zgyro, camera_stamped_small_imu->
temperature, camera_stamped_small_imu->
image);
179 return mavlink_msg_camera_stamped_small_imu_pack_chan(system_id, component_id, chan, msg, camera_stamped_small_imu->
time_boot_us, camera_stamped_small_imu->
xacc, camera_stamped_small_imu->
yacc, camera_stamped_small_imu->
zacc, camera_stamped_small_imu->
xgyro, camera_stamped_small_imu->
ygyro, camera_stamped_small_imu->
zgyro, camera_stamped_small_imu->
temperature, camera_stamped_small_imu->
image);
196 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 200 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 212 #if MAVLINK_CRC_EXTRA 229 #if MAVLINK_CRC_EXTRA 237 #if MAVLINK_MSG_ID_CAMERA_STAMPED_SMALL_IMU_LEN <= MAVLINK_MAX_PAYLOAD_LEN 245 static inline void mavlink_msg_camera_stamped_small_imu_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t
time_boot_us,
float xacc,
float yacc,
float zacc,
float xgyro,
float ygyro,
float zgyro,
float temperature, uint8_t
image)
247 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 248 char *buf = (
char *)msgbuf;
259 #if MAVLINK_CRC_EXTRA 276 #if MAVLINK_CRC_EXTRA 297 return _MAV_RETURN_uint64_t(msg, 0);
307 return _MAV_RETURN_float(msg, 8);
317 return _MAV_RETURN_float(msg, 12);
327 return _MAV_RETURN_float(msg, 16);
337 return _MAV_RETURN_float(msg, 20);
347 return _MAV_RETURN_float(msg, 24);
357 return _MAV_RETURN_float(msg, 28);
367 return _MAV_RETURN_float(msg, 32);
388 #if MAVLINK_NEED_BYTE_SWAP static float mavlink_msg_camera_stamped_small_imu_get_xgyro(const mavlink_message_t *msg)
Get field xgyro from camera_stamped_small_imu message.
#define _mav_put_float(buf, wire_offset, b)
static float mavlink_msg_camera_stamped_small_imu_get_zgyro(const mavlink_message_t *msg)
Get field zgyro from camera_stamped_small_imu message.
static uint16_t mavlink_msg_camera_stamped_small_imu_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_camera_stamped_small_imu_t *camera_stamped_small_imu)
Encode a camera_stamped_small_imu struct on a channel.
#define _MAV_RETURN_uint8_t(msg, wire_offset)
#define MAVLINK_MSG_ID_CAMERA_STAMPED_SMALL_IMU
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_put_uint64_t(buf, wire_offset, b)
struct __mavlink_camera_stamped_small_imu_t mavlink_camera_stamped_small_imu_t
#define _MAV_PAYLOAD_NON_CONST(msg)
#define MAVLINK_MSG_ID_CAMERA_STAMPED_SMALL_IMU_LEN
static uint64_t mavlink_msg_camera_stamped_small_imu_get_time_boot_us(const mavlink_message_t *msg)
Send a camera_stamped_small_imu message.
static uint8_t mavlink_msg_camera_stamped_small_imu_get_image(const mavlink_message_t *msg)
Get field image from camera_stamped_small_imu message.
static float mavlink_msg_camera_stamped_small_imu_get_zacc(const mavlink_message_t *msg)
Get field zacc from camera_stamped_small_imu message.
static float mavlink_msg_camera_stamped_small_imu_get_temperature(const mavlink_message_t *msg)
Get field temperature from camera_stamped_small_imu message.
#define _MAV_PAYLOAD(msg)
static uint16_t mavlink_msg_camera_stamped_small_imu_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_camera_stamped_small_imu_t *camera_stamped_small_imu)
Encode a camera_stamped_small_imu struct.
#define MAVLINK_MSG_ID_CAMERA_STAMPED_SMALL_IMU_CRC
static float mavlink_msg_camera_stamped_small_imu_get_ygyro(const mavlink_message_t *msg)
Get field ygyro from camera_stamped_small_imu message.
static float mavlink_msg_camera_stamped_small_imu_get_yacc(const mavlink_message_t *msg)
Get field yacc from camera_stamped_small_imu message.
static void mavlink_msg_camera_stamped_small_imu_decode(const mavlink_message_t *msg, mavlink_camera_stamped_small_imu_t *camera_stamped_small_imu)
Decode a camera_stamped_small_imu message into a struct.
static float mavlink_msg_camera_stamped_small_imu_get_xacc(const mavlink_message_t *msg)
Get field xacc from camera_stamped_small_imu message.
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_camera_stamped_small_imu_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_boot_us, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float temperature, uint8_t image)
Pack a camera_stamped_small_imu message.
static uint16_t mavlink_msg_camera_stamped_small_imu_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_boot_us, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float temperature, uint8_t image)
Pack a camera_stamped_small_imu message on a channel.