EKF: remove dependecies and allow ekf to be built as standalone shared lib

This commit is contained in:
bugobliterator
2016-02-17 17:33:18 -08:00
parent de02aebafd
commit 263c48d089
13 changed files with 1218 additions and 12 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef MATHLIB_H
#define MATHLIB_H
#ifdef POSIX_SHARED
#include <Eigen/Dense>
#include <algorithm>
#define M_PI_F 3.14159265358979323846f
namespace math {
using namespace Eigen;
using namespace std;
float constrain(float &val, float min, float max);
float radians(float degrees);
float degrees(float radians);
}
#else
#include <mathlib/mathlib.h>
#endif //POSIX_SHARED
#endif //MATHLIB_H