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
+14
View File
@@ -0,0 +1,14 @@
#include "mathlib.h"
float math::constrain(float &val, float min, float max)
{
return (val < min) ? min : ((val > max) ? max : val);
}
float math::radians(float degrees)
{
return (degrees / 180.0f) * M_PI_F;
}
float math::degrees(float radians)
{
return (radians * 180.0f) / M_PI_F;
}