4#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE 277
17} mavlink_camera_thermal_range_t;
19#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN 30
20#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN 30
21#define MAVLINK_MSG_ID_277_LEN 30
22#define MAVLINK_MSG_ID_277_MIN_LEN 30
24#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC 62
25#define MAVLINK_MSG_ID_277_CRC 62
29#if MAVLINK_COMMAND_24BIT
30#define MAVLINK_MESSAGE_INFO_CAMERA_THERMAL_RANGE {
32 "CAMERA_THERMAL_RANGE",
34 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_camera_thermal_range_t, time_boot_ms) },
35 { "stream_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 28
, offsetof(mavlink_camera_thermal_range_t, stream_id) },
36 { "camera_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_camera_thermal_range_t, camera_device_id) },
37 { "max", NULL, MAVLINK_TYPE_FLOAT, 0
, 4
, offsetof(mavlink_camera_thermal_range_t, max) },
38 { "max_point_x", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_camera_thermal_range_t, max_point_x) },
39 { "max_point_y", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_camera_thermal_range_t, max_point_y) },
40 { "min", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_camera_thermal_range_t, min) },
41 { "min_point_x", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_camera_thermal_range_t, min_point_x) },
42 { "min_point_y", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_camera_thermal_range_t, min_point_y) },
44}
46#define MAVLINK_MESSAGE_INFO_CAMERA_THERMAL_RANGE {
47 "CAMERA_THERMAL_RANGE",
49 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_camera_thermal_range_t, time_boot_ms) },
50 { "stream_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 28
, offsetof(mavlink_camera_thermal_range_t, stream_id) },
51 { "camera_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_camera_thermal_range_t, camera_device_id) },
52 { "max", NULL, MAVLINK_TYPE_FLOAT, 0
, 4
, offsetof(mavlink_camera_thermal_range_t, max) },
53 { "max_point_x", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_camera_thermal_range_t, max_point_x) },
54 { "max_point_y", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_camera_thermal_range_t, max_point_y) },
55 { "min", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_camera_thermal_range_t, min) },
56 { "min_point_x", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_camera_thermal_range_t, min_point_x) },
57 { "min_point_y", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_camera_thermal_range_t, min_point_y) },
59}
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79static inline uint16_t mavlink_msg_camera_thermal_range_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
80 uint32_t time_boot_ms, uint8_t stream_id, uint8_t camera_device_id,
float max,
float max_point_x,
float max_point_y,
float min,
float min_point_x,
float min_point_y)
82#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
84 _mav_put_uint32_t(buf, 0, time_boot_ms);
85 _mav_put_float(buf, 4, max);
86 _mav_put_float(buf, 8, max_point_x);
87 _mav_put_float(buf, 12, max_point_y);
88 _mav_put_float(buf, 16, min);
89 _mav_put_float(buf, 20, min_point_x);
90 _mav_put_float(buf, 24, min_point_y);
91 _mav_put_uint8_t(buf, 28, stream_id);
92 _mav_put_uint8_t(buf, 29, camera_device_id);
96 mavlink_camera_thermal_range_t packet;
97 packet.time_boot_ms = time_boot_ms;
99 packet.max_point_x = max_point_x;
100 packet.max_point_y = max_point_y;
102 packet.min_point_x = min_point_x;
103 packet.min_point_y = min_point_y;
104 packet.stream_id = stream_id;
105 packet.camera_device_id = camera_device_id;
107 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132static inline uint16_t mavlink_msg_camera_thermal_range_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
133 uint32_t time_boot_ms, uint8_t stream_id, uint8_t camera_device_id,
float max,
float max_point_x,
float max_point_y,
float min,
float min_point_x,
float min_point_y)
135#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
137 _mav_put_uint32_t(buf, 0, time_boot_ms);
138 _mav_put_float(buf, 4, max);
139 _mav_put_float(buf, 8, max_point_x);
140 _mav_put_float(buf, 12, max_point_y);
141 _mav_put_float(buf, 16, min);
142 _mav_put_float(buf, 20, min_point_x);
143 _mav_put_float(buf, 24, min_point_y);
144 _mav_put_uint8_t(buf, 28, stream_id);
145 _mav_put_uint8_t(buf, 29, camera_device_id);
149 mavlink_camera_thermal_range_t packet;
150 packet.time_boot_ms = time_boot_ms;
152 packet.max_point_x = max_point_x;
153 packet.max_point_y = max_point_y;
155 packet.min_point_x = min_point_x;
156 packet.min_point_y = min_point_y;
157 packet.stream_id = stream_id;
158 packet.camera_device_id = camera_device_id;
160 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
165 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC);
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188static inline uint16_t mavlink_msg_camera_thermal_range_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
189 mavlink_message_t* msg,
190 uint32_t time_boot_ms,uint8_t stream_id,uint8_t camera_device_id,
float max,
float max_point_x,
float max_point_y,
float min,
float min_point_x,
float min_point_y)
192#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
194 _mav_put_uint32_t(buf, 0, time_boot_ms);
195 _mav_put_float(buf, 4, max);
196 _mav_put_float(buf, 8, max_point_x);
197 _mav_put_float(buf, 12, max_point_y);
198 _mav_put_float(buf, 16, min);
199 _mav_put_float(buf, 20, min_point_x);
200 _mav_put_float(buf, 24, min_point_y);
201 _mav_put_uint8_t(buf, 28, stream_id);
202 _mav_put_uint8_t(buf, 29, camera_device_id);
206 mavlink_camera_thermal_range_t packet;
207 packet.time_boot_ms = time_boot_ms;
209 packet.max_point_x = max_point_x;
210 packet.max_point_y = max_point_y;
212 packet.min_point_x = min_point_x;
213 packet.min_point_y = min_point_y;
214 packet.stream_id = stream_id;
215 packet.camera_device_id = camera_device_id;
217 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
225
226
227
228
229
230
231
232static inline uint16_t mavlink_msg_camera_thermal_range_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_camera_thermal_range_t* camera_thermal_range)
234 return mavlink_msg_camera_thermal_range_pack(system_id, component_id, msg, camera_thermal_range->time_boot_ms, camera_thermal_range->stream_id, camera_thermal_range->camera_device_id, camera_thermal_range->max, camera_thermal_range->max_point_x, camera_thermal_range->max_point_y, camera_thermal_range->min, camera_thermal_range->min_point_x, camera_thermal_range->min_point_y);
238
239
240
241
242
243
244
245
246static inline uint16_t mavlink_msg_camera_thermal_range_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_camera_thermal_range_t* camera_thermal_range)
248 return mavlink_msg_camera_thermal_range_pack_chan(system_id, component_id, chan, msg, camera_thermal_range->time_boot_ms, camera_thermal_range->stream_id, camera_thermal_range->camera_device_id, camera_thermal_range->max, camera_thermal_range->max_point_x, camera_thermal_range->max_point_y, camera_thermal_range->min, camera_thermal_range->min_point_x, camera_thermal_range->min_point_y);
252
253
254
255
256
257
258
259
260static inline uint16_t mavlink_msg_camera_thermal_range_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_camera_thermal_range_t* camera_thermal_range)
262 return mavlink_msg_camera_thermal_range_pack_status(system_id, component_id, _status, msg, camera_thermal_range->time_boot_ms, camera_thermal_range->stream_id, camera_thermal_range->camera_device_id, camera_thermal_range->max, camera_thermal_range->max_point_x, camera_thermal_range->max_point_y, camera_thermal_range->min, camera_thermal_range->min_point_x, camera_thermal_range->min_point_y);
266
267
268
269
270
271
272
273
274
275
276
277
278
279#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
281static inline void mavlink_msg_camera_thermal_range_send(mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t stream_id, uint8_t camera_device_id,
float max,
float max_point_x,
float max_point_y,
float min,
float min_point_x,
float min_point_y)
283#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
284 char buf[MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN];
285 _mav_put_uint32_t(buf, 0, time_boot_ms);
286 _mav_put_float(buf, 4, max);
287 _mav_put_float(buf, 8, max_point_x);
288 _mav_put_float(buf, 12, max_point_y);
289 _mav_put_float(buf, 16, min);
290 _mav_put_float(buf, 20, min_point_x);
291 _mav_put_float(buf, 24, min_point_y);
292 _mav_put_uint8_t(buf, 28, stream_id);
293 _mav_put_uint8_t(buf, 29, camera_device_id);
295 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE, buf, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC);
297 mavlink_camera_thermal_range_t packet;
298 packet.time_boot_ms = time_boot_ms;
300 packet.max_point_x = max_point_x;
301 packet.max_point_y = max_point_y;
303 packet.min_point_x = min_point_x;
304 packet.min_point_y = min_point_y;
305 packet.stream_id = stream_id;
306 packet.camera_device_id = camera_device_id;
308 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE, (
const char *)&packet, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC);
313
314
315
316
317static inline void mavlink_msg_camera_thermal_range_send_struct(mavlink_channel_t chan,
const mavlink_camera_thermal_range_t* camera_thermal_range)
319#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
320 mavlink_msg_camera_thermal_range_send(chan, camera_thermal_range->time_boot_ms, camera_thermal_range->stream_id, camera_thermal_range->camera_device_id, camera_thermal_range->max, camera_thermal_range->max_point_x, camera_thermal_range->max_point_y, camera_thermal_range->min, camera_thermal_range->min_point_x, camera_thermal_range->min_point_y);
322 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE, (
const char *)camera_thermal_range, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC);
326#if MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
328
329
330
331
332
333
334static inline void mavlink_msg_camera_thermal_range_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t stream_id, uint8_t camera_device_id,
float max,
float max_point_x,
float max_point_y,
float min,
float min_point_x,
float min_point_y)
336#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
337 char *buf = (
char *)msgbuf;
338 _mav_put_uint32_t(buf, 0, time_boot_ms);
339 _mav_put_float(buf, 4, max);
340 _mav_put_float(buf, 8, max_point_x);
341 _mav_put_float(buf, 12, max_point_y);
342 _mav_put_float(buf, 16, min);
343 _mav_put_float(buf, 20, min_point_x);
344 _mav_put_float(buf, 24, min_point_y);
345 _mav_put_uint8_t(buf, 28, stream_id);
346 _mav_put_uint8_t(buf, 29, camera_device_id);
348 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE, buf, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC);
350 mavlink_camera_thermal_range_t *packet = (mavlink_camera_thermal_range_t *)msgbuf;
351 packet->time_boot_ms = time_boot_ms;
353 packet->max_point_x = max_point_x;
354 packet->max_point_y = max_point_y;
356 packet->min_point_x = min_point_x;
357 packet->min_point_y = min_point_y;
358 packet->stream_id = stream_id;
359 packet->camera_device_id = camera_device_id;
361 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE, (
const char *)packet, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC);
372
373
374
375
376static inline uint32_t mavlink_msg_camera_thermal_range_get_time_boot_ms(
const mavlink_message_t* msg)
378 return _MAV_RETURN_uint32_t(msg, 0);
382
383
384
385
386static inline uint8_t mavlink_msg_camera_thermal_range_get_stream_id(
const mavlink_message_t* msg)
388 return _MAV_RETURN_uint8_t(msg, 28);
392
393
394
395
396static inline uint8_t mavlink_msg_camera_thermal_range_get_camera_device_id(
const mavlink_message_t* msg)
398 return _MAV_RETURN_uint8_t(msg, 29);
402
403
404
405
406static inline float mavlink_msg_camera_thermal_range_get_max(
const mavlink_message_t* msg)
408 return _MAV_RETURN_float(msg, 4);
412
413
414
415
416static inline float mavlink_msg_camera_thermal_range_get_max_point_x(
const mavlink_message_t* msg)
418 return _MAV_RETURN_float(msg, 8);
422
423
424
425
426static inline float mavlink_msg_camera_thermal_range_get_max_point_y(
const mavlink_message_t* msg)
428 return _MAV_RETURN_float(msg, 12);
432
433
434
435
436static inline float mavlink_msg_camera_thermal_range_get_min(
const mavlink_message_t* msg)
438 return _MAV_RETURN_float(msg, 16);
442
443
444
445
446static inline float mavlink_msg_camera_thermal_range_get_min_point_x(
const mavlink_message_t* msg)
448 return _MAV_RETURN_float(msg, 20);
452
453
454
455
456static inline float mavlink_msg_camera_thermal_range_get_min_point_y(
const mavlink_message_t* msg)
458 return _MAV_RETURN_float(msg, 24);
462
463
464
465
466
467static inline void mavlink_msg_camera_thermal_range_decode(
const mavlink_message_t* msg, mavlink_camera_thermal_range_t* camera_thermal_range)
469#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
470 camera_thermal_range->time_boot_ms = mavlink_msg_camera_thermal_range_get_time_boot_ms(msg);
471 camera_thermal_range->max = mavlink_msg_camera_thermal_range_get_max(msg);
472 camera_thermal_range->max_point_x = mavlink_msg_camera_thermal_range_get_max_point_x(msg);
473 camera_thermal_range->max_point_y = mavlink_msg_camera_thermal_range_get_max_point_y(msg);
474 camera_thermal_range->min = mavlink_msg_camera_thermal_range_get_min(msg);
475 camera_thermal_range->min_point_x = mavlink_msg_camera_thermal_range_get_min_point_x(msg);
476 camera_thermal_range->min_point_y = mavlink_msg_camera_thermal_range_get_min_point_y(msg);
477 camera_thermal_range->stream_id = mavlink_msg_camera_thermal_range_get_stream_id(msg);
478 camera_thermal_range->camera_device_id = mavlink_msg_camera_thermal_range_get_camera_device_id(msg);
480 uint8_t len = msg->len < MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN? msg->len : MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN;
481 memset(camera_thermal_range, 0, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
482 memcpy(camera_thermal_range, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN
Definition: mavlink_msg_camera_thermal_range.h:20
#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE
Definition: mavlink_msg_camera_thermal_range.h:4
#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC
Definition: mavlink_msg_camera_thermal_range.h:24
#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN
Definition: mavlink_msg_camera_thermal_range.h:19
Definition: mavlink_msg_camera_thermal_range.h:7
float max_point_x
Definition: mavlink_msg_camera_thermal_range.h:10
uint8_t stream_id
Definition: mavlink_msg_camera_thermal_range.h:15
float max
Definition: mavlink_msg_camera_thermal_range.h:9
uint8_t camera_device_id
Definition: mavlink_msg_camera_thermal_range.h:16
float min_point_x
Definition: mavlink_msg_camera_thermal_range.h:13
float min
Definition: mavlink_msg_camera_thermal_range.h:12
uint32_t time_boot_ms
Definition: mavlink_msg_camera_thermal_range.h:8
float max_point_y
Definition: mavlink_msg_camera_thermal_range.h:11
float min_point_y
Definition: mavlink_msg_camera_thermal_range.h:14