Package frc.robot.subsystems.Shooter
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
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.ctre.phoenix6.hardware.TalonFXcom.revrobotics.CANSparkMaxcom.ctre.phoenix6.hardware.TalonFX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetPitch()voidperiodic()voidsetBottomSpeed(double rpm) voidsetPitchMotor(double volts) voidsetTopSpeed(double rpm) voidMethods inherited from class frc.robot.subsystems.Shooter.Shooter
getPitchSetpoint, setPitchSetpoint, setSpeedMethods 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, startEnd
-
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() -
simulationPeriodic
public void simulationPeriodic()- Specified by:
simulationPeriodicin interfaceedu.wpi.first.wpilibj2.command.Subsystem- Overrides:
simulationPeriodicin classShooter
-