mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 16:43:33 +08:00
use and reset the new yaw control method
This commit is contained in:
@@ -964,6 +964,8 @@ FixedwingAttitudeControl::task_main()
|
||||
if (_att_sp.fw_control_yaw == true) {
|
||||
// this method controls heading directly with rudder. Used for auto takeoff on runway
|
||||
_yaw_ctrl.set_coordinated_method(ECL_YawController::COORD_METHOD_HEADING);
|
||||
} else {
|
||||
_yaw_ctrl.set_coordinated_method(_parameters.y_coordinated_method);
|
||||
}
|
||||
|
||||
/* Run attitude controllers */
|
||||
|
||||
Reference in New Issue
Block a user