flight tasks: move weather vane yaw handler from Altitude to Position task

This commit is contained in:
Beat Küng
2018-11-13 09:30:18 +01:00
parent c9e52d4386
commit 2b7d3bd088
4 changed files with 16 additions and 14 deletions
@@ -284,12 +284,6 @@ void FlightTaskManualAltitude::_updateHeadingSetpoints()
}
}
}
// check if an external yaw handler is active and if yes, let it compute the yaw setpoints
if (_ext_yaw_handler != nullptr && _ext_yaw_handler->is_active()) {
_yaw_setpoint = NAN;
_yawspeed_setpoint += _ext_yaw_handler->get_weathervane_yawrate();
}
}
void FlightTaskManualAltitude::_updateSetpoints()