Skip to content

Commit

Permalink
[Swerve Setpoint Generator] Raise kEpsilon from 1e-8 to 1e-6 (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheComputer314 authored Dec 31, 2024
1 parent 4066ffe commit 01bb501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pathplannerlib-python/pathplannerlib/util/swerve.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SwerveSetpointGenerator:
kinematic constraints on module rotation and wheel velocity/torque, as well as preventing any
forces acting on a module's wheel from exceeding the force of friction.
"""
_k_epsilon = 1e-8
_k_epsilon = 1e-6

def __init__(self, config: RobotConfig, max_steer_velocity_rads_per_sec: float) -> None:
"""
Expand Down
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 01bb501

Please sign in to comment.