forked from Archive/PX4-Autopilot
ekf2-grav: lower gate to reject real acceleration more effectively
This commit is contained in:
parent
c28972d15e
commit
d624fbba07
|
@ -79,7 +79,7 @@ void Ekf::controlGravityFusion(const imuSample &imu)
|
||||||
innovation.copyTo(_aid_src_gravity.innovation);
|
innovation.copyTo(_aid_src_gravity.innovation);
|
||||||
innovation_variance.copyTo(_aid_src_gravity.innovation_variance);
|
innovation_variance.copyTo(_aid_src_gravity.innovation_variance);
|
||||||
|
|
||||||
float innovation_gate = 1.f;
|
float innovation_gate = 0.25f;
|
||||||
setEstimatorAidStatusTestRatio(_aid_src_gravity, innovation_gate);
|
setEstimatorAidStatusTestRatio(_aid_src_gravity, innovation_gate);
|
||||||
|
|
||||||
const bool accel_clipping = imu.delta_vel_clipping[0] || imu.delta_vel_clipping[1] || imu.delta_vel_clipping[2];
|
const bool accel_clipping = imu.delta_vel_clipping[0] || imu.delta_vel_clipping[1] || imu.delta_vel_clipping[2];
|
||||||
|
|
Loading…
Reference in New Issue