Class DriveCommands.AltDriveDistance

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.DriveCommands.AltDriveDistance
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
Enclosing class:
DriveCommands

public static class DriveCommands.AltDriveDistance extends edu.wpi.first.wpilibj2.command.Command
Alternate implementation of the above method using a class instead of a command. Slightly more verbose, but easier to read. Our team usually uses code that looks like the above command. Usage is basically the same, however add new in front of the function call. Example: new DriveCommands.AltDriveDistance(5) NOTE: Class Commands do not extend FunctionalCommand, however Function Commands do return FunctionalCommand.