diff options
author | Martin Miller | 2017-04-10 00:13:10 -0500 |
---|---|---|
committer | Martin Miller | 2017-04-10 00:13:10 -0500 |
commit | 16972c736994fa49b04d1e967516278660e4be2d (patch) | |
tree | 9718f242e6185c70196c8229bb92986adb576080 | |
parent | 340351aba51e55d228c966195a7f2c1e04b06d17 (diff) | |
download | refslam-16972c736994fa49b04d1e967516278660e4be2d.zip refslam-16972c736994fa49b04d1e967516278660e4be2d.tar.gz |
Fix switch case fallthrough bug
-rw-r--r-- | src/state.cpp | 1 | ||||
-rw-r--r-- | src/vision.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/state.cpp b/src/state.cpp index 32801f8..055a3d1 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -105,6 +105,7 @@ State::H ( const Quaterniond &q, const vector<measurement_t> &z ) h.block<4,STATESIZE>(row,0) = fi->Hx(pos,q).block<4,STATESIZE>(2,0); h.block<4,3>(row,col) = fi->Hy(pos,q).block<4,3>(2,0); row += 4; + break; case HEIGHT: h.block<1,STATESIZE>(row,0) = body->H(); diff --git a/src/vision.cpp b/src/vision.cpp index 4d4ba2e..2b190c0 100644 --- a/src/vision.cpp +++ b/src/vision.cpp @@ -200,7 +200,7 @@ Vision::measurements ( const Camera &cam, const vector<measurement_t> &zin, } } } - z.z_type = BOTH; + z.z_type = mt; zout.push_back(z); } return ; |