Skip to content

Commit 45e7a2b

Browse files
committed
mqkef updated
1 parent b8ae18a commit 45e7a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MIDAS/src/gnc/mqekf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void QuaternionMEKF::measurement_update(Acceleration const &accel, Magnetometer
149149
mag(1, 0) = mag_input.my;
150150
mag(2, 0) = mag_input.mz;
151151

152-
if (acc(0) < 0 ) // Check if the norm of the accelerometer measurement is in boost
152+
if (acc(0,0) < 0 ) // Check if the norm of the accelerometer measurement is in boost
153153
{
154154
Eigen::Matrix<float, 3, 3> Rm = sigma_m.array().square().matrix().asDiagonal();
155155
measurement_update_partial(mag, magnetometer_measurement_func(), Rm);

0 commit comments

Comments
 (0)