Commit 3797967a authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/c1dfa8771b2a9349e11db91d33d7dc37eed0b6d9
parent 57be0ae2
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
This diff is collapsed.
......@@ -11,7 +11,7 @@ typedef struct __mavlink_camera_image_captured_t {
int32_t lon; /*< [degE7] Longitude where capture was taken*/
int32_t alt; /*< [mm] Altitude (MSL) where image was taken*/
int32_t relative_alt; /*< [mm] Altitude above ground*/
float q[4]; /*< Quaternion of camera orientation (w, x, y, z order, zero-rotation is 0, 0, 0, 0)*/
float q[4]; /*< Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)*/
int32_t image_index; /*< Zero based index of this image (i.e. a new image will have index CAMERA_CAPTURE_STATUS.image count -1)*/
uint8_t camera_id; /*< Deprecated/unused. Component IDs are used to differentiate multiple cameras.*/
int8_t capture_result; /*< Boolean indicating success (1) or failure (0) while capturing this image.*/
......@@ -79,7 +79,7 @@ typedef struct __mavlink_camera_image_captured_t {
* @param lon [degE7] Longitude where capture was taken
* @param alt [mm] Altitude (MSL) where image was taken
* @param relative_alt [mm] Altitude above ground
* @param q Quaternion of camera orientation (w, x, y, z order, zero-rotation is 0, 0, 0, 0)
* @param q Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param image_index Zero based index of this image (i.e. a new image will have index CAMERA_CAPTURE_STATUS.image count -1)
* @param capture_result Boolean indicating success (1) or failure (0) while capturing this image.
* @param file_url URL of image taken. Either local storage or http://foo.jpg if camera provides an HTTP interface.
......@@ -135,7 +135,7 @@ static inline uint16_t mavlink_msg_camera_image_captured_pack(uint8_t system_id,
* @param lon [degE7] Longitude where capture was taken
* @param alt [mm] Altitude (MSL) where image was taken
* @param relative_alt [mm] Altitude above ground
* @param q Quaternion of camera orientation (w, x, y, z order, zero-rotation is 0, 0, 0, 0)
* @param q Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param image_index Zero based index of this image (i.e. a new image will have index CAMERA_CAPTURE_STATUS.image count -1)
* @param capture_result Boolean indicating success (1) or failure (0) while capturing this image.
* @param file_url URL of image taken. Either local storage or http://foo.jpg if camera provides an HTTP interface.
......@@ -217,7 +217,7 @@ static inline uint16_t mavlink_msg_camera_image_captured_encode_chan(uint8_t sys
* @param lon [degE7] Longitude where capture was taken
* @param alt [mm] Altitude (MSL) where image was taken
* @param relative_alt [mm] Altitude above ground
* @param q Quaternion of camera orientation (w, x, y, z order, zero-rotation is 0, 0, 0, 0)
* @param q Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param image_index Zero based index of this image (i.e. a new image will have index CAMERA_CAPTURE_STATUS.image count -1)
* @param capture_result Boolean indicating success (1) or failure (0) while capturing this image.
* @param file_url URL of image taken. Either local storage or http://foo.jpg if camera provides an HTTP interface.
......@@ -391,7 +391,7 @@ static inline int32_t mavlink_msg_camera_image_captured_get_relative_alt(const m
/**
* @brief Get field q from camera_image_captured message
*
* @return Quaternion of camera orientation (w, x, y, z order, zero-rotation is 0, 0, 0, 0)
* @return Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
*/
static inline uint16_t mavlink_msg_camera_image_captured_get_q(const mavlink_message_t* msg, float *q)
{
......
......@@ -9590,6 +9590,69 @@ static void mavlink_test_video_stream_status(uint8_t system_id, uint8_t componen
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_camera_fov_status(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_FOV_STATUS >= 256) {
return;
}
#endif
mavlink_message_t msg;
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_camera_fov_status_t packet_in = {
963497464,963497672,963497880,963498088,963498296,963498504,963498712,{ 213.0, 214.0, 215.0, 216.0 },325.0,353.0
};
mavlink_camera_fov_status_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
packet1.time_boot_ms = packet_in.time_boot_ms;
packet1.lat_camera = packet_in.lat_camera;
packet1.lon_camera = packet_in.lon_camera;
packet1.alt_camera = packet_in.alt_camera;
packet1.lat_image = packet_in.lat_image;
packet1.lon_image = packet_in.lon_image;
packet1.alt_image = packet_in.alt_image;
packet1.hfov = packet_in.hfov;
packet1.vfov = packet_in.vfov;
mav_array_memcpy(packet1.q, packet_in.q, sizeof(float)*4);
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_CAMERA_FOV_STATUS_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_CAMERA_FOV_STATUS_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_camera_fov_status_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_camera_fov_status_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_camera_fov_status_pack(system_id, component_id, &msg , packet1.time_boot_ms , packet1.lat_camera , packet1.lon_camera , packet1.alt_camera , packet1.lat_image , packet1.lon_image , packet1.alt_image , packet1.q , packet1.hfov , packet1.vfov );
mavlink_msg_camera_fov_status_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_camera_fov_status_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_boot_ms , packet1.lat_camera , packet1.lon_camera , packet1.alt_camera , packet1.lat_image , packet1.lon_image , packet1.alt_image , packet1.q , packet1.hfov , packet1.vfov );
mavlink_msg_camera_fov_status_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_fov_status_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_camera_fov_status_send(MAVLINK_COMM_1 , packet1.time_boot_ms , packet1.lat_camera , packet1.lon_camera , packet1.alt_camera , packet1.lat_image , packet1.lon_image , packet1.alt_image , packet1.q , packet1.hfov , packet1.vfov );
mavlink_msg_camera_fov_status_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
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
......@@ -13015,6 +13078,7 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
mavlink_test_logging_ack(system_id, component_id, last_msg);
mavlink_test_video_stream_information(system_id, component_id, last_msg);
mavlink_test_video_stream_status(system_id, component_id, last_msg);
mavlink_test_camera_fov_status(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);
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -6447,7 +6447,7 @@
<field type="int32_t" name="lon" units="degE7">Longitude where capture was taken</field>
<field type="int32_t" name="alt" units="mm">Altitude (MSL) where image was taken</field>
<field type="int32_t" name="relative_alt" units="mm">Altitude above ground</field>
<field type="float[4]" name="q">Quaternion of camera orientation (w, x, y, z order, zero-rotation is 0, 0, 0, 0)</field>
<field type="float[4]" name="q">Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)</field>
<field type="int32_t" name="image_index">Zero based index of this image (i.e. a new image will have index CAMERA_CAPTURE_STATUS.image count -1)</field>
<field type="int8_t" name="capture_result">Boolean indicating success (1) or failure (0) while capturing this image.</field>
<field type="char[205]" name="file_url">URL of image taken. Either local storage or http://foo.jpg if camera provides an HTTP interface.</field>
......@@ -6525,6 +6525,21 @@
<field type="uint16_t" name="rotation" units="deg">Video image rotation clockwise</field>
<field type="uint16_t" name="hfov" units="deg">Horizontal Field of view</field>
</message>
<message id="271" name="CAMERA_FOV_STATUS">
<wip/>
<!-- This message is work-in-progress and it can therefore change. It should NOT be used in stable production environments. -->
<description>Information about the field of view of a camera. Can be requested with a MAV_CMD_REQUEST_MESSAGE command.</description>
<field type="uint32_t" name="time_boot_ms" units="ms">Timestamp (time since system boot).</field>
<field type="int32_t" name="lat_camera" units="degE7">Latitude of camera (INT32_MAX if unknown).</field>
<field type="int32_t" name="lon_camera" units="degE7">Longitude of camera (INT32_MAX if unknown).</field>
<field type="int32_t" name="alt_camera" units="mm">Altitude (MSL) of camera (INT32_MAX if unknown).</field>
<field type="int32_t" name="lat_image" units="degE7">Latitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon).</field>
<field type="int32_t" name="lon_image" units="degE7">Longitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon).</field>
<field type="int32_t" name="alt_image" units="mm">Altitude (MSL) of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon).</field>
<field type="float[4]" name="q">Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)</field>
<field type="float" name="hfov" units="deg">Horizontal field of view (NaN if unknown).</field>
<field type="float" name="vfov" units="deg">Vertical field of view (NaN if unknown).</field>
</message>
<message id="280" name="GIMBAL_MANAGER_INFORMATION">
<wip/>
<!-- This message is work-in-progress and it can therefore change. It should NOT be used in stable production environments. -->
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 179
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sat Aug 01 2020"
#define MAVLINK_BUILD_DATE "Mon Aug 03 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment