summaryrefslogtreecommitdiff
path: root/src/body.h
diff options
context:
space:
mode:
authorMartin Miller2017-03-31 16:22:43 -0500
committerMartin Miller2017-03-31 16:22:43 -0500
commit57bc3c5b99406e2dfa04ce38de12ac2f4e749248 (patch)
treeec5aa64d56ad444f2251c4a1ab50ea65651214d1 /src/body.h
parent3644a23c3fb97fa6733ec388002d62ccb8c0d39f (diff)
downloadrefslam-57bc3c5b99406e2dfa04ce38de12ac2f4e749248.zip
refslam-57bc3c5b99406e2dfa04ce38de12ac2f4e749248.tar.gz
Add compile time flags.
Diffstat (limited to 'src/body.h')
-rw-r--r--src/body.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/body.h b/src/body.h
index 90e1998..7bbd50d 100644
--- a/src/body.h
+++ b/src/body.h
@@ -6,6 +6,11 @@
#define R_HEIGHT 2.5e-3 /* measurement noise of height measurement */
#define IMU_NOISE 800e-6 /* IMU process noise */
#define IMU_RANDOMWALK 50e-6 /* Bias process noise */
+//#define DOCLAMP
+#define MAXHEIGHT -1.5 /* Notion of max and min is reversed due to z pointing down */
+#define MINHEIGHT -0.3 /* */
+
+
using Eigen::Matrix;
using Eigen::Vector3d;
using Eigen::Quaterniond;
@@ -30,6 +35,7 @@ class Body
/* ==================== MUTATORS ======================================= */
void accelerometer_bias( const Vector3d &b);
void asVector(const Matrix<double,9,1> &m);
+ void clamp();
void pos( const UTM &utm);
void dx( const Matrix<double,9,1> &del);
void vel(const Matrix<double,3,1> &v);