Skip to content

Commit

Permalink
LaunchPrepare
Browse files Browse the repository at this point in the history
  • Loading branch information
colyic committed Jan 31, 2024
1 parent 6c83117 commit 25d79e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2024.1.1"
id "edu.wpi.first.GradleRIO" version "2024.2.1"
id "com.diffplug.spotless" version "6.22.0"
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/stuypulse/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import com.stuypulse.robot.commands.auton.DoNothingAuton;
import com.stuypulse.robot.commands.drivetrain.DrivetrainDrive;
import com.stuypulse.robot.commands.launcher.LaunchPrepare;
import com.stuypulse.robot.commands.launcher.LauncherHoldSpeed;
import com.stuypulse.robot.commands.launcher.LauncherLaunchSpeaker;
import com.stuypulse.robot.commands.launcher.LauncherIntakeNote;
Expand Down Expand Up @@ -68,7 +69,7 @@ private void configureDriverBindings() {
.whileTrue(new LauncherIntakeNote());

driver.getBottomButton()
.whileTrue(new LauncherLaunchSpeaker());
.whileTrue(new LaunchPrepare(Settings.Launcher.LAUNCHER_SPEAKER_SPEED, Settings.Launcher.SPEAKER_THRESHOLD_RPM).andThen(new LauncherLaunchSpeaker()));
}

private void configureOperatorBindings() {}
Expand Down

0 comments on commit 25d79e1

Please sign in to comment.