mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 07:51:36 +08:00
Add vision height covariance passthrough (#507)
* Add vision height covariance passthrough * Fix hgtErr layout
This commit is contained in:
committed by
Paul Riseborough
parent
a7245229cb
commit
2354c30d81
@@ -149,7 +149,7 @@ void Ekf::fuseVelPosHeight()
|
||||
// calculate the innovation assuming the external vision observaton is in local NED frame
|
||||
innovation[5] = _state.pos(2) - _ev_sample_delayed.posNED(2);
|
||||
// observation variance - defined externally
|
||||
R[5] = fmaxf(_ev_sample_delayed.posErr, 0.01f);
|
||||
R[5] = fmaxf(_ev_sample_delayed.hgtErr, 0.01f);
|
||||
R[5] = R[5] * R[5];
|
||||
// innovation gate size
|
||||
gate_size[5] = fmaxf(_params.ev_innov_gate, 1.0f);
|
||||
|
||||
Reference in New Issue
Block a user