#pragma once #include #include #include #ifndef AP_COMPASS_DIAGONALS_ENABLED #define AP_COMPASS_DIAGONALS_ENABLED 1 #endif // Backend support #ifndef AP_COMPASS_EXTERNALAHRS_ENABLED #define AP_COMPASS_EXTERNALAHRS_ENABLED HAL_EXTERNAL_AHRS_ENABLED #endif #ifndef AP_COMPASS_MSP_ENABLED #define AP_COMPASS_MSP_ENABLED HAL_MSP_SENSORS_ENABLED #endif #ifndef AP_COMPASS_SITL_ENABLED #define AP_COMPASS_SITL_ENABLED AP_SIM_ENABLED #endif #ifndef AP_COMPASS_UAVCAN_ENABLED #define AP_COMPASS_UAVCAN_ENABLED HAL_ENABLE_LIBUAVCAN_DRIVERS #endif