2022-10-26 06:21:36 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
|
|
|
|
|
|
#ifndef HAL_EXTERNAL_AHRS_ENABLED
|
2023-04-14 00:47:52 -03:00
|
|
|
#define HAL_EXTERNAL_AHRS_ENABLED BOARD_FLASH_SIZE > 1024
|
2022-10-26 06:21:36 -03:00
|
|
|
#endif
|
2023-04-24 06:54:51 -03:00
|
|
|
|
|
|
|
#ifndef AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED HAL_EXTERNAL_AHRS_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-08-18 16:14:40 -03:00
|
|
|
#ifndef AP_EXTERNAL_AHRS_MICROSTRAIN5_ENABLED
|
|
|
|
#define AP_EXTERNAL_AHRS_MICROSTRAIN5_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-09-23 16:42:35 -03:00
|
|
|
#ifndef AP_EXTERNAL_AHRS_MICROSTRAIN7_ENABLED
|
|
|
|
#define AP_EXTERNAL_AHRS_MICROSTRAIN7_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-08-18 16:14:40 -03:00
|
|
|
#ifndef AP_MICROSTRAIN_ENABLED
|
2024-01-12 05:41:03 -04:00
|
|
|
#define AP_MICROSTRAIN_ENABLED AP_EXTERNAL_AHRS_MICROSTRAIN5_ENABLED || AP_EXTERNAL_AHRS_MICROSTRAIN7_ENABLED
|
2023-04-24 06:54:51 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_EXTERNAL_AHRS_VECTORNAV_ENABLED
|
|
|
|
#define AP_EXTERNAL_AHRS_VECTORNAV_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
2023-11-30 18:00:30 -04:00
|
|
|
|
2024-08-12 20:15:31 -03:00
|
|
|
#ifndef AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED
|
|
|
|
#define AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
|
2023-11-30 18:00:30 -04:00
|
|
|
#endif
|