Skip to content

Commit

Permalink
Added options: not gonna use during competition
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingSR committed Mar 10, 2024
1 parent e8b55b6 commit cce9059
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public RobotContainer() {
new NoteIntakeCommand(m_intakeSubsystem),
new IntakeArmPositionCommand(m_intakeSubsystem, ArmPosition.Retracted)));

NamedCommands.registerCommand("Pre-Speed - 30%",
new ShooterSetSpeedCommand(m_shooterSubsystem, ShootSpeed.Halfway, 0.01));

NamedCommands.registerCommand("Intake in",
new IntakeArmPositionCommand(m_intakeSubsystem, ArmPosition.Retracted));

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public void setShootingSpeed(ShootSpeed speed) {
m_topSpeed = ShooterConstants.kShooterSpeedTop;
m_bottomSpeed = ShooterConstants.kShooterSpeedBottom;
break;
case Halfway:
m_topSpeed = ShooterConstants.kShooterSpeedTop/3;
m_bottomSpeed = ShooterConstants.kShooterSpeedBottom/3;
break;
case Off:
m_topSpeed = 0.0;
m_bottomSpeed = 0.0;
Expand All @@ -65,6 +69,7 @@ public void periodic() {

public static enum ShootSpeed {
Shooting,
Halfway,
Off
}
}

0 comments on commit cce9059

Please sign in to comment.