Package frc.robot.subsystems
Class HopperUptake
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.HopperUptake
This class covers the Hopper/Spindexer motor and the Uptake motor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the hopper is running forwards, false otherwise.booleanvoidperiodic()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods 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, startEnd, startRun
-
Constructor Details
-
HopperUptake
public HopperUptake()
-
-
Method Details
-
simulationPeriodic
public void simulationPeriodic() -
isUptakeAtTarget
public boolean isUptakeAtTarget() -
startHopperForward
public void startHopperForward() -
startUptakeForward
public void startUptakeForward() -
startHopperUnjam
public void startHopperUnjam() -
startUptakeUnjam
public void startUptakeUnjam() -
stopHopper
public void stopHopper() -
stopUptake
public void stopUptake() -
startAllMotors
public void startAllMotors() -
startMotorsUnjam
public void startMotorsUnjam() -
stopBothMotors
public void stopBothMotors() -
startUptakeForwardCommand
-
startBothCommand
-
startUnJamCommand
-
startUptakeUnjamCommand
-
stopBothMotorsCommand
-
getIsHopperRunningForwards
public boolean getIsHopperRunningForwards()Returns true if the hopper is running forwards, false otherwise. This mostly exists for sim. -
periodic
public void periodic()
-