Package frc.robot.subsystems
Class Helix
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.Helix
- All Implemented Interfaces:
edu.wpi.first.wpilibj.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
public class Helix
extends edu.wpi.first.wpilibj2.command.SubsystemBase
The helix, the storage mechanism, with a spinning brush and cell stop piston.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Helix() -
Method Summary
Modifier and Type Method Description protected voidinitDefaultCommand()voidsetHelixMotors(double power)Spins the helix brush.voidstopHelixMotors()Stops the helix brush.Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
-
Field Details
-
Constructor Details
-
Helix
public Helix()
-
-
Method Details
-
initDefaultCommand
protected void initDefaultCommand() -
setHelixMotors
public void setHelixMotors(double power)Spins the helix brush.- Parameters:
power- The power with which to spin the brush (-1 to 1).
-
stopHelixMotors
public void stopHelixMotors()Stops the helix brush.
-