AP_AHRS: break out an AP_AHRS_config.h

This commit is contained in:
Peter Barker 2023-01-03 23:55:28 +11:00 committed by Andrew Tridgell
parent 10c5ecb46a
commit 551dae8759
2 changed files with 18 additions and 14 deletions

View File

@ -21,22 +21,10 @@
* *
*/ */
#include <AP_HAL/AP_HAL_Boards.h> #include "AP_AHRS_config.h"
#include <AP_HAL/Semaphores.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 #if AP_AHRS_SIM_ENABLED
#include <SITL/SITL.h> #include <SITL/SITL.h>
#endif #endif

View 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