mirror of https://github.com/ArduPilot/ardupilot
27 lines
627 B
C
27 lines
627 B
C
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
#include <AP_ExternalAHRS/AP_ExternalAHRS_config.h>
|
|
#include <AP_MSP/msp.h>
|
|
|
|
#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
|