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_ExternalAHRS/AP_ExternalAHRS_config.h
Views: 1798
1
#pragma once
2
3
#include <AP_HAL/AP_HAL_Boards.h>
4
5
#ifndef HAL_EXTERNAL_AHRS_ENABLED
6
#define HAL_EXTERNAL_AHRS_ENABLED BOARD_FLASH_SIZE > 1024
7
#endif
8
9
#ifndef AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
10
#define AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED HAL_EXTERNAL_AHRS_ENABLED
11
#endif
12
13
#ifndef AP_EXTERNAL_AHRS_MICROSTRAIN5_ENABLED
14
#define AP_EXTERNAL_AHRS_MICROSTRAIN5_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
15
#endif
16
17
#ifndef AP_EXTERNAL_AHRS_MICROSTRAIN7_ENABLED
18
#define AP_EXTERNAL_AHRS_MICROSTRAIN7_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
19
#endif
20
21
#ifndef AP_MICROSTRAIN_ENABLED
22
#define AP_MICROSTRAIN_ENABLED AP_EXTERNAL_AHRS_MICROSTRAIN5_ENABLED || AP_EXTERNAL_AHRS_MICROSTRAIN7_ENABLED
23
#endif
24
25
#ifndef AP_EXTERNAL_AHRS_VECTORNAV_ENABLED
26
#define AP_EXTERNAL_AHRS_VECTORNAV_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
27
#endif
28
29
#ifndef AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED
30
#define AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
31
#endif
32
33