Package frc.robot.subsystems.intake
Class IntakeGrabber
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.intake.IntakeGrabber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCommand which initiates outtake, to be triggered with held button.Command which toggles intake onCommand which toggles intake on at a slow speedvoidMethod which stops the intake with a TorqueCurrentFOC method.Command which toggles intake offMethods 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, periodic, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
IntakeGrabber
public IntakeGrabber()Constructor for motor for actual intaking part of intake. Uses TorqueCurrentFOC.
-
-
Method Details
-
startIntakeCommand
Command which toggles intake on- Returns:
- runOnce(() -> startIntake());
-
startIntakeSlowCommand
Command which toggles intake on at a slow speed- Returns:
- runOnce(() -> startIntakeSlow());
-
stopIntakeCommand
Command which toggles intake off- Returns:
- runOnce(() -> stopIntake());
-
outtakeCommand
Command which initiates outtake, to be triggered with held button. Stops intake when released.- Returns:
- run(() -> outtake()).finallyDo(() -> stopIntake());
-
stopIntake
public void stopIntake()Method which stops the intake with a TorqueCurrentFOC method.
-