Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
EKF: Fix covariance index bug
Browse files Browse the repository at this point in the history
  • Loading branch information
priseborough committed Jun 3, 2016
1 parent 8bfdb04 commit f08aee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EKF/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ void Ekf::controlHeightSensorTimeouts()
_time_bad_vert_accel = _time_last_imu;
}

if ((P[8][8] > sq(_params.hgt_reset_lim)) && ((_time_last_imu - _time_last_hgt_fuse) > 5e6)) {
if ((P[9][9] > sq(_params.hgt_reset_lim)) && ((_time_last_imu - _time_last_hgt_fuse) > 5e6)) {
// boolean that indicates we will do a height reset
bool reset_height = false;

Expand Down

0 comments on commit f08aee0

Please # to comment.