Commit bf251cae authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/77460daabc813ca40398612851125fe75050aa82
parent e1af40e8
This diff is collapsed.
......@@ -5,7 +5,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Mar 15 2016"
#define MAVLINK_BUILD_DATE "Sat Mar 19 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "1.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -5,7 +5,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Mar 15 2016"
#define MAVLINK_BUILD_DATE "Sat Mar 19 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "1.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -5,7 +5,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Mar 15 2016"
#define MAVLINK_BUILD_DATE "Sat Mar 19 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "1.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
This diff is collapsed.
......@@ -5449,6 +5449,59 @@ static void mavlink_test_scaled_pressure3(uint8_t system_id, uint8_t component_i
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_follow_target(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
mavlink_message_t msg;
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_follow_target_t packet_in = {
93372036854775807ULL,93372036854776311ULL,963498296,963498504,185.0,{ 213.0, 214.0, 215.0 },{ 297.0, 298.0, 299.0 },{ 381.0, 382.0, 383.0, 384.0 },{ 493.0, 494.0, 495.0 },{ 577.0, 578.0, 579.0 },25
};
mavlink_follow_target_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
packet1.timestamp = packet_in.timestamp;
packet1.custom_state = packet_in.custom_state;
packet1.lat = packet_in.lat;
packet1.lon = packet_in.lon;
packet1.alt = packet_in.alt;
packet1.est_capabilities = packet_in.est_capabilities;
mav_array_memcpy(packet1.vel, packet_in.vel, sizeof(float)*3);
mav_array_memcpy(packet1.acc, packet_in.acc, sizeof(float)*3);
mav_array_memcpy(packet1.attitude_q, packet_in.attitude_q, sizeof(float)*4);
mav_array_memcpy(packet1.rates, packet_in.rates, sizeof(float)*3);
mav_array_memcpy(packet1.position_cov, packet_in.position_cov, sizeof(float)*3);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_follow_target_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_follow_target_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_follow_target_pack(system_id, component_id, &msg , packet1.timestamp , packet1.est_capabilities , packet1.lat , packet1.lon , packet1.alt , packet1.vel , packet1.acc , packet1.attitude_q , packet1.rates , packet1.position_cov , packet1.custom_state );
mavlink_msg_follow_target_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_follow_target_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.timestamp , packet1.est_capabilities , packet1.lat , packet1.lon , packet1.alt , packet1.vel , packet1.acc , packet1.attitude_q , packet1.rates , packet1.position_cov , packet1.custom_state );
mavlink_msg_follow_target_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_follow_target_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_follow_target_send(MAVLINK_COMM_1 , packet1.timestamp , packet1.est_capabilities , packet1.lat , packet1.lon , packet1.alt , packet1.vel , packet1.acc , packet1.attitude_q , packet1.rates , packet1.position_cov , packet1.custom_state );
mavlink_msg_follow_target_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_control_system_state(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
mavlink_message_t msg;
......@@ -6390,6 +6443,7 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
mavlink_test_altitude(system_id, component_id, last_msg);
mavlink_test_resource_request(system_id, component_id, last_msg);
mavlink_test_scaled_pressure3(system_id, component_id, last_msg);
mavlink_test_follow_target(system_id, component_id, last_msg);
mavlink_test_control_system_state(system_id, component_id, last_msg);
mavlink_test_battery_status(system_id, component_id, last_msg);
mavlink_test_autopilot_version(system_id, component_id, last_msg);
......
......@@ -5,7 +5,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Mar 15 2016"
#define MAVLINK_BUILD_DATE "Sat Mar 19 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "1.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -5,7 +5,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Mar 15 2016"
#define MAVLINK_BUILD_DATE "Sat Mar 19 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "1.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -686,6 +686,26 @@
<param index="6">Longitude</param>
<param index="7">Altitude</param>
</entry>
<entry value="32" name="MAV_CMD_DO_FOLLOW">
<description>Being following a target</description>
<param index="1">System ID (the system ID of the FOLLOW_TARGET beacon). Send 0 to disable follow-me and return to the default position hold mode</param>
<param index="2">RESERVED</param>
<param index="3">RESERVED</param>
<param index="4">altitude flag: 0: Keep current altitude, 1: keep altitude difference to target, 2: go to a fixed altitude above home</param>
<param index="5">altitude</param>
<param index="6">RESERVED</param>
<param index="7">TTL in seconds in which the MAV should go to the default position hold mode after a message rx timeout</param>
</entry>
<entry value="33" name="MAV_CMD_DO_FOLLOW_REPOSITION">
<description>Reposition the MAV after a follow target command has been sent</description>
<param index="1">Camera q1 (where 0 is on the ray from the camera to the tracking device)</param>
<param index="2">Camera q2</param>
<param index="3">Camera q3</param>
<param index="4">Camera q4</param>
<param index="5">altitude offset from target (m)</param>
<param index="6">X offset from target (m)</param>
<param index="7">Y offset from target (m)</param>
</entry>
<entry value="80" name="MAV_CMD_NAV_ROI">
<description>Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicles control system to control the vehicle attitude and the attitude of various sensors such as cameras.</description>
<param index="1">Region of intereset mode. (see MAV_ROI enum)</param>
......@@ -2990,6 +3010,20 @@
<field type="float" name="press_diff">Differential pressure 1 (hectopascal)</field>
<field type="int16_t" name="temperature">Temperature measurement (0.01 degrees celsius)</field>
</message>
<message id="144" name="FOLLOW_TARGET">
<description>current motion information from a designated system</description>
<field type="uint64_t" name="timestamp">Timestamp in milliseconds since system boot</field>
<field type="uint8_t" name="est_capabilities">bit positions for tracker reporting capabilities (POS = 0, VEL = 1, ACCEL = 2, ATT + RATES = 3)</field>
<field type="int32_t" name="lat">Latitude (WGS84), in degrees * 1E7</field>
<field type="int32_t" name="lon">Longitude (WGS84), in degrees * 1E7</field>
<field type="float" name="alt">AMSL, in meters</field>
<field type="float[3]" name="vel">target velocity (0,0,0) for unknown</field>
<field type="float[3]" name="acc">linear target acceleration (0,0,0) for unknown</field>
<field type="float[4]" name="attitude_q">(1 0 0 0 for unknown)</field>
<field type="float[3]" name="rates">(0 0 0 for unknown)</field>
<field type="float[3]" name="position_cov">eph epv</field>
<field type="uint64_t" name="custom_state">button states or switches of a tracker device</field>
</message>
<message id="146" name="CONTROL_SYSTEM_STATE">
<description>The smoothed, monotonic system state used to feed the control loops of the system.</description>
<field type="uint64_t" name="time_usec">Timestamp (micros since boot or Unix epoch)</field>
......
......@@ -5,7 +5,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Mar 15 2016"
#define MAVLINK_BUILD_DATE "Sat Mar 19 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "1.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 9
......
This diff is collapsed.
......@@ -5,7 +5,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Mar 15 2016"
#define MAVLINK_BUILD_DATE "Sat Mar 19 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "1.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -5,7 +5,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Mar 15 2016"
#define MAVLINK_BUILD_DATE "Sat Mar 19 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "1.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 179
......
This diff is collapsed.
......@@ -5,7 +5,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Mar 15 2016"
#define MAVLINK_BUILD_DATE "Sat Mar 19 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "1.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