Class ShooterRealIO

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.Shooter.Shooter
frc.robot.subsystems.Shooter.ShooterRealIO
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Subsystem

public class ShooterRealIO extends Shooter
  • Field Details

    • top_motor

      public com.ctre.phoenix6.hardware.TalonFX top_motor
    • bottom_motor

      public com.ctre.phoenix6.hardware.TalonFX bottom_motor
    • pitch_motor

      public com.revrobotics.CANSparkMax pitch_motor
  • Constructor Details

    • ShooterRealIO

      public ShooterRealIO()
  • Method Details

    • setTopSpeed

      public void setTopSpeed(double rpm)
    • setBottomSpeed

      public void setBottomSpeed(double rpm)
    • setPitchMotor

      public void setPitchMotor(double volts)
    • getPitch

      public double getPitch()
    • periodic

      public void periodic()
      Specified by:
      periodic in interface edu.wpi.first.wpilibj2.command.Subsystem
      Overrides:
      periodic in class Shooter
    • simulationPeriodic

      public void simulationPeriodic()
      Specified by:
      simulationPeriodic in interface edu.wpi.first.wpilibj2.command.Subsystem
      Overrides:
      simulationPeriodic in class Shooter