Package frc.robot.subsystems.EndEffector
Class EndEffector
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.EndEffector.EndEffector
Subsystem for the robot's End Effector functionality
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
periodic()
RunMotorContinuosCommand
(Supplier<Double> speed) run the motor at the specified speed, will not finish.StartMotorCommand
(Supplier<Double> speed) Starts the intake motor.Stops the intake motor.Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
EndEffector
Creates a new EndEffector.
-
-
Method Details
-
periodic
public void periodic() -
isHoldingAlgae
public boolean isHoldingAlgae() -
isHoldingCoral
public boolean isHoldingCoral() -
StartMotorCommand
Starts the intake motor.- Parameters:
speed
- Speed to set [-1,1].- Returns:
- Command to run.
-
RunMotorContinuosCommand
run the motor at the specified speed, will not finish.- Parameters:
speed
-- Returns:
-
StopIntakeMotor
Stops the intake motor.- Returns:
- Command to run.
-
CoralIntakeTeleop
-
CoralIntakeStart
-
CoralIntakeFinish
-
CoralOuttake
-
CoralOuttakeTeleop
-
CoralBackup
-
AlgaeIntake
-
AlgaeOuttake
-
manualCoralIntake
-
manualCoralOuttake
-
manualCoralBackup
-