mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-24 16:20:34 +08:00
ekf2: allow yaw estimator to run when disarmed (if not at rest)
This commit is contained in:
@@ -1802,8 +1802,10 @@ void Ekf::runYawEKFGSF()
|
||||
}
|
||||
}
|
||||
|
||||
const bool run_yaw_estimator = _control_status.flags.in_air || !_control_status.flags.vehicle_at_rest;
|
||||
const Vector3f imu_gyro_bias = getGyroBias();
|
||||
_yawEstimator.update(_imu_sample_delayed, _control_status.flags.in_air, TAS, imu_gyro_bias);
|
||||
|
||||
_yawEstimator.update(_imu_sample_delayed, run_yaw_estimator, TAS, imu_gyro_bias);
|
||||
|
||||
// basic sanity check on GPS velocity data
|
||||
if (_gps_data_ready && _gps_sample_delayed.vacc > FLT_EPSILON &&
|
||||
|
||||
Reference in New Issue
Block a user