We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad05aa2 commit ed2ba29Copy full SHA for ed2ba29
src/main/navigation/navigation_pos_estimator.c
@@ -569,7 +569,7 @@ static bool estimationCalculateCorrection_Z(estimationContext_t * ctx)
569
if (ctx->newFlags & EST_GPS_Z_VALID) {
570
// Trust GPS velocity only if residual/error is less than 2.5 m/s, scale weight according to gaussian distribution
571
const float gpsRocResidual = posEstimator.gps.vel.z - posEstimator.est.vel.z;
572
- const float gpsRocScaler = bellCurve(gpsRocResidual, 2.5f);
+ const float gpsRocScaler = bellCurve(gpsRocResidual, 250.0f);
573
ctx->estVelCorr.z += gpsRocResidual * positionEstimationConfig()->w_z_gps_v * gpsRocScaler * ctx->dt;
574
}
575
0 commit comments