Chassis Speed Discretization
More math...
What is Chassis Speed discretization?
Chassis Speed discretization is used to reduce the skew in translational movement of the Swerve Drive. It is called only if SwerveDrive.chassisVelocityCorrection
is true
.
How do I use Chassis Speed Discretization?
Chassis Speed discretization simply allows you to set your own values for ChassisSpeeds.discretize
in WPILib, the default value of 0.02
dt should be good enough for most teams. To enable and customize discretization all you have to do is call SwerveDrive.setChassisDiscretization
as shown below.
Last updated