Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingSR committed Apr 17, 2024
1 parent b9c849e commit 97e185b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public class ShooterSubsystem extends SubsystemBase {

private double m_simRPM = 0;

private double tuningRPM = 0;

public ShooterSubsystem() {
m_bottom.setIdleMode(IdleMode.kCoast);
m_top.setIdleMode(IdleMode.kCoast);
Expand All @@ -43,8 +45,8 @@ public void reset() {
public void setShootingSpeed(ShootSpeed speed) {
switch (speed) {
case Shooting:
m_topSpeed = ShooterConstants.kShooterSpeedTop;
m_bottomSpeed = ShooterConstants.kShooterSpeedBottom;
m_topSpeed = tuningRPM;
m_bottomSpeed = tuningRPM;
break;
case Amp:
m_topSpeed = 0.2;
Expand Down Expand Up @@ -72,6 +74,9 @@ public void periodic() {
// SmartDashboard.putNumber("bottom Speed", m_bottomSpeed);
SmartDashboard.putNumber("top Speed", m_bottom.getEncoder().getVelocity());

SmartDashboard.putNumber("tune speed", tuningRPM);
SmartDashboard.getNumber("tune speed", tuningRPM);

m_bottom.set(m_bottomSpeed);
m_top.set(m_topSpeed);
}
Expand Down

0 comments on commit 97e185b

Please sign in to comment.