mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 23:37:35 +08:00
EKF: Fix specific force observation noise variance
Also add protection for out of range value.
This commit is contained in:
committed by
Paul Riseborough
parent
76f393dcb0
commit
fd849e0578
+1
-1
@@ -48,8 +48,8 @@ void Ekf::fuseDrag()
|
|||||||
{
|
{
|
||||||
SparseVector24f<0,1,2,3,4,5,6,22,23> Hfusion; // Observation Jacobians
|
SparseVector24f<0,1,2,3,4,5,6,22,23> Hfusion; // Observation Jacobians
|
||||||
Vector24f Kfusion; // Kalman gain vector
|
Vector24f Kfusion; // Kalman gain vector
|
||||||
const float R_ACC = sq(_params.drag_noise); // observation noise variance in specific force drag (m/sec**2)**2
|
|
||||||
|
|
||||||
|
const float R_ACC = fmaxf(_params.drag_noise, 0.5f); // observation noise variance in specific force drag (m/sec**2)**2
|
||||||
const float rho = fmaxf(_air_density, 0.1f); // air density (kg/m**3)
|
const float rho = fmaxf(_air_density, 0.1f); // air density (kg/m**3)
|
||||||
|
|
||||||
// calculate inverse of ballistic coefficient
|
// calculate inverse of ballistic coefficient
|
||||||
|
|||||||
Reference in New Issue
Block a user