mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 03:04:07 +08:00
EKF: Don't fuse multi rotor drag if yaw angle is bad
This commit is contained in:
parent
092a8d8f21
commit
4889e8432c
@ -1199,7 +1199,8 @@ void Ekf::controlBetaFusion()
|
||||
void Ekf::controlDragFusion()
|
||||
{
|
||||
if (_params.fusion_mode & MASK_USE_DRAG) {
|
||||
if (_control_status.flags.in_air) {
|
||||
if (_control_status.flags.in_air
|
||||
&& !_mag_inhibit_yaw_reset_req) {
|
||||
if (!_control_status.flags.wind) {
|
||||
// reset the wind states and covariances when starting drag accel fusion
|
||||
_control_status.flags.wind = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user