Commit e2e18dc2 authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/cd811a0bd4b3988f207497eb344e49597b2ea06b
parent 408a7bed
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 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 "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 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 "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 2018"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
This diff is collapsed.
......@@ -10037,6 +10037,77 @@ static void mavlink_test_trajectory_representation_bezier(uint8_t system_id, uin
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_utm_global_position(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_UTM_GLOBAL_POSITION >= 256) {
return;
}
#endif
mavlink_message_t msg;
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_utm_global_position_t packet_in = {
93372036854775807ULL,963497880,963498088,963498296,963498504,963498712,963498920,963499128,19107,19211,19315,19419,19523,19627,19731,{ 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44 },209,20
};
mavlink_utm_global_position_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
packet1.time = packet_in.time;
packet1.lat = packet_in.lat;
packet1.lon = packet_in.lon;
packet1.alt = packet_in.alt;
packet1.relative_alt = packet_in.relative_alt;
packet1.next_lat = packet_in.next_lat;
packet1.next_lon = packet_in.next_lon;
packet1.next_alt = packet_in.next_alt;
packet1.vx = packet_in.vx;
packet1.vy = packet_in.vy;
packet1.vz = packet_in.vz;
packet1.h_acc = packet_in.h_acc;
packet1.v_acc = packet_in.v_acc;
packet1.vel_acc = packet_in.vel_acc;
packet1.update_rate = packet_in.update_rate;
packet1.flight_state = packet_in.flight_state;
packet1.flags = packet_in.flags;
mav_array_memcpy(packet1.uas_id, packet_in.uas_id, sizeof(uint8_t)*18);
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_utm_global_position_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_utm_global_position_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_utm_global_position_pack(system_id, component_id, &msg , packet1.time , packet1.uas_id , packet1.lat , packet1.lon , packet1.alt , packet1.relative_alt , packet1.vx , packet1.vy , packet1.vz , packet1.h_acc , packet1.v_acc , packet1.vel_acc , packet1.next_lat , packet1.next_lon , packet1.next_alt , packet1.update_rate , packet1.flight_state , packet1.flags );
mavlink_msg_utm_global_position_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_utm_global_position_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time , packet1.uas_id , packet1.lat , packet1.lon , packet1.alt , packet1.relative_alt , packet1.vx , packet1.vy , packet1.vz , packet1.h_acc , packet1.v_acc , packet1.vel_acc , packet1.next_lat , packet1.next_lon , packet1.next_alt , packet1.update_rate , packet1.flight_state , packet1.flags );
mavlink_msg_utm_global_position_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_utm_global_position_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_utm_global_position_send(MAVLINK_COMM_1 , packet1.time , packet1.uas_id , packet1.lat , packet1.lon , packet1.alt , packet1.relative_alt , packet1.vx , packet1.vy , packet1.vz , packet1.h_acc , packet1.v_acc , packet1.vel_acc , packet1.next_lat , packet1.next_lon , packet1.next_alt , packet1.update_rate , packet1.flight_state , packet1.flags );
mavlink_msg_utm_global_position_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_debug_float_array(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
......@@ -10320,6 +10391,7 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
mavlink_test_odometry(system_id, component_id, last_msg);
mavlink_test_trajectory_representation_waypoints(system_id, component_id, last_msg);
mavlink_test_trajectory_representation_bezier(system_id, component_id, last_msg);
mavlink_test_utm_global_position(system_id, component_id, last_msg);
mavlink_test_debug_float_array(system_id, component_id, last_msg);
mavlink_test_orbit_execution_status(system_id, component_id, last_msg);
}
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 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 "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 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 "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 2018"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -2998,6 +2998,51 @@
<description>Ignore yaw rate</description>
</entry>
</enum>
<enum name="UTM_FLIGHT_STATE">
<description>Airborne status of UAS.</description>
<entry value="1" name="UTM_FLIGHT_STATE_UNKNOWN">
<description>The flight state can't be determined.</description>
</entry>
<entry value="2" name="UTM_FLIGHT_STATE_GROUND">
<description>UAS on ground.</description>
</entry>
<entry value="3" name="UTM_FLIGHT_STATE_AIRBORNE">
<description>UAS airborne.</description>
</entry>
<entry value="16" name="UTM_FLIGHT_STATE_EMERGENCY">
<description>UAS is in an emergency flight state.</description>
</entry>
<entry value="32" name="UTM_FLIGHT_STATE_NOCTRL">
<description>UAS has no active controls.</description>
</entry>
</enum>
<enum name="UTM_DATA_AVAIL_FLAGS">
<description>Flags for the global position report.</description>
<entry value="1" name="UTM_DATA_AVAIL_FLAGS_TIME_VALID">
<description>The field time contains valid data.</description>
</entry>
<entry value="2" name="UTM_DATA_AVAIL_FLAGS_UAS_ID_AVAILABLE">
<description>The field uas_id contains valid data.</description>
</entry>
<entry value="4" name="UTM_DATA_AVAIL_FLAGS_POSITION_AVAILABLE">
<description>The fields lat, lon and h_acc contain valid data.</description>
</entry>
<entry value="8" name="UTM_DATA_AVAIL_FLAGS_ALTITUDE_AVAILABLE">
<description>The fields alt and v_acc contain valid data.</description>
</entry>
<entry value="16" name="UTM_DATA_AVAIL_FLAGS_RELATIVE_ALTITUDE_AVAILABLE">
<description>The field relative_alt contains valid data.</description>
</entry>
<entry value="32" name="UTM_DATA_AVAIL_FLAGS_HORIZONTAL_VELO_AVAILABLE">
<description>The fields vx and vy contain valid data.</description>
</entry>
<entry value="64" name="UTM_DATA_AVAIL_FLAGS_VERTICAL_VELO_AVAILABLE">
<description>The field vz contains valid data.</description>
</entry>
<entry value="128" name="UTM_DATA_AVAIL_FLAGS_NEXT_WAYPOINT_AVAILABLE">
<description>The fields next_lat, next_lon and next_alt contain valid data.</description>
</entry>
</enum>
</enums>
<messages>
<message id="0" name="HEARTBEAT">
......@@ -4821,6 +4866,29 @@
<field type="float[5]" name="delta" units="s">Bezier time horizon, set to NaN if velocity/acceleration should not be incorporated</field>
<field type="float[5]" name="pos_yaw" units="rad">Yaw, set to NaN for unchanged</field>
</message>
<message id="340" name="UTM_GLOBAL_POSITION">
<wip/>
<!-- This message is work-in-progress it can therefore change, and should NOT be used in stable production environments -->
<description>The global position resulting from GPS and sensor fusion.</description>
<field type="uint64_t" name="time" units="us">Time of applicability of position (microseconds since UNIX epoch).</field>
<field type="uint8_t[18]" name="uas_id">Unique UAS ID.</field>
<field type="int32_t" name="lat" units="degE7">Latitude (WGS84)</field>
<field type="int32_t" name="lon" units="degE7">Longitude (WGS84)</field>
<field type="int32_t" name="alt" units="mm">Altitude (WGS84)</field>
<field type="int32_t" name="relative_alt" units="mm">Altitude above ground</field>
<field type="int16_t" name="vx" units="cm/s">Ground X speed (latitude, positive north)</field>
<field type="int16_t" name="vy" units="cm/s">Ground Y speed (longitude, positive east)</field>
<field type="int16_t" name="vz" units="cm/s">Ground Z speed (altitude, positive down)</field>
<field type="uint16_t" name="h_acc" units="mm">Horizontal position uncertainty (standard deviation)</field>
<field type="uint16_t" name="v_acc" units="mm">Altitude uncertainty (standard deviation)</field>
<field type="uint16_t" name="vel_acc" units="cm/s">Speed uncertainty (standard deviation)</field>
<field type="int32_t" name="next_lat" units="degE7">Next waypoint, latitude (WGS84)</field>
<field type="int32_t" name="next_lon" units="degE7">Next waypoint, longitude (WGS84)</field>
<field type="int32_t" name="next_alt" units="mm">Next waypoint, altitude (WGS84)</field>
<field type="uint16_t" name="update_rate">Seconds * 1E2 until next update. Set to 0 if unknown or in data driven mode.</field>
<field type="uint8_t" name="flight_state" enum="UTM_FLIGHT_STATE">Flight state</field>
<field type="uint8_t" name="flags" enum="UTM_DATA_AVAIL_FLAGS">Bitwise OR combination of the data available flags.</field>
</message>
<message id="350" name="DEBUG_FLOAT_ARRAY">
<description>Large debug/prototyping array. The message uses the maximum available payload for data. The array_id and name fields are used to discriminate between messages in code and in user interfaces (respectively). Do not use in production code.</description>
<field type="uint64_t" name="time_usec" units="us">Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.</field>
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 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 "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 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 "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 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 "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 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 "Tue Nov 13 2018"
#define MAVLINK_BUILD_DATE "Thu Nov 15 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