mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 14:33:33 +08:00
EKF: Increase measurement error allowance for accelerometer clipping
This commit is contained in:
+3
-2
@@ -235,8 +235,9 @@ void Ekf::predictCovariance()
|
||||
daxVar = dayVar = dazVar = sq(dt * gyro_noise);
|
||||
float accel_noise = math::constrain(_params.accel_noise, 0.0f, 1.0f);
|
||||
if (_bad_vert_accel_detected) {
|
||||
// increase accelerometer process noise if bad accel data is detected
|
||||
accel_noise *= BADACC_BIAS_PNOISE_MULT;
|
||||
// Increase accelerometer process noise if bad accel data is detected. Measurement errors due to
|
||||
// vibration induced clipping commonly reach an equivalent 0.5g offset.
|
||||
accel_noise = BADACC_BIAS_PNOISE;
|
||||
}
|
||||
dvxVar = dvyVar = dvzVar = sq(dt * accel_noise);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user