Skip to content

Commit

Permalink
Fix reviewed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Technologyman00 committed Mar 24, 2024
1 parent 637e799 commit 235c436
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/swervelib/SwerveDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class SwerveDrive
/**
* Amount of seconds the duration of the timestep the speeds should be applied for.
*/
public double discretizationdtSeconds = 0.02;
private double discretizationdtSeconds = 0.02;
/**
* Deadband for speeds in heading correction.
*/
Expand Down Expand Up @@ -1159,6 +1159,12 @@ public void setCosineCompensator(boolean enabled)
}
}

/**
* Sets the Chassis discretization seconds as well as enableing/disabling the Chassis velocity correction
*
* @param enable
* @param dtSeconds
*/
public void setChassisDiscretization(boolean enable, double dtSeconds){
chassisVelocityCorrection = enable;
discretizationdtSeconds = dtSeconds;
Expand Down

0 comments on commit 235c436

Please sign in to comment.