summaryrefslogtreecommitdiff
path: root/src/body.cpp
diff options
context:
space:
mode:
authorMartin Miller2017-03-26 16:33:20 -0500
committerMartin Miller2017-03-26 16:33:20 -0500
commitb2cba6dc96c22f35fcf0df75527868cc36e93760 (patch)
tree6973a09a6b8daa4c515e0c3c7bdc4839e3b9fabb /src/body.cpp
parent89937f85344bc389c934d15ed606645e289620d0 (diff)
downloadrefslam-b2cba6dc96c22f35fcf0df75527868cc36e93760.zip
refslam-b2cba6dc96c22f35fcf0df75527868cc36e93760.tar.gz
Fully implemented EKF.
Still needs to be debugged as the result is way off, but it is all there.
Diffstat (limited to 'src/body.cpp')
-rw-r--r--src/body.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/body.cpp b/src/body.cpp
index 83838a5..ae43e58 100644
--- a/src/body.cpp
+++ b/src/body.cpp
@@ -28,6 +28,11 @@ void
Body::update ( const Matrix<double,9,1> &dx )
{
X += dx;
+ if (X[2]<-1.) {
+ X[2]=-1.;
+ } else if (X[2]>-0.2) {
+ X[2]=-0.2;
+ }
return ;
} /* ----- end of method Body::update ----- */
@@ -84,7 +89,7 @@ Matrix<double,1,1>
Body::R()
{
Matrix<double,1,1> R;
- R << 1e-3;
+ R << 1e-6;
return R;
}