mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 18:17:34 +08:00
terrain est: clear innovation/var/test ration when aiding stops
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user