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
public abstract class Intake
extends edu.wpi.first.wpilibj2.command.SubsystemBase
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Intakeabstract edu.wpi.first.wpilibj2.command.sysid.SysIdRoutineabstract edu.wpi.first.math.geometry.Rotation2dabstract doublegetState()booleanvoidperiodic()abstract voidsetPivotVoltageOverride(edu.wpi.first.units.measure.Voltage voltage) abstract voidabstract voidvoidsetState(Intake.IntakeState state) protected 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
-
Constructor Details
-
Intake
protected Intake()
-
-
Method Details
-
getInstance
-
setState
-
getState
-
getRelativePosition
public abstract edu.wpi.first.math.geometry.Rotation2d getRelativePosition() -
setPivotZero
public abstract void setPivotZero() -
setPivotZeroAtBottom
public abstract void setPivotZeroAtBottom() -
atTargetAngle
public boolean atTargetAngle() -
isPivotAboveThreshold
public boolean isPivotAboveThreshold() -
getRollerRPM
public abstract double getRollerRPM() -
stopMotors
protected abstract void stopMotors() -
getIntakeSysIdRoutine
public abstract edu.wpi.first.wpilibj2.command.sysid.SysIdRoutine getIntakeSysIdRoutine() -
setPivotVoltageOverride
public abstract void setPivotVoltageOverride(edu.wpi.first.units.measure.Voltage voltage) -
periodic
public void periodic()
-