Interface DriveCommands
public interface DriveCommands
-
Nested Class Summary
Nested Classes -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic org.wpilib.command3.CommandMeasures the velocity feedforward constants for the drive motors.static org.wpilib.command3.CommandjoystickDrive(Swerve swerve, org.wpilib.command3.button.CommandGamepad driver) Field relative drive command using two joysticks (controlling linear and angular velocities).static org.wpilib.command3.CommandresetHeading(Swerve swerve, org.wpilib.math.geometry.Rotation2d heading) static org.wpilib.command3.Commandstatic org.wpilib.command3.CommandMeasures the robot's wheel radius by spinning in a circle.static org.wpilib.command3.Command
-
Method Details
-
resetPose
-
resetHeading
static org.wpilib.command3.Command resetHeading(Swerve swerve, org.wpilib.math.geometry.Rotation2d heading) -
xMode
-
joystickDrive
static org.wpilib.command3.Command joystickDrive(Swerve swerve, org.wpilib.command3.button.CommandGamepad driver) Field relative drive command using two joysticks (controlling linear and angular velocities). -
feedforwardCharacterization
Measures the velocity feedforward constants for the drive motors.This command should only be used in voltage control mode.
-
wheelRadiusCharacterization
Measures the robot's wheel radius by spinning in a circle.
-