Commit cc6cc208 authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/6017259add5b43eeb6e797bf8ccf04f02fa30b3c
parent 35ec4b12
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#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 "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#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 "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
This diff is collapsed.
......@@ -9910,6 +9910,67 @@ static void mavlink_test_odometry(uint8_t system_id, uint8_t component_id, mavli
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_trajectory(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_TRAJECTORY >= 256) {
return;
}
#endif
mavlink_message_t msg;
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_trajectory_t packet_in = {
93372036854775807ULL,{ 73.0, 74.0, 75.0, 76.0, 77.0, 78.0, 79.0, 80.0, 81.0, 82.0, 83.0 },{ 381.0, 382.0, 383.0, 384.0, 385.0, 386.0, 387.0, 388.0, 389.0, 390.0, 391.0 },{ 689.0, 690.0, 691.0, 692.0, 693.0, 694.0, 695.0, 696.0, 697.0, 698.0, 699.0 },{ 997.0, 998.0, 999.0, 1000.0, 1001.0, 1002.0, 1003.0, 1004.0, 1005.0, 1006.0, 1007.0 },{ 1305.0, 1306.0, 1307.0, 1308.0, 1309.0, 1310.0, 1311.0, 1312.0, 1313.0, 1314.0, 1315.0 },177,{ 244, 245, 246, 247, 248 }
};
mavlink_trajectory_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
packet1.time_usec = packet_in.time_usec;
packet1.type = packet_in.type;
mav_array_memcpy(packet1.point_1, packet_in.point_1, sizeof(float)*11);
mav_array_memcpy(packet1.point_2, packet_in.point_2, sizeof(float)*11);
mav_array_memcpy(packet1.point_3, packet_in.point_3, sizeof(float)*11);
mav_array_memcpy(packet1.point_4, packet_in.point_4, sizeof(float)*11);
mav_array_memcpy(packet1.point_5, packet_in.point_5, sizeof(float)*11);
mav_array_memcpy(packet1.point_valid, packet_in.point_valid, sizeof(uint8_t)*5);
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_TRAJECTORY_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_TRAJECTORY_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_trajectory_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_trajectory_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_trajectory_pack(system_id, component_id, &msg , packet1.time_usec , packet1.type , packet1.point_1 , packet1.point_2 , packet1.point_3 , packet1.point_4 , packet1.point_5 , packet1.point_valid );
mavlink_msg_trajectory_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_trajectory_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_usec , packet1.type , packet1.point_1 , packet1.point_2 , packet1.point_3 , packet1.point_4 , packet1.point_5 , packet1.point_valid );
mavlink_msg_trajectory_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_trajectory_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_trajectory_send(MAVLINK_COMM_1 , packet1.time_usec , packet1.type , packet1.point_1 , packet1.point_2 , packet1.point_3 , packet1.point_4 , packet1.point_5 , packet1.point_valid );
mavlink_msg_trajectory_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
mavlink_test_heartbeat(system_id, component_id, last_msg);
......@@ -10075,6 +10136,7 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
mavlink_test_param_ext_ack(system_id, component_id, last_msg);
mavlink_test_obstacle_distance(system_id, component_id, last_msg);
mavlink_test_odometry(system_id, component_id, last_msg);
mavlink_test_trajectory(system_id, component_id, last_msg);
}
#ifdef __cplusplus
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#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 "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#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 "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -2904,6 +2904,31 @@
<description>Spektrum DSMX</description>
</entry>
</enum>
<enum name="MAV_TRAJECTORY_REPRESENTATION">
<description>Enumeration of possible waypoint/trajectory representation</description>
<entry value="0" name="MAV_TRAJECTORY_REPRESENTATION_WAYPOINTS">
<description>Array of waypoints with the following order</description>
<param index="1">X-coordinate of waypoint [m], set to NaN if not being used</param>
<param index="2">Y-coordinate of waypoint [m], set to NaN if not being used</param>
<param index="3">Z-coordinate of waypoint [m], set to NaN if not being used</param>
<param index="4">X-velocity of waypoint [m/s], set to NaN if not being used</param>
<param index="5">Y-velocity of waypoint [m/s], set to NaN if not being used</param>
<param index="6">Z-velocity of waypoint [m/s], set to NaN if not being used</param>
<param index="7">X-acceleration of waypoint [m/s/s], set to NaN if not being used</param>
<param index="8">Y-acceleration of waypoint [m/s/s], set to NaN if not being used</param>
<param index="9">Z-acceleration of waypoint [m/s/s], set to NaN if not being used</param>
<param index="10">Yaw [rad], set to NaN for unchanged</param>
<param index="11">Yaw-rate [rad/s], set to NaN for unchanged</param>
</entry>
<entry value="1" name="MAV_TRAJECTORY_REPRESENTATION_BEZIER">
<description>Array of bezier points with the following order</description>
<param index="1">X-coordinate of starting bezier point [m], set to NaN if not being used</param>
<param index="2">Y-coordinate of starting bezier point [m], set to NaN if not being used</param>
<param index="3">Z-coordinate of starting bezier point [m], set to NaN if not being used</param>
<param index="4">Bezier time horizon [s], set to NaN if velocity/acceleration should not be incorporated</param>
<param index="5">Yaw [rad], set to NaN for unchanged</param>
</entry>
</enum>
</enums>
<messages>
<message id="0" name="HEARTBEAT">
......@@ -4670,5 +4695,16 @@
<field type="float[21]" name="pose_covariance">Pose (states: x, y, z, roll, pitch, yaw) covariance matrix upper right triangle (first six entries are the first ROW, next five entries are the second ROW, etc.)</field>
<field type="float[21]" name="twist_covariance">Twist (states: vx, vy, vz, rollspeed, pitchspeed, yawspeed) covariance matrix upper right triangle (first six entries are the first ROW, next five entries are the second ROW, etc.)</field>
</message>
<message id="332" name="TRAJECTORY">
<description>Message to describe a trajectory in the local frame. Supported trajectory types are enumerated in MAV_TRAJECTORY_REPRESENTATION</description>
<field type="uint64_t" name="time_usec" units="us">Timestamp (microseconds since system boot or since UNIX epoch).</field>
<field type="uint8_t" name="type" enum="MAV_TRAJECTORY_REPRESENTATION">Waypoints, Bezier etc. see MAV_TRAJECTORY_REPRESENTATION</field>
<field type="float[11]" name="point_1">Depending on the type (see MAV_TRAJECTORY_REPRESENTATION)</field>
<field type="float[11]" name="point_2">Depending on the type (see MAV_TRAJECTORY_REPRESENTATION)</field>
<field type="float[11]" name="point_3">Depending on the type (see MAV_TRAJECTORY_REPRESENTATION)</field>
<field type="float[11]" name="point_4">Depending on the type (see MAV_TRAJECTORY_REPRESENTATION)</field>
<field type="float[11]" name="point_5">Depending on the type (see MAV_TRAJECTORY_REPRESENTATION)</field>
<field type="uint8_t[5]" name="point_valid">States if respective point is valid (boolean)</field>
</message>
</messages>
</mavlink>
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 9
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#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 "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#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 "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#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 "Fri Apr 27 2018"
#define MAVLINK_BUILD_DATE "Sun Apr 29 2018"
#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