ekf2: fusion always succeeds, do not return boolean

This commit is contained in:
bresch
2024-09-24 10:48:14 -04:00
committed by Daniel Agar
parent 23f343aa3a
commit 35efe44a6b
15 changed files with 109 additions and 157 deletions
+1 -2
View File
@@ -1005,7 +1005,7 @@ void Ekf::updateIMUBiasInhibit(const imuSample &imu_delayed)
}
}
bool Ekf::fuseDirectStateMeasurement(const float innov, const float innov_var, const float R, const int state_index)
void Ekf::fuseDirectStateMeasurement(const float innov, const float innov_var, const float R, const int state_index)
{
VectorState K; // Kalman gain vector for any single observation - sequential fusion is used.
@@ -1063,7 +1063,6 @@ bool Ekf::fuseDirectStateMeasurement(const float innov, const float innov_var, c
// apply the state corrections
fuse(K, innov);
return true;
}
bool Ekf::measurementUpdate(VectorState &K, const VectorState &H, const float R, const float innovation)