Class 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.SubsystemBase
    Subsystem 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
      void fastShoot​(double input)
      Shoots the ball fast to make it into the top hub
      void reverseShoot​(double input)
      Shoots the ball slowly to make it into the low hub
      void slowShoot​(double input)
      Shoots the ball slowly to make it into the low hub
      void spinIntake​(double input)
      Activates the intake system
      void stopAllMotors()  
      void stopShootingMotors()  
      • 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

        getCurrentCommand, getDefaultCommand, periodic, register, setDefaultCommand, simulationPeriodic
    • Constructor Detail

      • ShootingSubsystem

        public ShootingSubsystem​(com.revrobotics.CANSparkMax intakeMotor,
                                 com.revrobotics.CANSparkMax topLeftShootMotor,
                                 com.revrobotics.CANSparkMax topRightShootMotor)
    • 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()