Do not update output filter a second time after reset to flow.

This commit is contained in:
kamilritz
2020-07-26 11:34:40 +02:00
committed by Mathieu Bresciani
parent 77b11129fa
commit 960b80ee71
-3
View File
@@ -432,9 +432,6 @@ void Ekf::controlOpticalFlowFusion()
// but _flow_compensated_XY_rad is this zero as it gets updated for the first time below here. // but _flow_compensated_XY_rad is this zero as it gets updated for the first time below here.
resetVelocity(); resetVelocity();
resetHorizontalPosition(); resetHorizontalPosition();
// align the output observer to the EKF states
alignOutputFilter();
} }
} }