AP_ExternalAHRS: regularise compass defines

start to make compass backends look like backends from our other libraries
This commit is contained in:
Peter Barker 2022-10-26 20:21:36 +11:00 committed by Peter Barker
parent 3adbaddab0
commit 274b6f19bc
2 changed files with 11 additions and 6 deletions

View File

@ -18,17 +18,15 @@
#pragma once
#include "AP_ExternalAHRS_config.h"
#if HAL_EXTERNAL_AHRS_ENABLED
#include <AP_HAL/AP_HAL.h>
#include <AP_Param/AP_Param.h>
#include <AP_Common/Location.h>
#include <AP_NavEKF/AP_Nav_Common.h>
#ifndef HAL_EXTERNAL_AHRS_ENABLED
#define HAL_EXTERNAL_AHRS_ENABLED !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) && BOARD_FLASH_SIZE > 1024
#endif
#if HAL_EXTERNAL_AHRS_ENABLED
class AP_ExternalAHRS_backend;
class AP_ExternalAHRS {

View File

@ -0,0 +1,7 @@
#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef HAL_EXTERNAL_AHRS_ENABLED
#define HAL_EXTERNAL_AHRS_ENABLED !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) && BOARD_FLASH_SIZE > 1024
#endif