Class ElevatorAlgae

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.elevator_algae.ElevatorAlgae
All Implemented Interfaces:
Sendable, Subsystem

public class ElevatorAlgae extends SubsystemBase
Elevator Algae class
  • Field Details

    • hasAlgae

      public Trigger hasAlgae
      Get if algae is held
  • Constructor Details

  • Method Details

    • periodic

      public void periodic()
    • runAlgaeMotor

      public Command runAlgaeMotor(double voltage, DoubleSupplier speedSupplier)
      Run algae intake with given speed
    • runAlgaeMotor

      public Command runAlgaeMotor(double voltage)
      Run algae intake with given speed
    • runAlgaeMotor

      public Command runAlgaeMotor(DoubleSupplier voltage)
      Run algae intake with given speed
    • algaeIntakeCommand

      public Command algaeIntakeCommand()
      Keeps algae intake motor running even after it has intaked an algae, but it lowers the speed
    • algaeIntakeCommand

      public Command algaeIntakeCommand(BooleanSupplier supplier)
      Keeps algae intake motor running even after it has intaked an algae, but it lowers the speed
    • algaeHoldCommand

      public Command algaeHoldCommand()
      Hold Algae in mechanism
      Returns:
      Command
    • algaeOuttakeCommand

      public Command algaeOuttakeCommand()
      Outtake Algae
      Returns:
      Command to outtake algae
    • setSpeedMultiplier

      public Command setSpeedMultiplier(double value)