From 1b75f564f090bba8e401c4e2de38814a85efd754 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 10 Mar 2023 14:00:03 +1100 Subject: [PATCH] AP_HAL_ChibiOS: specify compass feature enables for periph in chibios_hwdef.py --- .../AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 6713d86eeb..acb0fb1797 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -2931,6 +2931,17 @@ def add_apperiph_defaults(f): #define AP_BATTERY_ESC_ENABLED 0 #endif +// disable compass calibrations on periphs; cal is done on the autopilot +#ifndef COMPASS_CAL_ENABLED +#define COMPASS_CAL_ENABLED 0 +#endif +#ifndef COMPASS_MOT_ENABLED +#define COMPASS_MOT_ENABLED 0 +#endif +#ifndef COMPASS_LEARN_ENABLED +#define COMPASS_LEARN_ENABLED 0 +#endif + /* * GPS Backends - we selectively turn backends on. * Note also that f103-GPS explicitly disables some of these backends.