mirror of https://github.com/ArduPilot/ardupilot
AP_ExternalAHRS: Allow InertialLabs to be used as build option properly
build_options cannot autodetect InertialLabs since the feature is extracted as AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED (without the underscore). This allows you to define in/out InertialLabs properly.
This commit is contained in:
parent
d225683d69
commit
39f7d7a3ad
|
@ -124,7 +124,7 @@ void AP_ExternalAHRS::init(void)
|
|||
return;
|
||||
#endif
|
||||
|
||||
#if AP_EXTERNAL_AHRS_INERTIAL_LABS_ENABLED
|
||||
#if AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED
|
||||
case DevType::InertialLabs:
|
||||
backend = NEW_NOTHROW AP_ExternalAHRS_InertialLabs(this, state);
|
||||
return;
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
#if AP_EXTERNAL_AHRS_MICROSTRAIN5_ENABLED
|
||||
MicroStrain5 = 2,
|
||||
#endif
|
||||
#if AP_EXTERNAL_AHRS_INERTIAL_LABS_ENABLED
|
||||
#if AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED
|
||||
InertialLabs = 5,
|
||||
#endif
|
||||
// 3 reserved for AdNav
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "AP_ExternalAHRS_config.h"
|
||||
|
||||
#if AP_EXTERNAL_AHRS_INERTIAL_LABS_ENABLED
|
||||
#if AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED
|
||||
|
||||
#include "AP_ExternalAHRS_InertialLabs.h"
|
||||
#include <AP_Math/AP_Math.h>
|
||||
|
@ -692,5 +692,5 @@ void AP_ExternalAHRS_InertialLabs::send_status_report(GCS_MAVLINK &link) const
|
|||
mag_var, 0, 0);
|
||||
}
|
||||
|
||||
#endif // AP_EXTERNAL_AHRS_INERTIAL_LABS_ENABLED
|
||||
#endif // AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "AP_ExternalAHRS_config.h"
|
||||
|
||||
#if AP_EXTERNAL_AHRS_INERTIAL_LABS_ENABLED
|
||||
#if AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED
|
||||
|
||||
#include "AP_ExternalAHRS_backend.h"
|
||||
|
||||
|
@ -228,5 +228,5 @@ private:
|
|||
uint32_t last_gps_ms;
|
||||
};
|
||||
|
||||
#endif // AP_EXTERNAL_AHRS_INERTIAL_LABS_ENABLED
|
||||
#endif // AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED
|
||||
|
||||
|
|
|
@ -26,6 +26,6 @@
|
|||
#define AP_EXTERNAL_AHRS_VECTORNAV_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef AP_EXTERNAL_AHRS_INERTIAL_LABS_ENABLED
|
||||
#define AP_EXTERNAL_AHRS_INERTIAL_LABS_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
|
||||
#ifndef AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED
|
||||
#define AP_EXTERNAL_AHRS_INERTIALLABS_ENABLED AP_EXTERNAL_AHRS_BACKEND_DEFAULT_ENABLED
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue