Class ElevatorAlgae
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.elevator_algae.ElevatorAlgae
Elevator Algae class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElevatorAlgae
(ElevatorAlgaeIO io, Viz2025 viz) Constructor for Elevator Algae class -
Method Summary
Modifier and TypeMethodDescriptionHold Algae in mechanismKeeps algae intake motor running even after it has intaked an algae, but it lowers the speedalgaeIntakeCommand
(BooleanSupplier supplier) Keeps algae intake motor running even after it has intaked an algae, but it lowers the speedOuttake Algaevoid
periodic()
runAlgaeMotor
(double voltage) Run algae intake with given speedrunAlgaeMotor
(double voltage, DoubleSupplier speedSupplier) Run algae intake with given speedrunAlgaeMotor
(DoubleSupplier voltage) Run algae intake with given speedsetSpeedMultiplier
(double value) 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
-
Field Details
-
hasAlgae
Get if algae is held
-
-
Constructor Details
-
ElevatorAlgae
Constructor for Elevator Algae class
-
-
Method Details
-
periodic
public void periodic() -
runAlgaeMotor
Run algae intake with given speed -
runAlgaeMotor
Run algae intake with given speed -
runAlgaeMotor
Run algae intake with given speed -
algaeIntakeCommand
Keeps algae intake motor running even after it has intaked an algae, but it lowers the speed -
algaeIntakeCommand
Keeps algae intake motor running even after it has intaked an algae, but it lowers the speed -
algaeHoldCommand
Hold Algae in mechanism- Returns:
- Command
-
algaeOuttakeCommand
Outtake Algae- Returns:
- Command to outtake algae
-
setSpeedMultiplier
-