Package org.penguinempire.subsystems
Class IntakeSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
org.penguinempire.subsystems.IntakeSubsystem
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
public class IntakeSubsystem
extends edu.wpi.first.wpilibj2.command.SubsystemBase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasReachedRotationTarget(double tolerance) voidmanualRotate(boolean down) voidperiodic()voidvoidsetRotationPosition(double position) voidspinRollers(boolean intake) voidvoidMethods 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, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
IntakeSubsystem
public IntakeSubsystem()
-
-
Method Details
-
spinRollers
public void spinRollers(boolean intake) -
stopAllRollers
public void stopAllRollers() -
runL1Intake
public void runL1Intake() -
setRotationPosition
public void setRotationPosition(double position) -
manualRotate
public void manualRotate(boolean down) -
stopManualRotate
public void stopManualRotate() -
hasReachedRotationTarget
public boolean hasReachedRotationTarget(double tolerance) -
periodic
public void periodic()
-