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:
Matthias Grob
2025-04-22 15:35:26 +02:00
parent 174147208e
commit d514cb4903
4 changed files with 51 additions and 44 deletions
+1 -1
View File
@@ -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;