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
Modifier and TypeFieldDescriptioncom.ctre.phoenix6.hardware.TalonFX
com.revrobotics.CANSparkMax
com.ctre.phoenix6.hardware.TalonFX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getPitch()
void
periodic()
void
setBottomSpeed
(double rpm) void
setPitchMotor
(double volts) void
setTopSpeed
(double rpm) void
Methods inherited from class frc.robot.subsystems.Shooter.Shooter
getPitchSetpoint, setPitchSetpoint, setSpeed
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
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:
simulationPeriodic
in interfaceedu.wpi.first.wpilibj2.command.Subsystem
- Overrides:
simulationPeriodic
in classShooter
-