public final class ShiftDrivetrain
extends edu.wpi.first.wpilibj.command.Command
| Modifier and Type | Field | Description |
|---|---|---|
private HardwareStates.DrivetrainGear |
gear |
The gear the drivetrain is put in to.
|
| Constructor | Description |
|---|---|
ShiftDrivetrain(HardwareStates.DrivetrainGear gear) |
Constructs a new
ShiftDrivetrain command. |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
execute() |
Calls shifting method in drivetrain subsystem class.
|
protected boolean |
isFinished() |
Returns true after the drivetrain is shifted.
|
cancel, clearRequirements, doesRequire, end, 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, waitprivate HardwareStates.DrivetrainGear gear
public ShiftDrivetrain(HardwareStates.DrivetrainGear gear)
ShiftDrivetrain command.gear - The gear to shift the drivetrain to.protected void execute()
execute in class edu.wpi.first.wpilibj.command.Commandprotected boolean isFinished()
isFinished in class edu.wpi.first.wpilibj.command.Command