2022-10-04 21:22:17 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2022-10-26 06:21:36 -03:00
|
|
|
#include <AP_ExternalAHRS/AP_ExternalAHRS_config.h>
|
|
|
|
#include <AP_MSP/msp.h>
|
2022-10-04 21:22:17 -03:00
|
|
|
|
|
|
|
#ifndef AP_COMPASS_DIAGONALS_ENABLED
|
2022-10-26 04:14:11 -03:00
|
|
|
#define AP_COMPASS_DIAGONALS_ENABLED 1
|
2022-10-04 21:22:17 -03:00
|
|
|
#endif
|
2022-10-26 06:21:36 -03:00
|
|
|
|
|
|
|
// 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
|