Commit 7d14887c authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/f4c955af096bb65ab7d80ee0f9ca14ff823f24e7
parent f038d1f0
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Mon Oct 10 2016"
#define MAVLINK_BUILD_DATE "Tue Oct 11 2016"
#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 "Mon Oct 10 2016"
#define MAVLINK_BUILD_DATE "Tue Oct 11 2016"
#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 "Mon Oct 10 2016"
#define MAVLINK_BUILD_DATE "Tue Oct 11 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
This diff is collapsed.
......@@ -7354,6 +7354,87 @@ static void mavlink_test_gps_rtcm_data(uint8_t system_id, uint8_t component_id,
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_high_latency(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_HIGH_LATENCY >= 256) {
return;
}
#endif
mavlink_message_t msg;
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_high_latency_t packet_in = {
93372036854775807ULL,963497880,963498088,963498296,18275,18379,18483,18587,18691,18795,18899,19003,19107,19211,125,192,3,70,137,204,15,82,149,216,27,94,161,228
};
mavlink_high_latency_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
packet1.time_usec = packet_in.time_usec;
packet1.custom_mode = packet_in.custom_mode;
packet1.latitude = packet_in.latitude;
packet1.longitude = packet_in.longitude;
packet1.roll = packet_in.roll;
packet1.pitch = packet_in.pitch;
packet1.heading = packet_in.heading;
packet1.roll_sp = packet_in.roll_sp;
packet1.pitch_sp = packet_in.pitch_sp;
packet1.heading_sp = packet_in.heading_sp;
packet1.altitude_home = packet_in.altitude_home;
packet1.altitude_amsl = packet_in.altitude_amsl;
packet1.altitude_sp = packet_in.altitude_sp;
packet1.wp_distance = packet_in.wp_distance;
packet1.base_mode = packet_in.base_mode;
packet1.landed_state = packet_in.landed_state;
packet1.throttle = packet_in.throttle;
packet1.airspeed = packet_in.airspeed;
packet1.airspeed_sp = packet_in.airspeed_sp;
packet1.groundspeed = packet_in.groundspeed;
packet1.climb_rate = packet_in.climb_rate;
packet1.gps_nsat = packet_in.gps_nsat;
packet1.gps_fix_type = packet_in.gps_fix_type;
packet1.battery_remaining = packet_in.battery_remaining;
packet1.temperature = packet_in.temperature;
packet1.temperature_air = packet_in.temperature_air;
packet1.failsafe = packet_in.failsafe;
packet1.wp_num = packet_in.wp_num;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_high_latency_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_high_latency_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_high_latency_pack(system_id, component_id, &msg , packet1.time_usec , packet1.base_mode , packet1.custom_mode , packet1.landed_state , packet1.roll , packet1.pitch , packet1.heading , packet1.throttle , packet1.roll_sp , packet1.pitch_sp , packet1.heading_sp , packet1.latitude , packet1.longitude , packet1.altitude_home , packet1.altitude_amsl , packet1.altitude_sp , packet1.airspeed , packet1.airspeed_sp , packet1.groundspeed , packet1.climb_rate , packet1.gps_nsat , packet1.gps_fix_type , packet1.battery_remaining , packet1.temperature , packet1.temperature_air , packet1.failsafe , packet1.wp_num , packet1.wp_distance );
mavlink_msg_high_latency_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_high_latency_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_usec , packet1.base_mode , packet1.custom_mode , packet1.landed_state , packet1.roll , packet1.pitch , packet1.heading , packet1.throttle , packet1.roll_sp , packet1.pitch_sp , packet1.heading_sp , packet1.latitude , packet1.longitude , packet1.altitude_home , packet1.altitude_amsl , packet1.altitude_sp , packet1.airspeed , packet1.airspeed_sp , packet1.groundspeed , packet1.climb_rate , packet1.gps_nsat , packet1.gps_fix_type , packet1.battery_remaining , packet1.temperature , packet1.temperature_air , packet1.failsafe , packet1.wp_num , packet1.wp_distance );
mavlink_msg_high_latency_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_high_latency_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_high_latency_send(MAVLINK_COMM_1 , packet1.time_usec , packet1.base_mode , packet1.custom_mode , packet1.landed_state , packet1.roll , packet1.pitch , packet1.heading , packet1.throttle , packet1.roll_sp , packet1.pitch_sp , packet1.heading_sp , packet1.latitude , packet1.longitude , packet1.altitude_home , packet1.altitude_amsl , packet1.altitude_sp , packet1.airspeed , packet1.airspeed_sp , packet1.groundspeed , packet1.climb_rate , packet1.gps_nsat , packet1.gps_fix_type , packet1.battery_remaining , packet1.temperature , packet1.temperature_air , packet1.failsafe , packet1.wp_num , packet1.wp_distance );
mavlink_msg_high_latency_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_vibration(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
......@@ -8465,6 +8546,7 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
mavlink_test_wind_cov(system_id, component_id, last_msg);
mavlink_test_gps_input(system_id, component_id, last_msg);
mavlink_test_gps_rtcm_data(system_id, component_id, last_msg);
mavlink_test_high_latency(system_id, component_id, last_msg);
mavlink_test_vibration(system_id, component_id, last_msg);
mavlink_test_home_position(system_id, component_id, last_msg);
mavlink_test_set_home_position(system_id, component_id, last_msg);
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Mon Oct 10 2016"
#define MAVLINK_BUILD_DATE "Tue Oct 11 2016"
#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 "Mon Oct 10 2016"
#define MAVLINK_BUILD_DATE "Tue Oct 11 2016"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -3570,6 +3570,37 @@
<field type="uint8_t" name="len">data length</field>
<field type="uint8_t[180]" name="data">RTCM message (may be fragmented)</field>
</message>
<message id="234" name="HIGH_LATENCY">
<description>Message appropriate for high latency connections like Iridium</description>
<field name="time_usec" type="uint64_t">Timestamp (microseconds since UNIX epoch)</field>
<field name="base_mode" type="uint8_t">System mode bitfield, see MAV_MODE_FLAG ENUM in mavlink/include/mavlink_types.h</field>
<field name="custom_mode" type="uint32_t">A bitfield for use for autopilot-specific flags.</field>
<field name="landed_state" type="uint8_t" enum="MAV_LANDED_STATE">The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown.</field>
<field name="roll" type="int16_t">roll (centidegrees)</field>
<field name="pitch" type="int16_t">pitch (centidegrees)</field>
<field name="heading" type="uint16_t">heading (centidegrees)</field>
<field name="throttle" type="int8_t">throttle (percentage)</field>
<field name="roll_sp" type="int16_t">roll setpoint (centidegrees)</field>
<field name="pitch_sp" type="int16_t">pitch setpoint (centidegrees)</field>
<field name="heading_sp" type="int16_t">heading setpoint (centidegrees)</field>
<field name="latitude" type="int32_t">Latitude, expressed as degrees * 1E7</field>
<field name="longitude" type="int32_t">Longitude, expressed as degrees * 1E7</field>
<field name="altitude_home" type="int16_t">Altitude above the home position (meters)</field>
<field name="altitude_amsl" type="int16_t">Altitude above mean sea level (meters)</field>
<field name="altitude_sp" type="int16_t">Altitude setpoint relative to the home position (meters)</field>
<field name="airspeed" type="uint8_t">airspeed (m/s)</field>
<field name="airspeed_sp" type="uint8_t">airspeed setpoint (m/s)</field>
<field name="groundspeed" type="uint8_t">groundspeed (m/s)</field>
<field name="climb_rate" type="int8_t">climb rate (m/s)</field>
<field name="gps_nsat" type="uint8_t">Number of satellites visible. If unknown, set to 255</field>
<field name="gps_fix_type" type="uint8_t">See the GPS_FIX_TYPE enum.</field>
<field name="battery_remaining" type="uint8_t">Remaining battery (percentage)</field>
<field name="temperature" type="int8_t">Autopilot temperature (degrees C)</field>
<field name="temperature_air" type="int8_t">Air temperature (degrees C) from airspeed sensor</field>
<field name="failsafe" type="uint8_t">failsafe (each bit represents a failsafe where 0=ok, 1=failsafe active (bit0:RC, bit1:batt, bit2:GPS, bit3:GCS, bit4:fence)</field>
<field name="wp_num" type="uint8_t">current waypoint number</field>
<field name="wp_distance" type="uint16_t">distance to target (meters)</field>
</message>
<message id="241" name="VIBRATION">
<description>Vibration levels and accelerometer clipping</description>
<field type="uint64_t" name="time_usec">Timestamp (micros since boot or Unix epoch)</field>
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Mon Oct 10 2016"
#define MAVLINK_BUILD_DATE "Tue Oct 11 2016"
#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 "Mon Oct 10 2016"
#define MAVLINK_BUILD_DATE "Tue Oct 11 2016"
#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 "Mon Oct 10 2016"
#define MAVLINK_BUILD_DATE "Tue Oct 11 2016"
#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 "Mon Oct 10 2016"
#define MAVLINK_BUILD_DATE "Tue Oct 11 2016"
#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