Browse Source

EKF: Don't fuse multi rotor drag if yaw angle is bad

master
Paul Riseborough 7 years ago committed by Lorenz Meier
parent
commit
4889e8432c
  1. 3
      EKF/control.cpp

3
EKF/control.cpp

@ -1199,7 +1199,8 @@ void Ekf::controlBetaFusion() @@ -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…
Cancel
Save