Package frc.spectrumLib.swerve
Class SysID
java.lang.Object
frc.spectrumLib.swerve.SysID
SysId routines for a CTRE swerve drivetrain: translation, rotation, and steer gains. Construct
one per robot and bind
sysIdQuasistatic(edu.wpi.first.wpilibj2.command.sysid.SysIdRoutine.Direction) and sysIdDynamic(edu.wpi.first.wpilibj2.command.sysid.SysIdRoutine.Direction) in test mode.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsysIdDynamic(SysIdRoutine.Direction direction) Step voltage command for the active routine.sysIdQuasistatic(SysIdRoutine.Direction direction) Slow ramp command for the active routine.
-
Constructor Details
-
SysID
Builds all three routines. Edit the last line to pick which one runs. Steer runs at 7 V, translation and rotation at 4 V.- Parameters:
swerve- theSwervesubsystem commanded during characterization
-
-
Method Details
-
sysIdQuasistatic
Slow ramp command for the active routine. -
sysIdDynamic
Step voltage command for the active routine. -
getSysIdRoutineTranslation
-
getSysIdRoutineRotation
-
getSysIdRoutineSteer
-