mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 14:03:37 +08:00
mc_att_control: use StickYaw class for Stabilized
to make yawing including reset and drift handling consistent with Altitude and Position mode.
This commit is contained in:
@@ -113,7 +113,7 @@ float StickYaw::updateYawLock(const float yaw, const float yawspeed_setpoint, co
|
||||
return NAN;
|
||||
|
||||
} else {
|
||||
// break down and hold the current heading when no more rotation commanded
|
||||
// slow down and hold the current heading when no more rotation commanded
|
||||
if (!PX4_ISFINITE(yaw_setpoint)) {
|
||||
return yaw;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user