Commit dbcc7256 authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/8e9eb3f63af4cf95113328f1f763869b1d1c5b6b
parent 728c2c72
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -2174,7 +2174,7 @@ static void mavlink_test_mag_cal_report(uint8_t system_id, uint8_t component_id,
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_mag_cal_report_t packet_in = {
17.0,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,125,192,3,70,325.0,149,216
17.0,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,125,192,3,70,325.0,149,216,367.0
};
mavlink_mag_cal_report_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
......@@ -2195,6 +2195,7 @@ static void mavlink_test_mag_cal_report(uint8_t system_id, uint8_t component_id,
packet1.orientation_confidence = packet_in.orientation_confidence;
packet1.old_orientation = packet_in.old_orientation;
packet1.new_orientation = packet_in.new_orientation;
packet1.scale_factor = packet_in.scale_factor;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
......@@ -2209,12 +2210,12 @@ static void mavlink_test_mag_cal_report(uint8_t system_id, uint8_t component_id,
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_mag_cal_report_pack(system_id, component_id, &msg , packet1.compass_id , packet1.cal_mask , packet1.cal_status , packet1.autosaved , packet1.fitness , packet1.ofs_x , packet1.ofs_y , packet1.ofs_z , packet1.diag_x , packet1.diag_y , packet1.diag_z , packet1.offdiag_x , packet1.offdiag_y , packet1.offdiag_z , packet1.orientation_confidence , packet1.old_orientation , packet1.new_orientation );
mavlink_msg_mag_cal_report_pack(system_id, component_id, &msg , packet1.compass_id , packet1.cal_mask , packet1.cal_status , packet1.autosaved , packet1.fitness , packet1.ofs_x , packet1.ofs_y , packet1.ofs_z , packet1.diag_x , packet1.diag_y , packet1.diag_z , packet1.offdiag_x , packet1.offdiag_y , packet1.offdiag_z , packet1.orientation_confidence , packet1.old_orientation , packet1.new_orientation , packet1.scale_factor );
mavlink_msg_mag_cal_report_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_mag_cal_report_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.compass_id , packet1.cal_mask , packet1.cal_status , packet1.autosaved , packet1.fitness , packet1.ofs_x , packet1.ofs_y , packet1.ofs_z , packet1.diag_x , packet1.diag_y , packet1.diag_z , packet1.offdiag_x , packet1.offdiag_y , packet1.offdiag_z , packet1.orientation_confidence , packet1.old_orientation , packet1.new_orientation );
mavlink_msg_mag_cal_report_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.compass_id , packet1.cal_mask , packet1.cal_status , packet1.autosaved , packet1.fitness , packet1.ofs_x , packet1.ofs_y , packet1.ofs_z , packet1.diag_x , packet1.diag_y , packet1.diag_z , packet1.offdiag_x , packet1.offdiag_y , packet1.offdiag_z , packet1.orientation_confidence , packet1.old_orientation , packet1.new_orientation , packet1.scale_factor );
mavlink_msg_mag_cal_report_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
......@@ -2227,7 +2228,7 @@ static void mavlink_test_mag_cal_report(uint8_t system_id, uint8_t component_id,
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_mag_cal_report_send(MAVLINK_COMM_1 , packet1.compass_id , packet1.cal_mask , packet1.cal_status , packet1.autosaved , packet1.fitness , packet1.ofs_x , packet1.ofs_y , packet1.ofs_z , packet1.diag_x , packet1.diag_y , packet1.diag_z , packet1.offdiag_x , packet1.offdiag_y , packet1.offdiag_z , packet1.orientation_confidence , packet1.old_orientation , packet1.new_orientation );
mavlink_msg_mag_cal_report_send(MAVLINK_COMM_1 , packet1.compass_id , packet1.cal_mask , packet1.cal_status , packet1.autosaved , packet1.fitness , packet1.ofs_x , packet1.ofs_y , packet1.ofs_z , packet1.diag_x , packet1.diag_y , packet1.diag_z , packet1.offdiag_x , packet1.offdiag_y , packet1.offdiag_z , packet1.orientation_confidence , packet1.old_orientation , packet1.new_orientation , packet1.scale_factor );
mavlink_msg_mag_cal_report_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
......@@ -2876,6 +2877,73 @@ static void mavlink_test_gopro_set_response(uint8_t system_id, uint8_t component
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_efi_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_EFI_STATUS >= 256) {
return;
}
#endif
mavlink_message_t msg;
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_efi_status_t packet_in = {
17.0,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,353.0,161
};
mavlink_efi_status_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
packet1.ecu_index = packet_in.ecu_index;
packet1.rpm = packet_in.rpm;
packet1.fuel_consumed = packet_in.fuel_consumed;
packet1.fuel_flow = packet_in.fuel_flow;
packet1.engine_load = packet_in.engine_load;
packet1.throttle_position = packet_in.throttle_position;
packet1.spark_dwell_time = packet_in.spark_dwell_time;
packet1.barometric_pressure = packet_in.barometric_pressure;
packet1.intake_manifold_pressure = packet_in.intake_manifold_pressure;
packet1.intake_manifold_temperature = packet_in.intake_manifold_temperature;
packet1.cylinder_head_temperature = packet_in.cylinder_head_temperature;
packet1.ignition_timing = packet_in.ignition_timing;
packet1.injection_time = packet_in.injection_time;
packet1.health = packet_in.health;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_efi_status_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_efi_status_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_efi_status_pack(system_id, component_id, &msg , packet1.health , packet1.ecu_index , packet1.rpm , packet1.fuel_consumed , packet1.fuel_flow , packet1.engine_load , packet1.throttle_position , packet1.spark_dwell_time , packet1.barometric_pressure , packet1.intake_manifold_pressure , packet1.intake_manifold_temperature , packet1.cylinder_head_temperature , packet1.ignition_timing , packet1.injection_time );
mavlink_msg_efi_status_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_efi_status_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.health , packet1.ecu_index , packet1.rpm , packet1.fuel_consumed , packet1.fuel_flow , packet1.engine_load , packet1.throttle_position , packet1.spark_dwell_time , packet1.barometric_pressure , packet1.intake_manifold_pressure , packet1.intake_manifold_temperature , packet1.cylinder_head_temperature , packet1.ignition_timing , packet1.injection_time );
mavlink_msg_efi_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_efi_status_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_efi_status_send(MAVLINK_COMM_1 , packet1.health , packet1.ecu_index , packet1.rpm , packet1.fuel_consumed , packet1.fuel_flow , packet1.engine_load , packet1.throttle_position , packet1.spark_dwell_time , packet1.barometric_pressure , packet1.intake_manifold_pressure , packet1.intake_manifold_temperature , packet1.cylinder_head_temperature , packet1.ignition_timing , packet1.injection_time );
mavlink_msg_efi_status_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_rpm(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
......@@ -3576,6 +3644,7 @@ static void mavlink_test_ardupilotmega(uint8_t system_id, uint8_t component_id,
mavlink_test_gopro_get_response(system_id, component_id, last_msg);
mavlink_test_gopro_set_request(system_id, component_id, last_msg);
mavlink_test_gopro_set_response(system_id, component_id, last_msg);
mavlink_test_efi_status(system_id, component_id, last_msg);
mavlink_test_rpm(system_id, component_id, last_msg);
mavlink_test_device_op_read(system_id, component_id, last_msg);
mavlink_test_device_op_read_reply(system_id, component_id, last_msg);
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#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 "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -888,7 +888,17 @@ typedef enum SERIAL_CONTROL_DEV
SERIAL_CONTROL_DEV_GPS1=2, /* First GPS port | */
SERIAL_CONTROL_DEV_GPS2=3, /* Second GPS port | */
SERIAL_CONTROL_DEV_SHELL=10, /* system shell | */
SERIAL_CONTROL_DEV_ENUM_END=11, /* | */
SERIAL_CONTROL_SERIAL0=100, /* SERIAL0 | */
SERIAL_CONTROL_SERIAL1=101, /* SERIAL1 | */
SERIAL_CONTROL_SERIAL2=102, /* SERIAL2 | */
SERIAL_CONTROL_SERIAL3=103, /* SERIAL3 | */
SERIAL_CONTROL_SERIAL4=104, /* SERIAL4 | */
SERIAL_CONTROL_SERIAL5=105, /* SERIAL5 | */
SERIAL_CONTROL_SERIAL6=106, /* SERIAL6 | */
SERIAL_CONTROL_SERIAL7=107, /* SERIAL7 | */
SERIAL_CONTROL_SERIAL8=108, /* SERIAL8 | */
SERIAL_CONTROL_SERIAL9=109, /* SERIAL9 | */
SERIAL_CONTROL_DEV_ENUM_END=110, /* | */
} SERIAL_CONTROL_DEV;
#endif
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#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 "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#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 "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -111,6 +111,16 @@
<param index="6">Empty.</param>
<param index="7">Empty.</param>
</entry>
<entry value="42006" name="MAV_CMD_FIXED_MAG_CAL_YAW">
<description>Magnetometer calibration based on provided known yaw. This allows for fast calibration using WMM field tables in the vehicle, given only the known yaw of the vehicle. If Latitude and longitude are both zero then use the current vehicle location.</description>
<param index="1" label="Yaw" units="deg">Yaw of vehicle in earth frame.</param>
<param index="2" label="CompassMask">CompassMask, 0 for all.</param>
<param index="3" label="Latitude" units="deg">Latitude.</param>
<param index="4" label="Longitude" units="deg">Longitude.</param>
<param index="5">Empty.</param>
<param index="6">Empty.</param>
<param index="7">Empty.</param>
</entry>
<entry value="42424" name="MAV_CMD_DO_START_MAG_CAL">
<description>Initiate a magnetometer calibration.</description>
<param index="1">uint8_t bitmask of magnetometers (0 means all).</param>
......@@ -867,6 +877,7 @@
<entry value="4" name="MAG_CAL_SUCCESS"/>
<entry value="5" name="MAG_CAL_FAILED"/>
<entry value="6" name="MAG_CAL_BAD_ORIENTATION"/>
<entry value="7" name="MAG_CAL_BAD_RADIUS"/>
</enum>
<enum name="MAV_REMOTE_LOG_DATA_BLOCK_COMMANDS">
<description>Special ACK block numbers control activation of dataflash log streaming.</description>
......@@ -1382,6 +1393,7 @@
<field type="float" name="orientation_confidence">Confidence in orientation (higher is better).</field>
<field type="uint8_t" name="old_orientation" enum="MAV_SENSOR_ORIENTATION">orientation before calibration.</field>
<field type="uint8_t" name="new_orientation" enum="MAV_SENSOR_ORIENTATION">orientation after calibration.</field>
<field type="float" name="scale_factor">field radius correction factor</field>
</message>
<!-- EKF status message from autopilot to GCS. -->
<message id="193" name="EKF_STATUS_REPORT">
......@@ -1485,6 +1497,23 @@
<field type="uint8_t" name="status" enum="GOPRO_REQUEST_STATUS">Status.</field>
</message>
<!-- 219 to 224 RESERVED for more GOPRO-->
<message id="225" name="EFI_STATUS">
<description>EFI Status Output</description>
<field type="uint8_t" name="health">EFI Health status</field>
<field type="float" name="ecu_index">ECU Index</field>
<field type="float" name="rpm">RPM</field>
<field type="float" name="fuel_consumed" units="g">Fuel Consumed (grams)</field>
<field type="float" name="fuel_flow" units="g/min">Fuel Flow Rate (g/min)</field>
<field type="float" name="engine_load" units="%">Engine Load (%)</field>
<field type="float" name="throttle_position" units="%">Throttle Position (%)</field>
<field type="float" name="spark_dwell_time" units="ms">Spark Dwell Time (ms)</field>
<field type="float" name="barometric_pressure" units="kPa">Barometric Pressure (kPa)</field>
<field type="float" name="intake_manifold_pressure" units="kPa">Intake Manifold Pressure (kPa)(</field>
<field type="float" name="intake_manifold_temperature" units="degC">Intake Manifold Temperature (degC)</field>
<field type="float" name="cylinder_head_temperature" units="degC">cylinder_head_temperature (degC)</field>
<field type="float" name="ignition_timing" units="deg">Ignition timing for cylinder i (Crank Angle degrees)</field>
<field type="float" name="injection_time" units="ms">Injection time for injector i (ms)</field>
</message>
<message id="226" name="RPM">
<description>RPM sensor output.</description>
<field type="float" name="rpm1">RPM Sensor1.</field>
......
......@@ -2652,6 +2652,36 @@
<entry value="10" name="SERIAL_CONTROL_DEV_SHELL">
<description>system shell</description>
</entry>
<entry value="100" name="SERIAL_CONTROL_SERIAL0">
<description>SERIAL0</description>
</entry>
<entry value="101" name="SERIAL_CONTROL_SERIAL1">
<description>SERIAL1</description>
</entry>
<entry value="102" name="SERIAL_CONTROL_SERIAL2">
<description>SERIAL2</description>
</entry>
<entry value="103" name="SERIAL_CONTROL_SERIAL3">
<description>SERIAL3</description>
</entry>
<entry value="104" name="SERIAL_CONTROL_SERIAL4">
<description>SERIAL4</description>
</entry>
<entry value="105" name="SERIAL_CONTROL_SERIAL5">
<description>SERIAL5</description>
</entry>
<entry value="106" name="SERIAL_CONTROL_SERIAL6">
<description>SERIAL6</description>
</entry>
<entry value="107" name="SERIAL_CONTROL_SERIAL7">
<description>SERIAL7</description>
</entry>
<entry value="108" name="SERIAL_CONTROL_SERIAL8">
<description>SERIAL8</description>
</entry>
<entry value="109" name="SERIAL_CONTROL_SERIAL9">
<description>SERIAL9</description>
</entry>
</enum>
<enum name="SERIAL_CONTROL_FLAG">
<description>SERIAL_CONTROL flags (bitmask)</description>
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#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 "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#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 "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#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 "Sun Dec 15 2019"
#define MAVLINK_BUILD_DATE "Thu Dec 19 2019"
#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