mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 22:53:34 +08:00
AttPosEKF: Only fuse GPS velocity if they are valid
This commit is contained in:
committed by
Lorenz Meier
parent
2e824bbeea
commit
b7a6f18ca6
@@ -937,7 +937,7 @@ void AttitudePositionEstimatorEKF::updateSensorFusion(const bool fuseGPS, const
|
||||
// Convert GPS measurements to Pos NE, hgt and Vel NED
|
||||
|
||||
// set fusion flags
|
||||
_ekf->fuseVelData = true;
|
||||
_ekf->fuseVelData = _gps.vel_ned_valid;
|
||||
_ekf->fusePosData = true;
|
||||
|
||||
// recall states stored at time of measurement after adjusting for delays
|
||||
|
||||
Reference in New Issue
Block a user