public final class DriveDistanceTimed
extends edu.wpi.first.wpilibj.command.TimedCommand
| Modifier and Type | Field | Description |
|---|---|---|
private double |
speed |
The speed the robot will drive.
|
| Constructor | Description |
|---|---|
DriveDistanceTimed(double speed,
double timeout) |
Constructs a new
DriveDistanceTimed command. |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
end() |
Halts the drivetrain at the completion of the command.
|
protected void |
execute() |
Sets both sides of the drivetrain to drive at the specified speed.
|
cancel, clearRequirements, doesRequire, getGroup, initialize, initSendable, interrupted, isCanceled, isCompleted, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getSubsystem, setName, setName, setSubsystempublic DriveDistanceTimed(double speed,
double timeout)
DriveDistanceTimed command.speed - The speed the robot will drive.timeout - The time the robot will drive for, in seconds.protected void execute()
execute in class edu.wpi.first.wpilibj.command.Commandprotected void end()
end in class edu.wpi.first.wpilibj.command.Command