From 8c1c6fa315d3db622465c96219c13b792398483b Mon Sep 17 00:00:00 2001 From: Ray Morris Date: Sat, 23 Sep 2023 14:47:48 -0500 Subject: [PATCH] flight/pid.c: fix AngleOverride(yaw) to degrees --- src/main/flight/pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/flight/pid.c b/src/main/flight/pid.c index 2bb4ab70358..ed234772b2c 100644 --- a/src/main/flight/pid.c +++ b/src/main/flight/pid.c @@ -1072,7 +1072,7 @@ void FAST_CODE pidController(float dT) // In case Yaw override is active, we engage the Heading Hold state if (isFlightAxisAngleOverrideActive(FD_YAW)) { headingHoldState = HEADING_HOLD_ENABLED; - headingHoldTarget = getFlightAxisAngleOverride(FD_YAW, 0); + headingHoldTarget = DECIDEGREES_TO_DEGREES(getFlightAxisAngleOverride(FD_YAW, 0)); } if (headingHoldState == HEADING_HOLD_UPDATE_HEADING) {