AP_NavEKF: avoid use of undefined #defines
Ensure EKF_DISABLE_INTERRUPTS is defined Do not define MATH_CHECK_INDEXES, assume it is defined
This commit is contained in:
parent
80bc7a50d7
commit
11760c33f6
@ -31,8 +31,6 @@
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#include <AP_RangeFinder/AP_RangeFinder.h>
|
||||
|
||||
// #define MATH_CHECK_INDEXES 1
|
||||
|
||||
#include <AP_Math/vectorN.h>
|
||||
|
||||
// GPS pre-flight check bit locations
|
||||
|
@ -35,8 +35,7 @@
|
||||
#define OPT_MATHS
|
||||
#endif
|
||||
|
||||
// #define MATH_CHECK_INDEXES 1
|
||||
// #define EKF_DISABLE_INTERRUPTS 1
|
||||
#define EKF_DISABLE_INTERRUPTS 0
|
||||
|
||||
#include <AP_Math/vectorN.h>
|
||||
|
||||
@ -58,7 +57,7 @@ public:
|
||||
friend class NavEKF;
|
||||
|
||||
typedef float ftype;
|
||||
#if defined(MATH_CHECK_INDEXES) && (MATH_CHECK_INDEXES == 1)
|
||||
#if MATH_CHECK_INDEXES
|
||||
typedef VectorN<ftype,2> Vector2;
|
||||
typedef VectorN<ftype,3> Vector3;
|
||||
typedef VectorN<ftype,4> Vector4;
|
||||
|
Loading…
Reference in New Issue
Block a user