Skip to content

Commit

Permalink
Rover: correct clamping of RTL_SPEED parameter
Browse files Browse the repository at this point in the history
MAX wasn't treating these things as floats
  • Loading branch information
peterbarker committed May 7, 2024
1 parent a031780 commit 35449e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rover/mode_rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bool ModeRTL::_enter()
}

// initialise waypoint navigation library
g2.wp_nav.init(MAX(0, g2.rtl_speed));
g2.wp_nav.init(MAX(0.0f, g2.rtl_speed));

// set target to the closest rally point or home
#if HAL_RALLY_ENABLED
Expand Down

0 comments on commit 35449e7

Please sign in to comment.