public final class IntakeRollers
extends edu.wpi.first.wpilibj.command.Subsystem
| Modifier and Type | Field | Description |
|---|---|---|
private HardwareStates.IntakeRollersState |
rollerState |
The state the intake rollers are currently in.
|
| Constructor | Description |
|---|---|
IntakeRollers() |
Constructs a new
IntakeRollers subsystem. |
| Modifier and Type | Method | Description |
|---|---|---|
HardwareStates.IntakeRollersState |
getRollerState() |
|
void |
halt() |
Sets the intake rollers' speed to zero.
|
protected void |
initDefaultCommand() |
Sets the default command to coast the intake.
|
void |
setRollerSpeed(double speed) |
|
void |
setRollerState(HardwareStates.IntakeRollersState rollerState) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getSubsystem, setName, setName, setSubsystemprivate HardwareStates.IntakeRollersState rollerState
protected void initDefaultCommand()
initDefaultCommand in class edu.wpi.first.wpilibj.command.Subsystempublic void setRollerSpeed(double speed)
speed - The speed to set the intake rollers.public void halt()
public HardwareStates.IntakeRollersState getRollerState()
public void setRollerState(HardwareStates.IntakeRollersState rollerState)
rollerState - The state to set the intake rollers to.