Class ParameterizedIntakeSubsystem

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
com.team2813.lib2813.subsystems.ParameterizedIntakeSubsystem
All Implemented Interfaces:
Sendable, Subsystem, AutoCloseable

public abstract class ParameterizedIntakeSubsystem extends SubsystemBase implements AutoCloseable
A subsystem for an intake.
Since:
2.0.0
  • Constructor Details

  • Method Details

    • intakeItemCommand

      public final Command intakeItemCommand()
    • outtakeItemCommand

      public final Command outtakeItemCommand()
    • stopMotorCommand

      public final Command stopMotorCommand()
    • intakeGamePiece

      protected final void intakeGamePiece()
      Makes intake wheels spin in the intake direction.
    • outtakeGamePiece

      protected final void outtakeGamePiece()
      Makes intake wheels spin in the outtake direction.
    • setMotorDemand

      protected final void setMotorDemand(double demand)
      Runs the motor with the provided demand value.
      Parameters:
      demand - Demand of the motor. Meaning depends on the ControlMode.
    • setMotorDemandCommand

      protected final Command setMotorDemandCommand(double demand)
      Returns a command that runs the motor with the provided demand value.
      Parameters:
      demand - Demand of the motor. Meaning depends on the ControlMode.
    • stopMotor

      public final void stopMotor()
      Stops the motor.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable