AP_Compass: specify compass feature enables for periph in chibios_hwdef.py

This commit is contained in:
Peter Barker 2023-03-10 14:00:03 +11:00 committed by Peter Barker
parent 48ec224b8c
commit 4755f76126
1 changed files with 7 additions and 3 deletions

View File

@ -36,10 +36,14 @@
#endif
#ifndef COMPASS_CAL_ENABLED
#define COMPASS_CAL_ENABLED !defined(HAL_BUILD_AP_PERIPH)
#define COMPASS_CAL_ENABLED 1
#endif
#ifndef COMPASS_MOT_ENABLED
#define COMPASS_MOT_ENABLED 1
#endif
#ifndef COMPASS_LEARN_ENABLED
#define COMPASS_LEARN_ENABLED 1
#endif
#define COMPASS_MOT_ENABLED !defined(HAL_BUILD_AP_PERIPH)
#define COMPASS_LEARN_ENABLED !defined(HAL_BUILD_AP_PERIPH)
// define default compass calibration fitness and consistency checks
#define AP_COMPASS_CALIBRATION_FITNESS_DEFAULT 16.0f