mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 21:20:36 +08:00
mc_att_control: reset yaw setpoint after ACRO
This commit is contained in:
@@ -802,6 +802,8 @@ MulticopterAttitudeControl::task_main()
|
||||
_rates_sp = _rates_sp.edivide(_params.rc_scale).emult(_params.scale_acro);
|
||||
_thrust_sp = _manual_control_sp.throttle;
|
||||
|
||||
_reset_yaw_sp = true;
|
||||
|
||||
/* publish attitude rates setpoint */
|
||||
_v_rates_sp.roll = _rates_sp(0);
|
||||
_v_rates_sp.pitch = _rates_sp(1);
|
||||
|
||||
Reference in New Issue
Block a user