Package org.penguinempire.subsystems
Class ShooterSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
org.penguinempire.subsystems.ShooterSubsystem
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
public class ShooterSubsystem
extends edu.wpi.first.wpilibj2.command.SubsystemBase
-
Constructor Summary
ConstructorsConstructorDescriptionShooterSubsystem(IntakeSubsystem intakeSubsystem, ElevatorSubsystem elevatorSubsystem, ClimberSubsystem climberSubsystem) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetPiece()booleanhasReachedShooterTarget(double tolerance) voidmanualRotateShooter(boolean down) voidperiodic()voidsetShooterRotationPosition(double position) voidspinAlgaeShooter(double power) voidspinShooter(boolean intake) Runs the shooter forward (intake mode)voidvoidStops the shootervoidMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
ShooterSubsystem
public ShooterSubsystem(IntakeSubsystem intakeSubsystem, ElevatorSubsystem elevatorSubsystem, ClimberSubsystem climberSubsystem)
-
-
Method Details
-
setShooterRotationPosition
public void setShooterRotationPosition(double position) -
manualRotateShooter
public void manualRotateShooter(boolean down) -
stopShooterRotation
public void stopShooterRotation() -
hasReachedShooterTarget
public boolean hasReachedShooterTarget(double tolerance) -
spinShooter
public void spinShooter(boolean intake) Runs the shooter forward (intake mode) -
stopShooter
public void stopShooter()Stops the shooter -
spinAlgaeShooter
public void spinAlgaeShooter(double power) -
stopAlgaeShooter
public void stopAlgaeShooter() -
getPiece
public boolean getPiece() -
periodic
public void periodic()
-