autogenerated headers for rev https://github.com/mavlink/mavlink/tree/9dbd2d84a4e9deda0949427b61099060e9f76f46
This commit is contained in:
+4
-4
File diff suppressed because one or more lines are too long
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 9084101608851080010
|
||||
#define MAVLINK_PRIMARY_XML_HASH 4986784805402970078
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+4
-4
File diff suppressed because one or more lines are too long
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -952748442946682569
|
||||
#define MAVLINK_PRIMARY_XML_HASH -231966827390156562
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 3747326469489463576
|
||||
#define MAVLINK_PRIMARY_XML_HASH -2661582773847479738
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 5777320573961671347
|
||||
#define MAVLINK_PRIMARY_XML_HASH 1262802830059902885
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+9
-6
File diff suppressed because one or more lines are too long
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 4611232045922358318
|
||||
#define MAVLINK_PRIMARY_XML_HASH 8124246799475264943
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
@@ -0,0 +1,484 @@
|
||||
#pragma once
|
||||
// MESSAGE CAMERA_THERMAL_RANGE PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE 277
|
||||
|
||||
|
||||
typedef struct __mavlink_camera_thermal_range_t {
|
||||
uint32_t time_boot_ms; /*< [ms] Timestamp (time since system boot).*/
|
||||
float max; /*< [degC] Temperature max.*/
|
||||
float max_point_x; /*< Temperature max point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.*/
|
||||
float max_point_y; /*< Temperature max point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.*/
|
||||
float min; /*< [degC] Temperature min.*/
|
||||
float min_point_x; /*< Temperature min point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.*/
|
||||
float min_point_y; /*< Temperature min point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.*/
|
||||
uint8_t stream_id; /*< Video Stream ID (1 for first, 2 for second, etc.)*/
|
||||
uint8_t camera_device_id; /*< Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id).*/
|
||||
} mavlink_camera_thermal_range_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN 30
|
||||
#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN 30
|
||||
#define MAVLINK_MSG_ID_277_LEN 30
|
||||
#define MAVLINK_MSG_ID_277_MIN_LEN 30
|
||||
|
||||
#define MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC 62
|
||||
#define MAVLINK_MSG_ID_277_CRC 62
|
||||
|
||||
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_CAMERA_THERMAL_RANGE { \
|
||||
277, \
|
||||
"CAMERA_THERMAL_RANGE", \
|
||||
9, \
|
||||
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_camera_thermal_range_t, time_boot_ms) }, \
|
||||
{ "stream_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 28, offsetof(mavlink_camera_thermal_range_t, stream_id) }, \
|
||||
{ "camera_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 29, offsetof(mavlink_camera_thermal_range_t, camera_device_id) }, \
|
||||
{ "max", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_camera_thermal_range_t, max) }, \
|
||||
{ "max_point_x", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_camera_thermal_range_t, max_point_x) }, \
|
||||
{ "max_point_y", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_camera_thermal_range_t, max_point_y) }, \
|
||||
{ "min", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_camera_thermal_range_t, min) }, \
|
||||
{ "min_point_x", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_camera_thermal_range_t, min_point_x) }, \
|
||||
{ "min_point_y", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_camera_thermal_range_t, min_point_y) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_CAMERA_THERMAL_RANGE { \
|
||||
"CAMERA_THERMAL_RANGE", \
|
||||
9, \
|
||||
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_camera_thermal_range_t, time_boot_ms) }, \
|
||||
{ "stream_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 28, offsetof(mavlink_camera_thermal_range_t, stream_id) }, \
|
||||
{ "camera_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 29, offsetof(mavlink_camera_thermal_range_t, camera_device_id) }, \
|
||||
{ "max", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_camera_thermal_range_t, max) }, \
|
||||
{ "max_point_x", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_camera_thermal_range_t, max_point_x) }, \
|
||||
{ "max_point_y", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_camera_thermal_range_t, max_point_y) }, \
|
||||
{ "min", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_camera_thermal_range_t, min) }, \
|
||||
{ "min_point_x", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_camera_thermal_range_t, min_point_x) }, \
|
||||
{ "min_point_y", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_camera_thermal_range_t, min_point_y) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a camera_thermal_range message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param time_boot_ms [ms] Timestamp (time since system boot).
|
||||
* @param stream_id Video Stream ID (1 for first, 2 for second, etc.)
|
||||
* @param camera_device_id Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id).
|
||||
* @param max [degC] Temperature max.
|
||||
* @param max_point_x Temperature max point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
* @param max_point_y Temperature max point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
* @param min [degC] Temperature min.
|
||||
* @param min_point_x Temperature min point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
* @param min_point_y Temperature min point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_camera_thermal_range_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
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)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, time_boot_ms);
|
||||
_mav_put_float(buf, 4, max);
|
||||
_mav_put_float(buf, 8, max_point_x);
|
||||
_mav_put_float(buf, 12, max_point_y);
|
||||
_mav_put_float(buf, 16, min);
|
||||
_mav_put_float(buf, 20, min_point_x);
|
||||
_mav_put_float(buf, 24, min_point_y);
|
||||
_mav_put_uint8_t(buf, 28, stream_id);
|
||||
_mav_put_uint8_t(buf, 29, camera_device_id);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
|
||||
#else
|
||||
mavlink_camera_thermal_range_t packet;
|
||||
packet.time_boot_ms = time_boot_ms;
|
||||
packet.max = max;
|
||||
packet.max_point_x = max_point_x;
|
||||
packet.max_point_y = max_point_y;
|
||||
packet.min = min;
|
||||
packet.min_point_x = min_point_x;
|
||||
packet.min_point_y = min_point_y;
|
||||
packet.stream_id = stream_id;
|
||||
packet.camera_device_id = camera_device_id;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a camera_thermal_range message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param status MAVLink status structure
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param time_boot_ms [ms] Timestamp (time since system boot).
|
||||
* @param stream_id Video Stream ID (1 for first, 2 for second, etc.)
|
||||
* @param camera_device_id Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id).
|
||||
* @param max [degC] Temperature max.
|
||||
* @param max_point_x Temperature max point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
* @param max_point_y Temperature max point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
* @param min [degC] Temperature min.
|
||||
* @param min_point_x Temperature min point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
* @param min_point_y Temperature min point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static 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,
|
||||
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)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, time_boot_ms);
|
||||
_mav_put_float(buf, 4, max);
|
||||
_mav_put_float(buf, 8, max_point_x);
|
||||
_mav_put_float(buf, 12, max_point_y);
|
||||
_mav_put_float(buf, 16, min);
|
||||
_mav_put_float(buf, 20, min_point_x);
|
||||
_mav_put_float(buf, 24, min_point_y);
|
||||
_mav_put_uint8_t(buf, 28, stream_id);
|
||||
_mav_put_uint8_t(buf, 29, camera_device_id);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
|
||||
#else
|
||||
mavlink_camera_thermal_range_t packet;
|
||||
packet.time_boot_ms = time_boot_ms;
|
||||
packet.max = max;
|
||||
packet.max_point_x = max_point_x;
|
||||
packet.max_point_y = max_point_y;
|
||||
packet.min = min;
|
||||
packet.min_point_x = min_point_x;
|
||||
packet.min_point_y = min_point_y;
|
||||
packet.stream_id = stream_id;
|
||||
packet.camera_device_id = camera_device_id;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE;
|
||||
#if MAVLINK_CRC_EXTRA
|
||||
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);
|
||||
#else
|
||||
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);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a camera_thermal_range message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param time_boot_ms [ms] Timestamp (time since system boot).
|
||||
* @param stream_id Video Stream ID (1 for first, 2 for second, etc.)
|
||||
* @param camera_device_id Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id).
|
||||
* @param max [degC] Temperature max.
|
||||
* @param max_point_x Temperature max point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
* @param max_point_y Temperature max point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
* @param min [degC] Temperature min.
|
||||
* @param min_point_x Temperature min point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
* @param min_point_y Temperature min point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_camera_thermal_range_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
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)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, time_boot_ms);
|
||||
_mav_put_float(buf, 4, max);
|
||||
_mav_put_float(buf, 8, max_point_x);
|
||||
_mav_put_float(buf, 12, max_point_y);
|
||||
_mav_put_float(buf, 16, min);
|
||||
_mav_put_float(buf, 20, min_point_x);
|
||||
_mav_put_float(buf, 24, min_point_y);
|
||||
_mav_put_uint8_t(buf, 28, stream_id);
|
||||
_mav_put_uint8_t(buf, 29, camera_device_id);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
|
||||
#else
|
||||
mavlink_camera_thermal_range_t packet;
|
||||
packet.time_boot_ms = time_boot_ms;
|
||||
packet.max = max;
|
||||
packet.max_point_x = max_point_x;
|
||||
packet.max_point_y = max_point_y;
|
||||
packet.min = min;
|
||||
packet.min_point_x = min_point_x;
|
||||
packet.min_point_y = min_point_y;
|
||||
packet.stream_id = stream_id;
|
||||
packet.camera_device_id = camera_device_id;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a camera_thermal_range struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param camera_thermal_range C-struct to read the message contents from
|
||||
*/
|
||||
static 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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a camera_thermal_range struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param camera_thermal_range C-struct to read the message contents from
|
||||
*/
|
||||
static 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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a camera_thermal_range struct with provided status structure
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param status MAVLink status structure
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param camera_thermal_range C-struct to read the message contents from
|
||||
*/
|
||||
static 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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a camera_thermal_range message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param time_boot_ms [ms] Timestamp (time since system boot).
|
||||
* @param stream_id Video Stream ID (1 for first, 2 for second, etc.)
|
||||
* @param camera_device_id Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id).
|
||||
* @param max [degC] Temperature max.
|
||||
* @param max_point_x Temperature max point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
* @param max_point_y Temperature max point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
* @param min [degC] Temperature min.
|
||||
* @param min_point_x Temperature min point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
* @param min_point_y Temperature min point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static 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)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, time_boot_ms);
|
||||
_mav_put_float(buf, 4, max);
|
||||
_mav_put_float(buf, 8, max_point_x);
|
||||
_mav_put_float(buf, 12, max_point_y);
|
||||
_mav_put_float(buf, 16, min);
|
||||
_mav_put_float(buf, 20, min_point_x);
|
||||
_mav_put_float(buf, 24, min_point_y);
|
||||
_mav_put_uint8_t(buf, 28, stream_id);
|
||||
_mav_put_uint8_t(buf, 29, camera_device_id);
|
||||
|
||||
_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);
|
||||
#else
|
||||
mavlink_camera_thermal_range_t packet;
|
||||
packet.time_boot_ms = time_boot_ms;
|
||||
packet.max = max;
|
||||
packet.max_point_x = max_point_x;
|
||||
packet.max_point_y = max_point_y;
|
||||
packet.min = min;
|
||||
packet.min_point_x = min_point_x;
|
||||
packet.min_point_y = min_point_y;
|
||||
packet.stream_id = stream_id;
|
||||
packet.camera_device_id = camera_device_id;
|
||||
|
||||
_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);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a camera_thermal_range message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_camera_thermal_range_send_struct(mavlink_channel_t chan, const mavlink_camera_thermal_range_t* camera_thermal_range)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
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);
|
||||
#else
|
||||
_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);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This variant of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static 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)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint32_t(buf, 0, time_boot_ms);
|
||||
_mav_put_float(buf, 4, max);
|
||||
_mav_put_float(buf, 8, max_point_x);
|
||||
_mav_put_float(buf, 12, max_point_y);
|
||||
_mav_put_float(buf, 16, min);
|
||||
_mav_put_float(buf, 20, min_point_x);
|
||||
_mav_put_float(buf, 24, min_point_y);
|
||||
_mav_put_uint8_t(buf, 28, stream_id);
|
||||
_mav_put_uint8_t(buf, 29, camera_device_id);
|
||||
|
||||
_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);
|
||||
#else
|
||||
mavlink_camera_thermal_range_t *packet = (mavlink_camera_thermal_range_t *)msgbuf;
|
||||
packet->time_boot_ms = time_boot_ms;
|
||||
packet->max = max;
|
||||
packet->max_point_x = max_point_x;
|
||||
packet->max_point_y = max_point_y;
|
||||
packet->min = min;
|
||||
packet->min_point_x = min_point_x;
|
||||
packet->min_point_y = min_point_y;
|
||||
packet->stream_id = stream_id;
|
||||
packet->camera_device_id = camera_device_id;
|
||||
|
||||
_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);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE CAMERA_THERMAL_RANGE UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field time_boot_ms from camera_thermal_range message
|
||||
*
|
||||
* @return [ms] Timestamp (time since system boot).
|
||||
*/
|
||||
static inline uint32_t mavlink_msg_camera_thermal_range_get_time_boot_ms(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field stream_id from camera_thermal_range message
|
||||
*
|
||||
* @return Video Stream ID (1 for first, 2 for second, etc.)
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_camera_thermal_range_get_stream_id(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 28);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field camera_device_id from camera_thermal_range message
|
||||
*
|
||||
* @return Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id).
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_camera_thermal_range_get_camera_device_id(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 29);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field max from camera_thermal_range message
|
||||
*
|
||||
* @return [degC] Temperature max.
|
||||
*/
|
||||
static inline float mavlink_msg_camera_thermal_range_get_max(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field max_point_x from camera_thermal_range message
|
||||
*
|
||||
* @return Temperature max point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
*/
|
||||
static inline float mavlink_msg_camera_thermal_range_get_max_point_x(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field max_point_y from camera_thermal_range message
|
||||
*
|
||||
* @return Temperature max point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
*/
|
||||
static inline float mavlink_msg_camera_thermal_range_get_max_point_y(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 12);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field min from camera_thermal_range message
|
||||
*
|
||||
* @return [degC] Temperature min.
|
||||
*/
|
||||
static inline float mavlink_msg_camera_thermal_range_get_min(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 16);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field min_point_x from camera_thermal_range message
|
||||
*
|
||||
* @return Temperature min point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
|
||||
*/
|
||||
static inline float mavlink_msg_camera_thermal_range_get_min_point_x(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 20);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field min_point_y from camera_thermal_range message
|
||||
*
|
||||
* @return Temperature min point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
|
||||
*/
|
||||
static inline float mavlink_msg_camera_thermal_range_get_min_point_y(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 24);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a camera_thermal_range message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param camera_thermal_range C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_camera_thermal_range_decode(const mavlink_message_t* msg, mavlink_camera_thermal_range_t* camera_thermal_range)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
camera_thermal_range->time_boot_ms = mavlink_msg_camera_thermal_range_get_time_boot_ms(msg);
|
||||
camera_thermal_range->max = mavlink_msg_camera_thermal_range_get_max(msg);
|
||||
camera_thermal_range->max_point_x = mavlink_msg_camera_thermal_range_get_max_point_x(msg);
|
||||
camera_thermal_range->max_point_y = mavlink_msg_camera_thermal_range_get_max_point_y(msg);
|
||||
camera_thermal_range->min = mavlink_msg_camera_thermal_range_get_min(msg);
|
||||
camera_thermal_range->min_point_x = mavlink_msg_camera_thermal_range_get_min_point_x(msg);
|
||||
camera_thermal_range->min_point_y = mavlink_msg_camera_thermal_range_get_min_point_y(msg);
|
||||
camera_thermal_range->stream_id = mavlink_msg_camera_thermal_range_get_stream_id(msg);
|
||||
camera_thermal_range->camera_device_id = mavlink_msg_camera_thermal_range_get_camera_device_id(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN? msg->len : MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN;
|
||||
memset(camera_thermal_range, 0, MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_LEN);
|
||||
memcpy(camera_thermal_range, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -10595,6 +10595,73 @@ static void mavlink_test_camera_tracking_geo_status(uint8_t system_id, uint8_t c
|
||||
#endif
|
||||
}
|
||||
|
||||
static void mavlink_test_camera_thermal_range(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_camera_thermal_range_t packet_in = {
|
||||
963497464,45.0,73.0,101.0,129.0,157.0,185.0,89,156
|
||||
};
|
||||
mavlink_camera_thermal_range_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.time_boot_ms = packet_in.time_boot_ms;
|
||||
packet1.max = packet_in.max;
|
||||
packet1.max_point_x = packet_in.max_point_x;
|
||||
packet1.max_point_y = packet_in.max_point_y;
|
||||
packet1.min = packet_in.min;
|
||||
packet1.min_point_x = packet_in.min_point_x;
|
||||
packet1.min_point_y = packet_in.min_point_y;
|
||||
packet1.stream_id = packet_in.stream_id;
|
||||
packet1.camera_device_id = packet_in.camera_device_id;
|
||||
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_camera_thermal_range_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_camera_thermal_range_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_camera_thermal_range_pack(system_id, component_id, &msg , packet1.time_boot_ms , packet1.stream_id , packet1.camera_device_id , packet1.max , packet1.max_point_x , packet1.max_point_y , packet1.min , packet1.min_point_x , packet1.min_point_y );
|
||||
mavlink_msg_camera_thermal_range_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_camera_thermal_range_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_boot_ms , packet1.stream_id , packet1.camera_device_id , packet1.max , packet1.max_point_x , packet1.max_point_y , packet1.min , packet1.min_point_x , packet1.min_point_y );
|
||||
mavlink_msg_camera_thermal_range_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_camera_thermal_range_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_camera_thermal_range_send(MAVLINK_COMM_1 , packet1.time_boot_ms , packet1.stream_id , packet1.camera_device_id , packet1.max , packet1.max_point_x , packet1.max_point_y , packet1.min , packet1.min_point_x , packet1.min_point_y );
|
||||
mavlink_msg_camera_thermal_range_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
#ifdef MAVLINK_HAVE_GET_MESSAGE_INFO
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_name("CAMERA_THERMAL_RANGE") != NULL);
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_id(MAVLINK_MSG_ID_CAMERA_THERMAL_RANGE) != NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void mavlink_test_gimbal_manager_information(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
@@ -14832,6 +14899,7 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
|
||||
mavlink_test_camera_fov_status(system_id, component_id, last_msg);
|
||||
mavlink_test_camera_tracking_image_status(system_id, component_id, last_msg);
|
||||
mavlink_test_camera_tracking_geo_status(system_id, component_id, last_msg);
|
||||
mavlink_test_camera_thermal_range(system_id, component_id, last_msg);
|
||||
mavlink_test_gimbal_manager_information(system_id, component_id, last_msg);
|
||||
mavlink_test_gimbal_manager_status(system_id, component_id, last_msg);
|
||||
mavlink_test_gimbal_manager_set_attitude(system_id, component_id, last_msg);
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_CSAIRLINK.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
|
||||
#endif
|
||||
|
||||
#define MAVLINK_CSAIRLINK_XML_HASH -5588295665590350729
|
||||
#define MAVLINK_CSAIRLINK_XML_HASH 3198532621292672889
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -5588295665590350729
|
||||
#define MAVLINK_PRIMARY_XML_HASH 3198532621292672889
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -6526995000316371147
|
||||
#define MAVLINK_PRIMARY_XML_HASH 6167109747720027298
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 6565761933078757271
|
||||
#define MAVLINK_PRIMARY_XML_HASH -5399971198284454765
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_ICAROUS.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
|
||||
#endif
|
||||
|
||||
#define MAVLINK_ICAROUS_XML_HASH -2046565271019379956
|
||||
#define MAVLINK_ICAROUS_XML_HASH 8116812674075202428
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -2046565271019379956
|
||||
#define MAVLINK_PRIMARY_XML_HASH 8116812674075202428
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 319237482061245797
|
||||
#define MAVLINK_PRIMARY_XML_HASH 9005768561801903779
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
@@ -3810,6 +3810,9 @@
|
||||
<entry value="2048" name="CAMERA_CAP_FLAGS_HAS_TRACKING_GEO_STATUS">
|
||||
<description>Camera supports tracking geo status (CAMERA_TRACKING_GEO_STATUS).</description>
|
||||
</entry>
|
||||
<entry value="4096" name="CAMERA_CAP_FLAGS_HAS_THERMAL_RANGE">
|
||||
<description>Camera supports absolute thermal range (request CAMERA_THERMAL_RANGE with MAV_CMD_REQUEST_MESSAGE) (WIP).</description>
|
||||
</entry>
|
||||
</enum>
|
||||
<enum name="VIDEO_STREAM_STATUS_FLAGS" bitmask="true">
|
||||
<description>Stream status flags (Bitmap)</description>
|
||||
@@ -3819,6 +3822,9 @@
|
||||
<entry value="2" name="VIDEO_STREAM_STATUS_FLAGS_THERMAL">
|
||||
<description>Stream is thermal imaging</description>
|
||||
</entry>
|
||||
<entry value="4" name="VIDEO_STREAM_STATUS_FLAGS_THERMAL_RANGE_ENABLED">
|
||||
<description>Stream can report absolute thermal range (see CAMERA_THERMAL_RANGE). (WIP).</description>
|
||||
</entry>
|
||||
</enum>
|
||||
<enum name="VIDEO_STREAM_TYPE">
|
||||
<description>Video stream types</description>
|
||||
@@ -7117,6 +7123,20 @@
|
||||
<extensions/>
|
||||
<field type="uint8_t" name="camera_device_id" default="0" minValue="0" maxValue="6">Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id).</field>
|
||||
</message>
|
||||
<message id="277" name="CAMERA_THERMAL_RANGE">
|
||||
<wip/>
|
||||
<!-- This message is work-in-progress and it can therefore change. It should NOT be used in stable production environments. -->
|
||||
<description>Camera absolute thermal range. This can be streamed when the associated `VIDEO_STREAM_STATUS.flag` bit `VIDEO_STREAM_STATUS_FLAGS_THERMAL_RANGE_ENABLED` is set, but a GCS may choose to only request it for the current active stream. Use MAV_CMD_SET_MESSAGE_INTERVAL to define message interval (param3 indicates the stream id of the current camera, or 0 for all streams, param4 indicates the target camera_device_id for autopilot-attached cameras or 0 for MAVLink cameras).</description>
|
||||
<field type="uint32_t" name="time_boot_ms" units="ms">Timestamp (time since system boot).</field>
|
||||
<field type="uint8_t" name="stream_id" minValue="1" instance="true">Video Stream ID (1 for first, 2 for second, etc.)</field>
|
||||
<field type="uint8_t" name="camera_device_id" default="0" minValue="0" maxValue="6">Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id).</field>
|
||||
<field type="float" name="max" units="degC">Temperature max.</field>
|
||||
<field type="float" name="max_point_x" invalid="NaN">Temperature max point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.</field>
|
||||
<field type="float" name="max_point_y" invalid="NaN">Temperature max point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.</field>
|
||||
<field type="float" name="min" units="degC">Temperature min.</field>
|
||||
<field type="float" name="min_point_x" invalid="NaN">Temperature min point x value (normalized 0..1, 0 is left, 1 is right), NAN if unknown.</field>
|
||||
<field type="float" name="min_point_y" invalid="NaN">Temperature min point y value (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.</field>
|
||||
</message>
|
||||
<message id="280" name="GIMBAL_MANAGER_INFORMATION">
|
||||
<description>Information about a high level gimbal manager. This message should be requested by a ground station using MAV_CMD_REQUEST_MESSAGE.</description>
|
||||
<field type="uint32_t" name="time_boot_ms" units="ms">Timestamp (time since system boot).</field>
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 486167578983562641
|
||||
#define MAVLINK_PRIMARY_XML_HASH -200597435601384471
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_MINIMAL.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
|
||||
#endif
|
||||
|
||||
#define MAVLINK_MINIMAL_XML_HASH 486167578983562641
|
||||
#define MAVLINK_MINIMAL_XML_HASH -200597435601384471
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 4654965843355623780
|
||||
#define MAVLINK_PRIMARY_XML_HASH 1928043746932448331
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 3923514138104690296
|
||||
#define MAVLINK_PRIMARY_XML_HASH -5702410572225043722
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -4931300619791155035
|
||||
#define MAVLINK_PRIMARY_XML_HASH 2679010608232100250
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_STANDARD.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
|
||||
#endif
|
||||
|
||||
#define MAVLINK_STANDARD_XML_HASH -4931300619791155035
|
||||
#define MAVLINK_STANDARD_XML_HASH 2679010608232100250
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 3918439675435538282
|
||||
#define MAVLINK_PRIMARY_XML_HASH 7600749433286581009
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+4
-4
File diff suppressed because one or more lines are too long
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 6225393734560229334
|
||||
#define MAVLINK_PRIMARY_XML_HASH 8973298974159805506
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_TEST.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
|
||||
#endif
|
||||
|
||||
#define MAVLINK_TEST_XML_HASH 6225393734560229334
|
||||
#define MAVLINK_TEST_XML_HASH 8973298974159805506
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 5719549313154198106
|
||||
#define MAVLINK_PRIMARY_XML_HASH -7216916041460243782
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+4
-4
File diff suppressed because one or more lines are too long
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -1117008711049275300
|
||||
#define MAVLINK_PRIMARY_XML_HASH -2316895174774584942
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+4
-4
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user