mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 03:23:34 +08:00
ekf2: changes arising from code review
This commit is contained in:
committed by
Lorenz Meier
parent
394dd95cba
commit
05c3c46f83
+2
-1
@@ -494,7 +494,8 @@ void Ekf::calculateOutputStates()
|
||||
_R_to_earth_now(2,2) * delta_angle(2);
|
||||
_yaw_delta_ef += spin_del_ang_D;
|
||||
|
||||
// calculate filtered yaw rate to be used by the magnetomer fusion type selection logic
|
||||
// Calculate filtered yaw rate to be used by the magnetomer fusion type selection logic
|
||||
// Note fixed coefficients are used to save operations. The exact time constant is not important.
|
||||
_yaw_rate_lpf_ef = 0.95f * _yaw_rate_lpf_ef + 0.05f * spin_del_ang_D / _imu_sample_new.delta_ang_dt;
|
||||
|
||||
// correct delta velocity for bias offsets
|
||||
|
||||
Reference in New Issue
Block a user