From 6e49333a40d8200dcf1442a68a5d8018d2d6b4c9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 17 Dec 2024 12:05:16 +1100 Subject: [PATCH] AP_HAL_ChibiOS: do not build QuickTune on peripherals kills heavy peripherals ../../libraries/AP_Quicktune/AP_Quicktune.cpp: In member function 'void AP_Quicktune::update(bool)': ../../libraries/AP_Quicktune/AP_Quicktune.cpp:177:32: error: 'vehicle' is not a member of 'AP' 177 | const auto &vehicle = *AP::vehicle(); | ^~~~~~~ compilation terminated due to -Wfatal-errors. [ 688/1225] Compiling libraries/AP_TemperatureSensor/AP_TemperatureSensor_TSYS03.cpp Waf: Leaving directory `/home/pbarker/rc/ardupilot/build/CubeOrange-periph-heavy' --- libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h index 4954c9be65..a262f9fa13 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h @@ -468,3 +468,7 @@ #ifndef AP_CUSTOMROTATIONS_ENABLED #define AP_CUSTOMROTATIONS_ENABLED 0 #endif + +#ifndef AP_QUICKTUNE_ENABLED +#define AP_QUICKTUNE_ENABLED 0 +#endif