Skip to content

Commit

Permalink
enabled checker for alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
kirbt committed Apr 2, 2024
1 parent 1563ec8 commit b1e0732
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/frc/team2412/robot/Robot.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package frc.team2412.robot;

import static frc.team2412.robot.Subsystems.SubsystemConstants.APRILTAGS_ENABLED;
import static frc.team2412.robot.Subsystems.SubsystemConstants.DRIVEBASE_ENABLED;

import com.ctre.phoenix6.SignalLogger;
Expand Down Expand Up @@ -95,7 +96,9 @@ public void robotInit() {
if (Subsystems.SubsystemConstants.DRIVEBASE_ENABLED) {
if (autoEnabled) {
AutoLogic.initShuffleboard();
AutoAlignment.initShuffleboard();
if (APRILTAGS_ENABLED) {
AutoAlignment.initShuffleboard();
}
}
}

Expand Down Expand Up @@ -193,7 +196,7 @@ public void disabledInit() {

@Override
public void disabledPeriodic() {
if (DRIVEBASE_ENABLED) {
if (DRIVEBASE_ENABLED && APRILTAGS_ENABLED && autoEnabled) {
AutoAlignment.updateField();
}
}
Expand Down

0 comments on commit b1e0732

Please sign in to comment.