mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 23:13:34 +08:00
EKF: Correct for sensor noise and baro offset during alignment
This commit is contained in:
+1
-2
@@ -272,10 +272,9 @@ bool Ekf::initialiseFilter(void)
|
||||
// calculate the averaged barometer reading
|
||||
_baro_at_alignment = _baro_sum / (float)_baro_counter;
|
||||
|
||||
// set the velocity to the GPS measurement (by definition, the initial position and height is at the origin)
|
||||
resetVelocity();
|
||||
resetPosition();
|
||||
|
||||
// initialise the state covariance matrix
|
||||
initialiseCovariance();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user