public class IntakeBoulder
extends edu.wpi.first.wpilibj.command.Command
Modifier and Type | Field and Description |
---|---|
private edu.wpi.first.wpilibj.DigitalInput |
m_sensor |
private Shooter |
m_shooter |
Constructor and Description |
---|
IntakeBoulder()
Construct this command indicating that the shooter subsystem is used by this command.
|
Modifier and Type | Method and Description |
---|---|
protected void |
end()
This is called once after isFinished returns true.
|
protected void |
execute()
Reverse the shooter motors to intake a boulder.
|
protected void |
initialize()
Called just before this Command runs the first time
|
protected void |
interrupted()
Called when another command which requires one or more of the same subsystems is scheduled to run
|
protected boolean |
isFinished()
This returns true when the Command no longer needs to run execute() and false when the command needs to keep running.
|
cancel, doesRequire, getGroup, getName, getSmartDashboardType, getTable, initTable, isCanceled, isInterruptible, isRunning, isTimedOut, requires, setInterruptible, setRunWhenDisabled, setTimeout, start, timeSinceInitialized, toString, willRunWhenDisabled
private Shooter m_shooter
private edu.wpi.first.wpilibj.DigitalInput m_sensor
public IntakeBoulder()
protected void initialize()
initialize
in class edu.wpi.first.wpilibj.command.Command
protected void execute()
execute
in class edu.wpi.first.wpilibj.command.Command
protected boolean isFinished()
isFinished
in class edu.wpi.first.wpilibj.command.Command
protected void end()
end
in class edu.wpi.first.wpilibj.command.Command
protected void interrupted()
interrupted
in class edu.wpi.first.wpilibj.command.Command