Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/integration' into costmap
Browse files Browse the repository at this point in the history
  • Loading branch information
umroverPerception committed Apr 25, 2024
2 parents 054b377 + 5a80767 commit a29f629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esw/drive_bridge/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void moveDrive(geometry_msgs::Twist::ConstPtr const& msg) {
RadiansPerSecond left_outer = (forward - delta_outer) * WHEEL_LINEAR_TO_ANGULAR;
RadiansPerSecond right_outer = (forward + delta_outer) * WHEEL_LINEAR_TO_ANGULAR;

constexpr auto MAX_SPEED = RevolutionsPerSecond{15};
constexpr auto MAX_SPEED = RadiansPerSecond{15 * 2 * M_PI};
RadiansPerSecond maximal = std::max(abs(left_outer), abs(right_outer));
if (maximal > MAX_SPEED) {
Dimensionless changeRatio = MAX_SPEED / maximal;
Expand Down

0 comments on commit a29f629

Please sign in to comment.