Browse Source

AP_NavEKF: avoid use of undefined #defines

Ensure EKF_DISABLE_INTERRUPTS is defined

Do not define MATH_CHECK_INDEXES, assume it is defined
mission-4.1.18
Peter Barker 9 years ago committed by Lucas De Marchi
parent
commit
11760c33f6
  1. 2
      libraries/AP_NavEKF/AP_NavEKF.h
  2. 5
      libraries/AP_NavEKF/AP_NavEKF_core.h

2
libraries/AP_NavEKF/AP_NavEKF.h

@ -31,8 +31,6 @@ @@ -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

5
libraries/AP_NavEKF/AP_NavEKF_core.h

@ -35,8 +35,7 @@ @@ -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: @@ -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…
Cancel
Save