From 31e7131c3336aaa048759b6cd754ba79699764c1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 21 May 2018 14:07:13 +1000 Subject: [PATCH] Tracker: add type-correctness for stream messages --- AntennaTracker/GCS_Mavlink.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/AntennaTracker/GCS_Mavlink.cpp b/AntennaTracker/GCS_Mavlink.cpp index 421714a2b8..dd91e33a6f 100644 --- a/AntennaTracker/GCS_Mavlink.cpp +++ b/AntennaTracker/GCS_Mavlink.cpp @@ -248,12 +248,12 @@ const AP_Param::GroupInfo GCS_MAVLINK::var_info[] = { AP_GROUPEND }; -static const uint8_t STREAM_RAW_SENSORS_msgs[] = { +static const ap_message STREAM_RAW_SENSORS_msgs[] = { MSG_RAW_IMU1, // RAW_IMU, SCALED_IMU2, SCALED_IMU3 MSG_RAW_IMU2, // SCALED_PRESSURE, SCALED_PRESSURE2, SCALED_PRESSURE3 MSG_RAW_IMU3 // SENSOR_OFFSETS }; -static const uint8_t STREAM_EXTENDED_STATUS_msgs[] = { +static const ap_message STREAM_EXTENDED_STATUS_msgs[] = { MSG_EXTENDED_STATUS1, // SYS_STATUS, POWER_STATUS MSG_EXTENDED_STATUS2, // MEMINFO MSG_NAV_CONTROLLER_OUTPUT, @@ -262,20 +262,20 @@ static const uint8_t STREAM_EXTENDED_STATUS_msgs[] = { MSG_GPS2_RAW, MSG_GPS2_RTK, }; -static const uint8_t STREAM_POSITION_msgs[] = { +static const ap_message STREAM_POSITION_msgs[] = { MSG_LOCATION, MSG_LOCAL_POSITION }; -static const uint8_t STREAM_RAW_CONTROLLER_msgs[] = { +static const ap_message STREAM_RAW_CONTROLLER_msgs[] = { MSG_SERVO_OUTPUT_RAW, }; -static const uint8_t STREAM_RC_CHANNELS_msgs[] = { +static const ap_message STREAM_RC_CHANNELS_msgs[] = { MSG_RADIO_IN }; -static const uint8_t STREAM_EXTRA1_msgs[] = { +static const ap_message STREAM_EXTRA1_msgs[] = { MSG_ATTITUDE, }; -static const uint8_t STREAM_EXTRA3_msgs[] = { +static const ap_message STREAM_EXTRA3_msgs[] = { MSG_AHRS, MSG_HWSTATUS, MSG_SIMSTATE, // SIMSTATE, AHRS2