Skip to content

Commit

Permalink
Shuffleboard auto selection
Browse files Browse the repository at this point in the history
  • Loading branch information
AravCGitHub committed Jan 15, 2024
1 parent f59d359 commit 641e590
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 120 deletions.
6 changes: 0 additions & 6 deletions src/main/java/frc/team3128/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@

public class Constants {

public static class ShuffleboardConstants {
public static final int WINDOW_WIDTH = 100;
public static final int WINDOW_HEIGHT = 100;
public static final int SHUFFLEBOARD_TABS = 8;
}

public static class TrajectoryConstants {
public static final Rotation2d HEADING = Rotation2d.fromDegrees(180);

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/frc/team3128/autonomous/AutoPrograms.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

import static frc.team3128.commands.CmdManager.*;

import java.util.function.DoubleSupplier;

/**
* Class to store information about autonomous routines.
* @author Daniel Wang, Mason Lam
Expand Down Expand Up @@ -43,7 +41,8 @@ private void initAutoSelector() {
}

public Command getAutonomousCommand() {
String selectedAutoName = NarwhalDashboard.getSelectedAutoName();
String selectedAutoName = NarwhalDashboard.getSelectedAutoName(); // Priority to NarwhalDashboard
if (selectedAutoName == null) { selectedAutoName = NAR_Shuffleboard.getSelectedAutoName(); }
final Command autoCommand;

if (selectedAutoName == null) {
Expand Down
Loading

0 comments on commit 641e590

Please sign in to comment.