AP_AHRS: add and use AP_AHRS_ENABLED

This commit is contained in:
Peter Barker 2023-06-20 16:22:13 +10:00 committed by Peter Barker
parent 07bf38d7f8
commit be392b1c5b

View File

@ -2,6 +2,10 @@
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef AP_AHRS_ENABLED
#define AP_AHRS_ENABLED 1
#endif
#ifndef HAL_NAVEKF2_AVAILABLE
// only default to EK2 enabled on boards with over 1M flash
#define HAL_NAVEKF2_AVAILABLE (BOARD_FLASH_SIZE>1024)