Class Spinner
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.intake.spinner.Spinner
Subsystem for controlling the intake spinner rollers.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all faults and warnings.extake()Returns a command to run the extake.intake()Returns a command to run the intake.booleanReturns whether or not the subsystem is healthyvoidperiodic()voidsetGoal(Spinner.Goal goal) Sets the current requested behavior for the rollers.Returns a command to start the extake.Returns a command to start the intake.stop()Returns a command to stop the spinner.Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
Spinner
Creates a new Spinner subsystem.- Parameters:
io- The IO implementation to use.
-
-
Method Details
-
setGoal
Sets the current requested behavior for the rollers.- Parameters:
goal- The target goal for the spinner.
-
periodic
public void periodic() -
intake
Returns a command to run the intake.- Returns:
- The intake command.
-
startIntake
Returns a command to start the intake.- Returns:
- The start intake command.
-
extake
Returns a command to run the extake.- Returns:
- The extake command.
-
startExtake
Returns a command to start the extake.- Returns:
- The start extake command.
-
stop
Returns a command to stop the spinner.- Returns:
- The stop command.
-
isHealthy
public boolean isHealthy()Returns whether or not the subsystem is healthy -
clearFaults
public void clearFaults()Clears all faults and warnings.- Specified by:
clearFaultsin interfaceMonitored
-