2023-01-03 08:55:28 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2023-09-20 08:20:44 -03:00
|
|
|
#include <AP_InertialSensor/AP_InertialSensor_config.h>
|
2023-11-27 21:13:11 -04:00
|
|
|
#include <AP_ExternalAHRS/AP_ExternalAHRS_config.h>
|
2023-01-03 08:55:28 -04:00
|
|
|
|
2023-06-20 03:22:13 -03:00
|
|
|
#ifndef AP_AHRS_ENABLED
|
|
|
|
#define AP_AHRS_ENABLED 1
|
|
|
|
#endif
|
|
|
|
|
2023-09-20 08:20:44 -03:00
|
|
|
#ifndef AP_AHRS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define AP_AHRS_BACKEND_DEFAULT_ENABLED AP_AHRS_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AHRS_DCM_ENABLED
|
|
|
|
#define AP_AHRS_DCM_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_INERTIALSENSOR_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-11-27 21:13:11 -04:00
|
|
|
#ifndef AP_AHRS_EXTERNAL_ENABLED
|
|
|
|
#define AP_AHRS_EXTERNAL_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && HAL_EXTERNAL_AHRS_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-01-03 08:55:28 -04:00
|
|
|
#ifndef HAL_NAVEKF2_AVAILABLE
|
2023-11-17 02:03:28 -04:00
|
|
|
// EKF2 slated compiled out by default in 4.5, slated to be removed.
|
|
|
|
#define HAL_NAVEKF2_AVAILABLE 0
|
2023-01-03 08:55:28 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_NAVEKF3_AVAILABLE
|
2024-01-11 22:52:09 -04:00
|
|
|
#define HAL_NAVEKF3_AVAILABLE AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_INERTIALSENSOR_ENABLED
|
2023-01-03 08:55:28 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AHRS_SIM_ENABLED
|
2024-01-11 22:52:09 -04:00
|
|
|
#define AP_AHRS_SIM_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_SIM_ENABLED && AP_INERTIALSENSOR_ENABLED
|
2023-01-03 08:55:28 -04:00
|
|
|
#endif
|
2023-05-13 20:56:58 -03:00
|
|
|
|
|
|
|
#ifndef AP_AHRS_POSITION_RESET_ENABLED
|
2024-01-10 18:16:57 -04:00
|
|
|
#define AP_AHRS_POSITION_RESET_ENABLED (BOARD_FLASH_SIZE>1024 && AP_AHRS_ENABLED)
|
2023-05-13 20:56:58 -03:00
|
|
|
#endif
|
|
|
|
|