Path: blob/master/libraries/AP_AHRS/AP_AHRS_config.h
9799 views
#pragma once12#include <AP_HAL/AP_HAL_Boards.h>3#include <AP_InertialSensor/AP_InertialSensor_config.h>4#include <AP_ExternalAHRS/AP_ExternalAHRS_config.h>56#ifndef AP_AHRS_ENABLED7#define AP_AHRS_ENABLED 18#endif910#ifndef AP_HOME_ENABLED11#define AP_HOME_ENABLED AP_AHRS_ENABLED12#endif1314#ifndef AP_AHRS_BACKEND_DEFAULT_ENABLED15#define AP_AHRS_BACKEND_DEFAULT_ENABLED AP_AHRS_ENABLED16#endif1718#ifndef AP_AHRS_DCM_ENABLED19#define AP_AHRS_DCM_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_INERTIALSENSOR_ENABLED20#endif2122#ifndef AP_AHRS_EXTERNAL_ENABLED23#define AP_AHRS_EXTERNAL_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_EXTERNAL_AHRS_ENABLED24#endif2526#ifndef HAL_NAVEKF2_AVAILABLE27// EKF2 slated compiled out by default in 4.5, slated to be removed.28#define HAL_NAVEKF2_AVAILABLE 029#endif3031#ifndef HAL_NAVEKF3_AVAILABLE32#define HAL_NAVEKF3_AVAILABLE AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_INERTIALSENSOR_ENABLED33#endif3435#ifndef AP_AHRS_SIM_ENABLED36#define AP_AHRS_SIM_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_SIM_ENABLED && AP_INERTIALSENSOR_ENABLED37#endif3839#ifndef AP_AHRS_POSITION_RESET_ENABLED40#define AP_AHRS_POSITION_RESET_ENABLED (HAL_PROGRAM_SIZE_LIMIT_KB>1024 && AP_AHRS_ENABLED)41#endif4243#ifndef AP_AHRS_EXTERNAL_WIND_ESTIMATE_ENABLED44#define AP_AHRS_EXTERNAL_WIND_ESTIMATE_ENABLED (HAL_PROGRAM_SIZE_LIMIT_KB>1024 && AP_AHRS_DCM_ENABLED)45#endif464748