Skip to content

Commit

Permalink
Fix slowDownForTurning bug
Browse files Browse the repository at this point in the history
  • Loading branch information
breadoven committed Dec 3, 2021
1 parent 207d72c commit e7a894b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/navigation/navigation_multicopter.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ static void updatePositionVelocityController_MC(const float maxSpeed)
*/
if (
(navGetCurrentStateFlags() & NAV_AUTO_WP &&
!isLastMissionWaypoint() &&
!isApproachingHoldPosition() &&
newVelTotal < maxSpeed &&
!navConfig()->mc.slowDownForTurning
) || newVelTotal > maxSpeed
Expand Down

0 comments on commit e7a894b

Please sign in to comment.