mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 18:23:34 +08:00
EKF: fix spike handling in ev rotation calculation
This commit is contained in:
+1
-1
@@ -1540,7 +1540,7 @@ void Ekf::calcExtVisRotMat()
|
||||
Vector3f _input_delta_vec = rot_vec - _ev_rot_vec_filt;
|
||||
float input_delta_mag = _input_delta_vec.norm();
|
||||
if (input_delta_mag > 0.1f) {
|
||||
rot_vec = _ev_rot_vec_filt + rot_vec * (0.1f / input_delta_mag);
|
||||
rot_vec = _ev_rot_vec_filt + _input_delta_vec * (0.1f / input_delta_mag);
|
||||
}
|
||||
|
||||
// Apply a first order IIR low pass filter
|
||||
|
||||
Reference in New Issue
Block a user