From 439c85e7933cd27db57bbcd8cd12d24fb66887c0 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 15 Dec 2024 10:02:18 +1100 Subject: [PATCH] AP_Airspeed: correct compilation when AP_AIRSPEED_AUTO_CAL_ENABLE is false CubeNode was trying to check a parameter which doesn't exist ../../libraries/AP_Airspeed/Airspeed_Calibration.cpp: In member function 'void AP_Airspeed::send_airspeed_calibration(const Vector3f&)': ../../libraries/AP_Airspeed/Airspeed_Calibration.cpp:179:23: error: 'class AP_Airspeed_Params' has no member named 'autocal' 179 | if (!param[i].autocal && !calibration_enabled) { | ^~~~~~~ compilation terminated due to -Wfatal-errors. --- libraries/AP_Airspeed/Airspeed_Calibration.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Airspeed/Airspeed_Calibration.cpp b/libraries/AP_Airspeed/Airspeed_Calibration.cpp index 0374521df8203..16170f9c81ea1 100644 --- a/libraries/AP_Airspeed/Airspeed_Calibration.cpp +++ b/libraries/AP_Airspeed/Airspeed_Calibration.cpp @@ -164,11 +164,13 @@ void AP_Airspeed::update_calibration(const Vector3f &vground, int16_t max_airspe for (uint8_t i=0; i