3 #define MAVLINK_MSG_ID_AIRSPEEDS 182
16 #define MAVLINK_MSG_ID_AIRSPEEDS_LEN 16
17 #define MAVLINK_MSG_ID_182_LEN 16
19 #define MAVLINK_MSG_ID_AIRSPEEDS_CRC 154
20 #define MAVLINK_MSG_ID_182_CRC 154
24 #define MAVLINK_MESSAGE_INFO_AIRSPEEDS { \
27 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_airspeeds_t, time_boot_ms) }, \
28 { "airspeed_imu", NULL, MAVLINK_TYPE_INT16_T, 0, 4, offsetof(mavlink_airspeeds_t, airspeed_imu) }, \
29 { "airspeed_pitot", NULL, MAVLINK_TYPE_INT16_T, 0, 6, offsetof(mavlink_airspeeds_t, airspeed_pitot) }, \
30 { "airspeed_hot_wire", NULL, MAVLINK_TYPE_INT16_T, 0, 8, offsetof(mavlink_airspeeds_t, airspeed_hot_wire) }, \
31 { "airspeed_ultrasonic", NULL, MAVLINK_TYPE_INT16_T, 0, 10, offsetof(mavlink_airspeeds_t, airspeed_ultrasonic) }, \
32 { "aoa", NULL, MAVLINK_TYPE_INT16_T, 0, 12, offsetof(mavlink_airspeeds_t, aoa) }, \
33 { "aoy", NULL, MAVLINK_TYPE_INT16_T, 0, 14, offsetof(mavlink_airspeeds_t, aoy) }, \
53 static inline uint16_t mavlink_msg_airspeeds_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
54 uint32_t time_boot_ms, int16_t airspeed_imu, int16_t airspeed_pitot, int16_t airspeed_hot_wire, int16_t airspeed_ultrasonic, int16_t aoa, int16_t aoy)
56 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
103 static inline uint16_t mavlink_msg_airspeeds_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
104 mavlink_message_t* msg,
105 uint32_t time_boot_ms,int16_t airspeed_imu,int16_t airspeed_pitot,int16_t airspeed_hot_wire,int16_t airspeed_ultrasonic,int16_t aoa,int16_t aoy)
107 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
132 #if MAVLINK_CRC_EXTRA
147 static inline uint16_t mavlink_msg_airspeeds_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_airspeeds_t* airspeeds)
161 static inline uint16_t mavlink_msg_airspeeds_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_airspeeds_t* airspeeds)
163 return mavlink_msg_airspeeds_pack_chan(system_id, component_id, chan, msg, airspeeds->
time_boot_ms, airspeeds->
airspeed_imu, airspeeds->
airspeed_pitot, airspeeds->
airspeed_hot_wire, airspeeds->
airspeed_ultrasonic, airspeeds->
aoa, airspeeds->
aoy);
178 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
180 static inline void mavlink_msg_airspeeds_send(
mavlink_channel_t chan, uint32_t time_boot_ms, int16_t airspeed_imu, int16_t airspeed_pitot, int16_t airspeed_hot_wire, int16_t airspeed_ultrasonic, int16_t aoa, int16_t aoy)
182 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
192 #if MAVLINK_CRC_EXTRA
207 #if MAVLINK_CRC_EXTRA
215 #if MAVLINK_MSG_ID_AIRSPEEDS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
223 static inline void mavlink_msg_airspeeds_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t time_boot_ms, int16_t airspeed_imu, int16_t airspeed_pitot, int16_t airspeed_hot_wire, int16_t airspeed_ultrasonic, int16_t aoa, int16_t aoy)
225 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
226 char *buf = (
char *)msgbuf;
235 #if MAVLINK_CRC_EXTRA
250 #if MAVLINK_CRC_EXTRA
269 static inline uint32_t mavlink_msg_airspeeds_get_time_boot_ms(
const mavlink_message_t* msg)
271 return _MAV_RETURN_uint32_t(msg, 0);
279 static inline int16_t mavlink_msg_airspeeds_get_airspeed_imu(
const mavlink_message_t* msg)
281 return _MAV_RETURN_int16_t(msg, 4);
289 static inline int16_t mavlink_msg_airspeeds_get_airspeed_pitot(
const mavlink_message_t* msg)
291 return _MAV_RETURN_int16_t(msg, 6);
299 static inline int16_t mavlink_msg_airspeeds_get_airspeed_hot_wire(
const mavlink_message_t* msg)
301 return _MAV_RETURN_int16_t(msg, 8);
309 static inline int16_t mavlink_msg_airspeeds_get_airspeed_ultrasonic(
const mavlink_message_t* msg)
311 return _MAV_RETURN_int16_t(msg, 10);
319 static inline int16_t mavlink_msg_airspeeds_get_aoa(
const mavlink_message_t* msg)
321 return _MAV_RETURN_int16_t(msg, 12);
329 static inline int16_t mavlink_msg_airspeeds_get_aoy(
const mavlink_message_t* msg)
331 return _MAV_RETURN_int16_t(msg, 14);
340 static inline void mavlink_msg_airspeeds_decode(
const mavlink_message_t* msg,
mavlink_airspeeds_t* airspeeds)
342 #if MAVLINK_NEED_BYTE_SWAP
343 airspeeds->
time_boot_ms = mavlink_msg_airspeeds_get_time_boot_ms(msg);
344 airspeeds->
airspeed_imu = mavlink_msg_airspeeds_get_airspeed_imu(msg);
345 airspeeds->
airspeed_pitot = mavlink_msg_airspeeds_get_airspeed_pitot(msg);
348 airspeeds->
aoa = mavlink_msg_airspeeds_get_aoa(msg);
349 airspeeds->
aoy = mavlink_msg_airspeeds_get_aoy(msg);
#define MAVLINK_MSG_ID_AIRSPEEDS
Definition: mavlink_msg_airspeeds.h:3
int16_t airspeed_ultrasonic
Ultrasonic measured airspeed, cm/s.
Definition: mavlink_msg_airspeeds.h:11
#define MAVLINK_MSG_ID_AIRSPEEDS_LEN
Definition: mavlink_msg_airspeeds.h:16
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
Definition: mavlink_helpers.h:105
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
int16_t airspeed_imu
Airspeed estimate from IMU, cm/s.
Definition: mavlink_msg_airspeeds.h:8
mavlink_channel_t
Definition: mavlink_types.h:178
int16_t aoa
Angle of attack sensor, degrees * 10.
Definition: mavlink_msg_airspeeds.h:12
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_AIRSPEEDS_CRC
Definition: mavlink_msg_airspeeds.h:19
struct __mavlink_airspeeds_t mavlink_airspeeds_t
int16_t airspeed_pitot
Pitot measured forward airpseed, cm/s.
Definition: mavlink_msg_airspeeds.h:9
Definition: mavlink_msg_airspeeds.h:5
int16_t airspeed_hot_wire
Hot wire anenometer measured airspeed, cm/s.
Definition: mavlink_msg_airspeeds.h:10
int16_t aoy
Yaw angle sensor, degrees * 10.
Definition: mavlink_msg_airspeeds.h:13
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
Definition: mavlink_helpers.h:71
#define _mav_put_int16_t(buf, wire_offset, b)
Definition: protocol.h:140
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_airspeeds.h:7
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141