terrain est: clear innovation/var/test ration when aiding stops

This commit is contained in:
bresch 2022-06-03 10:16:27 +02:00 committed by Daniel Agar
parent fad3d46907
commit e2955bdd61
1 changed files with 8 additions and 0 deletions

View File

@ -194,6 +194,10 @@ void Ekf::resetHaglRng()
void Ekf::stopHaglRngFusion()
{
_hagl_sensor_status.flags.range_finder = false;
_hagl_innov = 0.f;
_hagl_innov_var = 0.f;
_hagl_test_ratio = 0.f;
_innov_check_fail_status.flags.reject_hagl = false;
}
void Ekf::fuseHaglRng()
@ -290,6 +294,10 @@ void Ekf::startHaglFlowFusion()
void Ekf::stopHaglFlowFusion()
{
_hagl_sensor_status.flags.flow = false;
_hagl_innov = 0.f;
_hagl_innov_var = 0.f;
_hagl_test_ratio = 0.f;
_innov_check_fail_status.flags.reject_hagl = false;
}
void Ekf::resetHaglFlow()