AP_Compass: add and use AP_COMPASS_ENABLED

This commit is contained in:
Peter Barker 2023-06-20 16:36:06 +10:00 committed by Peter Barker
parent e8ada7f4ee
commit 3f4995068c
1 changed files with 5 additions and 1 deletions

View File

@ -4,13 +4,17 @@
#include <AP_ExternalAHRS/AP_ExternalAHRS_config.h>
#include <AP_MSP/msp.h>
#ifndef AP_COMPASS_ENABLED
#define AP_COMPASS_ENABLED 1
#endif
#ifndef AP_COMPASS_DIAGONALS_ENABLED
#define AP_COMPASS_DIAGONALS_ENABLED 1
#endif
// Backend support
#ifndef AP_COMPASS_BACKEND_DEFAULT_ENABLED
#define AP_COMPASS_BACKEND_DEFAULT_ENABLED 1
#define AP_COMPASS_BACKEND_DEFAULT_ENABLED AP_COMPASS_ENABLED
#endif
#ifndef AP_COMPASS_EXTERNALAHRS_ENABLED