Skip to content

Commit

Permalink
Merge branch 'GRC-Practice-Day-Tuning' of https://github.com/FRC-7525…
Browse files Browse the repository at this point in the history
…/2024-Rewrite into GRC-Practice-Day-Tuning
  • Loading branch information
GreenTomato5 committed Oct 3, 2024
2 parents cf9223e + 68b57b0 commit 4c1df9f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/frc/robot/subsystems/drive/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,17 @@ public void periodic() {
}
}



// TODO: TEST
public static void antiJitter(SwerveModuleState moduleState, SwerveModuleState lastModuleState, double maxSpeed)
{
if (Math.abs(moduleState.speedMetersPerSecond) <= (maxSpeed * 0.01))
{
// TODO: TEST
public static void antiJitter(
SwerveModuleState moduleState,
SwerveModuleState lastModuleState,
double maxSpeed
) {
if (Math.abs(moduleState.speedMetersPerSecond) <= (maxSpeed * 0.01)) {
moduleState.angle = lastModuleState.angle;
}
}

/**
* Runs the module with the specified setpoint state. Returns the optimized
* state.
Expand Down

0 comments on commit 4c1df9f

Please sign in to comment.