public final class RollIntake
extends edu.wpi.first.wpilibj.command.Command
| Modifier and Type | Field | Description |
|---|---|---|
private HardwareStates.IntakeRollersState |
rollerState |
The state the intake rollers are currently operating in.
|
| Constructor | Description |
|---|---|
RollIntake(HardwareStates.IntakeRollersState rollerState) |
Constructs a new
RollIntake command. |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
end() |
Intake rollers are halted upon completion of this command.
|
protected void |
execute() |
When the intake rollers are intaking a cube, they are set to the intake speed.
|
protected boolean |
isFinished() |
The intake rollers will roll continuously if they are coasting, outtaking, or stopped.
|
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, waitprivate HardwareStates.IntakeRollersState rollerState
public RollIntake(HardwareStates.IntakeRollersState rollerState)
RollIntake command.rollerState - The state to set the intake rollers to.protected void execute()
execute in class edu.wpi.first.wpilibj.command.Commandprotected boolean isFinished()
isFinished in class edu.wpi.first.wpilibj.command.Commandprotected void end()
end in class edu.wpi.first.wpilibj.command.Command