Skip to content

Commit

Permalink
Raise kEpsilon from 1e-8 to 1e-6
Browse files Browse the repository at this point in the history
This prevents an extremely rare but still possible warning from Rotation2d about x and y being 0, as Rotation2d uses 1e-6 as its epsilon for 0 checking.
  • Loading branch information
TheComputer314 committed Dec 31, 2024
1 parent 4066ffe commit ad8911e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* forces acting on a module's wheel from exceeding the force of friction.
*/
public class SwerveSetpointGenerator {
private static final double kEpsilon = 1E-8;
private static final double kEpsilon = 1E-6;

private final RobotConfig config;
private final double maxSteerVelocityRadsPerSec;
Expand Down

0 comments on commit ad8911e

Please sign in to comment.