AP_ExternalAHRS: regularise compass defines
start to make compass backends look like backends from our other libraries
This commit is contained in:
parent
3adbaddab0
commit
274b6f19bc
@ -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 {
|
||||
|
7
libraries/AP_ExternalAHRS/AP_ExternalAHRS_config.h
Normal file
7
libraries/AP_ExternalAHRS/AP_ExternalAHRS_config.h
Normal 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
|
Loading…
Reference in New Issue
Block a user