mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 21:33:33 +08:00
EKF: Fix covariance index bug
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user