mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_AHRS: break out an AP_AHRS_config.h
This commit is contained in:
parent
10c5ecb46a
commit
551dae8759
@ -21,22 +21,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
#include "AP_AHRS_config.h"
|
||||
|
||||
#include <AP_HAL/Semaphores.h>
|
||||
|
||||
#ifndef HAL_NAVEKF2_AVAILABLE
|
||||
// only default to EK2 enabled on boards with over 1M flash
|
||||
#define HAL_NAVEKF2_AVAILABLE (BOARD_FLASH_SIZE>1024)
|
||||
#endif
|
||||
|
||||
#ifndef HAL_NAVEKF3_AVAILABLE
|
||||
#define HAL_NAVEKF3_AVAILABLE 1
|
||||
#endif
|
||||
|
||||
#ifndef AP_AHRS_SIM_ENABLED
|
||||
#define AP_AHRS_SIM_ENABLED AP_SIM_ENABLED
|
||||
#endif
|
||||
|
||||
#if AP_AHRS_SIM_ENABLED
|
||||
#include <SITL/SITL.h>
|
||||
#endif
|
||||
|
16
libraries/AP_AHRS/AP_AHRS_config.h
Normal file
16
libraries/AP_AHRS/AP_AHRS_config.h
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#ifndef HAL_NAVEKF2_AVAILABLE
|
||||
// only default to EK2 enabled on boards with over 1M flash
|
||||
#define HAL_NAVEKF2_AVAILABLE (BOARD_FLASH_SIZE>1024)
|
||||
#endif
|
||||
|
||||
#ifndef HAL_NAVEKF3_AVAILABLE
|
||||
#define HAL_NAVEKF3_AVAILABLE 1
|
||||
#endif
|
||||
|
||||
#ifndef AP_AHRS_SIM_ENABLED
|
||||
#define AP_AHRS_SIM_ENABLED AP_SIM_ENABLED
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user