mirror of https://github.com/ArduPilot/ardupilot
AP_NavEKF3: fix computation of rho
This commit is contained in:
parent
10209a2a13
commit
564879594e
|
@ -485,7 +485,7 @@ void NavEKF3_core::FuseDragForces()
|
|||
ZERO_FARRAY(Kfusion);
|
||||
Vector24 Hfusion; // Observation Jacobians
|
||||
const ftype R_ACC = sq(fmaxF(frontend->_dragObsNoise, 0.5f));
|
||||
const ftype density_ratio = sqrtF(dal.get_EAS2TAS());
|
||||
const ftype density_ratio = 1.0f/sq(dal.get_EAS2TAS());
|
||||
const ftype rho = fmaxF(1.225f * density_ratio, 0.1f); // air density
|
||||
|
||||
// get latest estimated orientation
|
||||
|
|
Loading…
Reference in New Issue