CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_AHRS/AP_AHRS_config.h
Views: 1798
1
#pragma once
2
3
#include <AP_HAL/AP_HAL_Boards.h>
4
#include <AP_InertialSensor/AP_InertialSensor_config.h>
5
#include <AP_ExternalAHRS/AP_ExternalAHRS_config.h>
6
7
#ifndef AP_AHRS_ENABLED
8
#define AP_AHRS_ENABLED 1
9
#endif
10
11
#ifndef AP_HOME_ENABLED
12
#define AP_HOME_ENABLED AP_AHRS_ENABLED
13
#endif
14
15
#ifndef AP_AHRS_BACKEND_DEFAULT_ENABLED
16
#define AP_AHRS_BACKEND_DEFAULT_ENABLED AP_AHRS_ENABLED
17
#endif
18
19
#ifndef AP_AHRS_DCM_ENABLED
20
#define AP_AHRS_DCM_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_INERTIALSENSOR_ENABLED
21
#endif
22
23
#ifndef AP_AHRS_EXTERNAL_ENABLED
24
#define AP_AHRS_EXTERNAL_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && HAL_EXTERNAL_AHRS_ENABLED
25
#endif
26
27
#ifndef HAL_NAVEKF2_AVAILABLE
28
// EKF2 slated compiled out by default in 4.5, slated to be removed.
29
#define HAL_NAVEKF2_AVAILABLE 0
30
#endif
31
32
#ifndef HAL_NAVEKF3_AVAILABLE
33
#define HAL_NAVEKF3_AVAILABLE AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_INERTIALSENSOR_ENABLED
34
#endif
35
36
#ifndef AP_AHRS_SIM_ENABLED
37
#define AP_AHRS_SIM_ENABLED AP_AHRS_BACKEND_DEFAULT_ENABLED && AP_SIM_ENABLED && AP_INERTIALSENSOR_ENABLED
38
#endif
39
40
#ifndef AP_AHRS_POSITION_RESET_ENABLED
41
#define AP_AHRS_POSITION_RESET_ENABLED (BOARD_FLASH_SIZE>1024 && AP_AHRS_ENABLED)
42
#endif
43
44
#ifndef AP_AHRS_EXTERNAL_WIND_ESTIMATE_ENABLED
45
#define AP_AHRS_EXTERNAL_WIND_ESTIMATE_ENABLED (BOARD_FLASH_SIZE>1024 && AP_AHRS_DCM_ENABLED)
46
#endif
47
48