Commit 09524c98 authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/2d556ac4648f8078c737649248b3d8a8f876ba5a
parent ec2804cf
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -2806,76 +2806,6 @@ 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,381.0,409.0,437.0,197
};
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.exhaust_gas_temperature = packet_in.exhaust_gas_temperature;
packet1.throttle_out = packet_in.throttle_out;
packet1.pt_compensation = packet_in.pt_compensation;
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 , packet1.exhaust_gas_temperature , packet1.throttle_out , packet1.pt_compensation );
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 , packet1.exhaust_gas_temperature , packet1.throttle_out , packet1.pt_compensation );
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 , packet1.exhaust_gas_temperature , packet1.throttle_out , packet1.pt_compensation );
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
......@@ -3575,7 +3505,6 @@ 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 "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#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 "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -7477,6 +7477,73 @@ static void mavlink_test_mag_cal_report(uint8_t system_id, uint8_t component_id,
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_estimator_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
......@@ -13077,6 +13144,7 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
mavlink_test_landing_target(system_id, component_id, last_msg);
mavlink_test_fence_status(system_id, component_id, last_msg);
mavlink_test_mag_cal_report(system_id, component_id, last_msg);
mavlink_test_efi_status(system_id, component_id, last_msg);
mavlink_test_estimator_status(system_id, component_id, last_msg);
mavlink_test_wind_cov(system_id, component_id, last_msg);
mavlink_test_gps_input(system_id, component_id, last_msg);
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#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 "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 46
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -1451,26 +1451,7 @@
<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</field>
<field type="float" name="fuel_flow" units="g/min">Fuel flow rate</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</field>
<field type="float" name="barometric_pressure" units="kPa">Barometric pressure</field>
<field type="float" name="intake_manifold_pressure" units="kPa">Intake manifold pressure(</field>
<field type="float" name="intake_manifold_temperature" units="degC">Intake manifold temperature</field>
<field type="float" name="cylinder_head_temperature" units="degC">Cylinder head temperature</field>
<field type="float" name="ignition_timing" units="deg">Ignition timing (Crank angle degrees)</field>
<field type="float" name="injection_time" units="ms">Injection time</field>
<field type="float" name="exhaust_gas_temperature" units="degC">Exhaust gas temperature</field>
<field type="float" name="throttle_out" units="%">Output throttle</field>
<field type="float" name="pt_compensation">Pressure/temperature compensation</field>
</message>
<!-- 225 EFI_STATUS moved to common.xml -->
<message id="226" name="RPM">
<description>RPM sensor output.</description>
<field type="float" name="rpm1">RPM Sensor1.</field>
......
......@@ -5619,6 +5619,24 @@
<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>
<!-- 225 EFI_STATUS imported from ardupilotmega.xml -->
<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 IDs 180 - 229: Space for custom messages in individual projectname_messages.xml files -->
<message id="230" name="ESTIMATOR_STATUS">
<description>Estimator status message including flags, innovation test ratios and estimated accuracies. The flags message is an integer bitmask containing information on which EKF outputs are valid. See the ESTIMATOR_STATUS_FLAGS enum definition for further information. The innovation test ratios show the magnitude of the sensor innovation divided by the innovation check threshold. Under normal operation the innovation test ratios should be below 0.5 with occasional values up to 1.0. Values greater than 1.0 should be rare under normal operation and indicate that a measurement has been rejected by the filter. The user should be notified if an innovation test ratio greater than 1.0 is recorded. Notifications for values in the range between 0.5 and 1.0 should be optional and controllable by the user.</description>
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#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 "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 179
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Sep 10 2020"
#define MAVLINK_BUILD_DATE "Fri Sep 11 2020"
#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