Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
a
  • Loading branch information
kirbt committed Apr 3, 2024
1 parent 0120baa commit 081a031
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/main/java/frc/team2412/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,11 @@ public void robotInit() {
AutoLogic.registerCommands();
}

if (Subsystems.SubsystemConstants.DRIVEBASE_ENABLED) {
if (autoEnabled) {
AutoLogic.initShuffleboard();
if (APRILTAGS_ENABLED) {
AutoAlignment.initShuffleboard();
}
if (Subsystems.SubsystemConstants.DRIVEBASE_ENABLED && autoEnabled) {
AutoLogic.initShuffleboard();

if (APRILTAGS_ENABLED) {
AutoAlignment.initShuffleboard();
}
}

Expand Down Expand Up @@ -153,8 +152,8 @@ public void autonomousInit() {
// Checks if FMS is attatched and enables joystick warning if true
DriverStation.silenceJoystickConnectionWarning(!DriverStation.isFMSAttached());
// System.out.println(AutoLogic.getSelected() != null);
if (autoEnabled) {
if (AutoLogic.getSelectedAuto() != null && SubsystemConstants.DRIVEBASE_ENABLED) {
if (autoEnabled && SubsystemConstants.DRIVEBASE_ENABLED) {
if (AutoLogic.getSelectedAuto() != null) {
AutoLogic.getSelectedAuto().schedule();
}
}
Expand Down

0 comments on commit 081a031

Please sign in to comment.