Skip to content

Commit

Permalink
add setShooterSpeedCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
kytpbs committed Sep 18, 2024
1 parent 33b94ee commit fef92cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public void setShooterSpeed(double speed) {
shooterMotor.setVoltage(speed * 12.0);
}

public void setShooterSpeedCommand(double speed) {
this.runOnce(() -> setShooterSpeed(speed));
}

public void stopShooter() {
shooterMotor.stopMotor();
}
Expand Down

0 comments on commit fef92cc

Please sign in to comment.