mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 16:53:33 +08:00
ekf: use float instead of Vector2f for innov gate in pos/vel fusion
We always use the same innovation gate for X and Y anyway
This commit is contained in:
@@ -116,7 +116,7 @@ void Ekf::fuseFakePosition()
|
||||
|
||||
_gps_pos_innov.xy() = Vector2f(_state.pos) - _last_known_posNE;
|
||||
|
||||
const Vector2f fake_pos_innov_gate(3.0f, 3.0f);
|
||||
const float fake_pos_innov_gate = 3.f;
|
||||
|
||||
if (fuseHorizontalPosition(_gps_pos_innov, fake_pos_innov_gate, fake_pos_obs_var,
|
||||
_gps_pos_innov_var, _gps_pos_test_ratio, true)) {
|
||||
|
||||
Reference in New Issue
Block a user