mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 18:53:57 -04:00
We will reserve BOARD_FLASH_SIZE for the internal flash on stm32 flash processors, use HAL_PROGRAM_SIZE_LIMIT_KB in the general code base. Notable change here is that boards with external flash will start to get features only available with more than 2MB of program storage
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
#include <AP_InertialSensor/AP_InertialSensor_config.h>
|
|
#include <AP_ExternalAHRS/AP_ExternalAHRS_config.h>
|
|
|
|
#ifndef AP_AHRS_ENABLED
|
|
#define AP_AHRS_ENABLED 1
|
|
#endif
|
|
|
|
#ifndef AP_HOME_ENABLED
|
|
#define AP_HOME_ENABLED AP_AHRS_ENABLED
|
|
#endif
|
|
|
|
#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
|
|
|
|
#ifndef AP_AHRS_EXTERNAL_ENABLED
|
|
#define AP_AHRS_EXTERNAL_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && HAL_EXTERNAL_AHRS_ENABLED
|
|
#endif
|
|
|
|
#ifndef HAL_NAVEKF2_AVAILABLE
|
|
// EKF2 slated compiled out by default in 4.5, slated to be removed.
|
|
#define HAL_NAVEKF2_AVAILABLE 0
|
|
#endif
|
|
|
|
#ifndef HAL_NAVEKF3_AVAILABLE
|
|
#define HAL_NAVEKF3_AVAILABLE AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_INERTIALSENSOR_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_AHRS_SIM_ENABLED
|
|
#define AP_AHRS_SIM_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_SIM_ENABLED && AP_INERTIALSENSOR_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_AHRS_POSITION_RESET_ENABLED
|
|
#define AP_AHRS_POSITION_RESET_ENABLED (HAL_PROGRAM_SIZE_LIMIT_KB>1024 && AP_AHRS_ENABLED)
|
|
#endif
|
|
|
|
#ifndef AP_AHRS_EXTERNAL_WIND_ESTIMATE_ENABLED
|
|
#define AP_AHRS_EXTERNAL_WIND_ESTIMATE_ENABLED (HAL_PROGRAM_SIZE_LIMIT_KB>1024 && AP_AHRS_DCM_ENABLED)
|
|
#endif
|