Skip to content

Commit

Permalink
flight/pid.c: fix AngleOverride(yaw) to degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
sensei-hacker committed Oct 4, 2023
1 parent 5f6ca07 commit 8c1c6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/flight/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8c1c6fa

Please sign in to comment.