Skip to content

Commit 5852c95

Browse files
committed
fix build error
1 parent d3776aa commit 5852c95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wpimath/src/main/native/include/frc/MathUtil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ constexpr Translation3d SlewRateLimit(
258258
if (dist < 1e-9_m) {
259259
return next;
260260
}
261-
units::meters_per_second_t = units::math::min(dist / dt, maxVelocity);
261+
units::meters_per_second_t velocity = units::math::min(dist / dt, maxVelocity);
262262
return current + diff * (velocity / dist).value();
263263
}
264264

0 commit comments

Comments
 (0)