ekf2: stop flow fusion on numerical error

This commit is contained in:
Daniel Agar 2024-07-11 12:22:26 -04:00
parent b425253a54
commit 4263fa9ee4

View File

@ -63,6 +63,7 @@ bool Ekf::fuseOptFlow(VectorState &H, const bool update_terrain)
// we need to reinitialise the covariance matrix and abort this fusion step
ECL_ERR("Opt flow error - covariance reset");
initialiseCovariance();
stopFlowFusion();
return false;
}