Class Shooter

All Implemented Interfaces:
Sendable, Subsystem

public final class Shooter extends SubsystemBase
Shooter Subsystem
  • Field Details

    • inputs

      public final frc.robot.subsystems.shooter.ShooterInputsAutoLogged inputs
  • Constructor Details

    • Shooter

      public Shooter(ShooterIO io)
      Shooter Subsystem Constructor
      Parameters:
      io - Shooter IO implementation
  • Method Details

    • periodic

      public void periodic()
    • timeSinceLastShot

      public double timeSinceLastShot()
      Get time since shooter last had a ball pass through.
    • setVelocity

      public void setVelocity(double velocity)
      Set shooter velocity
    • shoot

      public Command shoot(double velocity)
      Shoot at a given velocity
    • shoot

      public Command shoot(DoubleSupplier velocity)
      Shoot at a given velocity
    • characterization

      public Command characterization()
      Run characterization procedure

      WARNING: will not respect min/max turret angles. Unplug everything from the turret so it can spin a potentially infinite number of times.