Class Intake
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
com.stuypulse.robot.subsystems.intake.Intake
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
- Direct Known Subclasses:
IntakeImpl,IntakeSim
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the different possible states of the intake. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Intakeabstract edu.wpi.first.wpilibj2.command.sysid.SysIdRoutineabstract edu.wpi.first.units.measure.Angleabstract edu.wpi.first.units.measure.AngularVelocitygetState()booleanabstract booleanvoidperiodic()abstract voidseedPivotAngle(edu.wpi.first.units.measure.Angle angle) abstract voidsetPivotVoltageOverride(edu.wpi.first.units.measure.Voltage voltage) voidsetState(Intake.IntakeState state) protected voidprotected abstract voidprotected abstract voidMethods 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
-
Field Details
-
instance
-
state
-
-
Constructor Details
-
Intake
protected Intake()
-
-
Method Details
-
getInstance
-
limitSwitchHit
-
setState
-
getState
-
getRelativePosition
-
seedPivotAngle
-
atTargetAngle
-
isPivotAboveThreshold
-
getRollerVelocity
-
stopRollerMotors
-
stopPivotMotor
-
stopAllMotors
-
getIntakeSysIdRoutine
-
setPivotVoltageOverride
-
periodic
-