3 #define MAVLINK_MSG_ID_RADAR_VELOCITY_HIST 151
12 #define MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN 69
13 #define MAVLINK_MSG_ID_151_LEN 69
15 #define MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_CRC 37
16 #define MAVLINK_MSG_ID_151_CRC 37
18 #define MAVLINK_MSG_RADAR_VELOCITY_HIST_FIELD_VELOCITY_LEN 64
20 #define MAVLINK_MESSAGE_INFO_RADAR_VELOCITY_HIST { \
21 "RADAR_VELOCITY_HIST", \
23 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_radar_velocity_hist_t, time_boot_ms) }, \
24 { "sensor_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_radar_velocity_hist_t, sensor_id) }, \
25 { "velocity", NULL, MAVLINK_TYPE_UINT8_T, 64, 5, offsetof(mavlink_radar_velocity_hist_t, velocity) }, \
41 static inline uint16_t mavlink_msg_radar_velocity_hist_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
42 uint32_t time_boot_ms, uint8_t sensor_id,
const uint8_t *velocity)
44 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
45 char buf[MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN];
46 _mav_put_uint32_t(buf, 0, time_boot_ms);
47 _mav_put_uint8_t(buf, 4, sensor_id);
48 _mav_put_uint8_t_array(buf, 5, velocity, 64);
49 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
54 mav_array_memcpy(packet.
velocity, velocity,
sizeof(uint8_t)*64);
55 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
58 msg->msgid = MAVLINK_MSG_ID_RADAR_VELOCITY_HIST;
60 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_CRC);
62 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
77 static inline uint16_t mavlink_msg_radar_velocity_hist_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
78 mavlink_message_t* msg,
79 uint32_t time_boot_ms,uint8_t sensor_id,
const uint8_t *velocity)
81 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
82 char buf[MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN];
83 _mav_put_uint32_t(buf, 0, time_boot_ms);
84 _mav_put_uint8_t(buf, 4, sensor_id);
85 _mav_put_uint8_t_array(buf, 5, velocity, 64);
86 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
91 mav_array_memcpy(packet.
velocity, velocity,
sizeof(uint8_t)*64);
92 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
95 msg->msgid = MAVLINK_MSG_ID_RADAR_VELOCITY_HIST;
97 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_CRC);
99 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
111 static inline uint16_t mavlink_msg_radar_velocity_hist_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_radar_velocity_hist_t* radar_velocity_hist)
113 return mavlink_msg_radar_velocity_hist_pack(system_id, component_id, msg, radar_velocity_hist->
time_boot_ms, radar_velocity_hist->
sensor_id, radar_velocity_hist->
velocity);
125 static inline uint16_t mavlink_msg_radar_velocity_hist_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_radar_velocity_hist_t* radar_velocity_hist)
127 return mavlink_msg_radar_velocity_hist_pack_chan(system_id, component_id, chan, msg, radar_velocity_hist->
time_boot_ms, radar_velocity_hist->
sensor_id, radar_velocity_hist->
velocity);
138 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
140 static inline void mavlink_msg_radar_velocity_hist_send(mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t sensor_id,
const uint8_t *velocity)
142 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
143 char buf[MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN];
144 _mav_put_uint32_t(buf, 0, time_boot_ms);
145 _mav_put_uint8_t(buf, 4, sensor_id);
146 _mav_put_uint8_t_array(buf, 5, velocity, 64);
147 #if MAVLINK_CRC_EXTRA
148 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST, buf, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_CRC);
150 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST, buf, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
156 mav_array_memcpy(packet.
velocity, velocity,
sizeof(uint8_t)*64);
157 #if MAVLINK_CRC_EXTRA
158 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST, (
const char *)&packet, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_CRC);
160 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST, (
const char *)&packet, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
165 #if MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN <= MAVLINK_MAX_PAYLOAD_LEN
173 static inline void mavlink_msg_radar_velocity_hist_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t sensor_id,
const uint8_t *velocity)
175 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
176 char *buf = (
char *)msgbuf;
177 _mav_put_uint32_t(buf, 0, time_boot_ms);
178 _mav_put_uint8_t(buf, 4, sensor_id);
179 _mav_put_uint8_t_array(buf, 5, velocity, 64);
180 #if MAVLINK_CRC_EXTRA
181 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST, buf, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_CRC);
183 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST, buf, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
189 mav_array_memcpy(packet->
velocity, velocity,
sizeof(uint8_t)*64);
190 #if MAVLINK_CRC_EXTRA
191 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST, (
const char *)packet, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_CRC);
193 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST, (
const char *)packet, MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
209 static inline uint32_t mavlink_msg_radar_velocity_hist_get_time_boot_ms(
const mavlink_message_t* msg)
211 return _MAV_RETURN_uint32_t(msg, 0);
219 static inline uint8_t mavlink_msg_radar_velocity_hist_get_sensor_id(
const mavlink_message_t* msg)
221 return _MAV_RETURN_uint8_t(msg, 4);
229 static inline uint16_t mavlink_msg_radar_velocity_hist_get_velocity(
const mavlink_message_t* msg, uint8_t *velocity)
231 return _MAV_RETURN_uint8_t_array(msg, velocity, 64, 5);
242 #if MAVLINK_NEED_BYTE_SWAP
243 radar_velocity_hist->
time_boot_ms = mavlink_msg_radar_velocity_hist_get_time_boot_ms(msg);
244 radar_velocity_hist->
sensor_id = mavlink_msg_radar_velocity_hist_get_sensor_id(msg);
245 mavlink_msg_radar_velocity_hist_get_velocity(msg, radar_velocity_hist->
velocity);
247 memcpy(radar_velocity_hist, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_RADAR_VELOCITY_HIST_LEN);
uint8_t velocity[64]
Velocity field.
Definition: mavlink_msg_radar_velocity_hist.h:9
Definition: mavlink_msg_radar_velocity_hist.h:5
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_radar_velocity_hist.h:7
uint8_t sensor_id
Sensor ID.
Definition: mavlink_msg_radar_velocity_hist.h:8