Package frc.robot.subsystems
Class ShootingSubsystem
- java.lang.Object
-
- edu.wpi.first.wpilibj2.command.SubsystemBase
-
- frc.robot.subsystems.ShootingSubsystem
-
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
public class ShootingSubsystem extends edu.wpi.first.wpilibj2.command.SubsystemBaseSubsystem for the motors that shoot the ball
-
-
Constructor Summary
Constructors Constructor Description ShootingSubsystem(com.revrobotics.CANSparkMax intakeMotor, com.revrobotics.CANSparkMax topLeftShootMotor, com.revrobotics.CANSparkMax topRightShootMotor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfastShoot(double input)Shoots the ball fast to make it into the top hubvoidreverseShoot(double input)Shoots the ball slowly to make it into the low hubvoidslowShoot(double input)Shoots the ball slowly to make it into the low hubvoidspinIntake(double input)Activates the intake systemvoidstopAllMotors()voidstopShootingMotors()-
Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
-
-
-
-
Method Detail
-
fastShoot
public void fastShoot(double input)
Shoots the ball fast to make it into the top hub- Parameters:
input- Controller input
-
slowShoot
public void slowShoot(double input)
Shoots the ball slowly to make it into the low hub- Parameters:
input- Controller input
-
reverseShoot
public void reverseShoot(double input)
Shoots the ball slowly to make it into the low hub- Parameters:
input- Controller input
-
spinIntake
public void spinIntake(double input)
Activates the intake system- Parameters:
input- Controller input
-
stopShootingMotors
public void stopShootingMotors()
-
stopAllMotors
public void stopAllMotors()
-
-