Skip to content

Commit

Permalink
comment out vision updates
Browse files Browse the repository at this point in the history
  • Loading branch information
frc1987 committed Apr 3, 2024
1 parent c4ff39c commit 0e22765
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public void configureShuffleboard() {
// addAuto("GKC-Amp-J2");
AUTO_CHOOSER.addOption("Do Nothing", new InstantCommand());
MATCH_TAB.add("Auto", AUTO_CHOOSER);
MATCH_TAB.addBoolean("Vision Updated", () -> VisionUpdate);
// MATCH_TAB.addBoolean("Vision Updated", () -> VisionUpdate);

// MATCH_TAB.addBoolean("is Alliance red", () -> CommandSwerveDrivetrain.getAlliance() ==
// Alliance.Red ? true : false);
Expand Down Expand Up @@ -694,11 +694,11 @@ public void updatePose(
if (DriverStation.isAutonomous()) {
currentConfidence = currentConfidence * 6;
}
if (VisionUpdate) {
VisionUpdate = false;
} else {
VisionUpdate = true;
}
// if (VisionUpdate) {
// VisionUpdate = false;
// } else {
// VisionUpdate = true;
// }
DRIVETRAIN.addVisionMeasurement(
botPose.pose,
botPose.timestampSeconds,
Expand Down

0 comments on commit 0e22765

Please sign in to comment.