forked from Archive/PX4-Autopilot
terrain est: clear innovation/var/test ration when aiding stops
This commit is contained in:
parent
fad3d46907
commit
e2955bdd61
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue