From c08e74f777fa1aa423e69cf06068d7f1cdd34549 Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Sun, 1 Dec 2024 20:04:29 +0800 Subject: [PATCH] fix bug in vision sim Signed-off-by: Jade Turner --- src/main/java/frc/robot/generated/BuildConstants.java | 10 +++++----- .../java/frc/robot/subsystems/vision/VisionIOSim.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/frc/robot/generated/BuildConstants.java b/src/main/java/frc/robot/generated/BuildConstants.java index daf9513..a9cf325 100644 --- a/src/main/java/frc/robot/generated/BuildConstants.java +++ b/src/main/java/frc/robot/generated/BuildConstants.java @@ -7,12 +7,12 @@ public final class BuildConstants { public static final String MAVEN_GROUP = ""; public static final String MAVEN_NAME = "2025-Reefscape"; public static final String VERSION = "unspecified"; - public static final int GIT_REVISION = 6; - public static final String GIT_SHA = "5542e7a11ba779bcf8c49dc1435ac6cbda61816a"; - public static final String GIT_DATE = "2024-12-01 19:47:37 AWST"; + public static final int GIT_REVISION = 8; + public static final String GIT_SHA = "5e8895c7bdb07c7acb05f7166025f3ec469f13ee"; + public static final String GIT_DATE = "2024-12-01 20:00:43 AWST"; public static final String GIT_BRANCH = "master"; - public static final String BUILD_DATE = "2024-12-01 19:54:54 AWST"; - public static final long BUILD_UNIX_TIME = 1733054094608L; + public static final String BUILD_DATE = "2024-12-01 20:04:13 AWST"; + public static final long BUILD_UNIX_TIME = 1733054653825L; public static final int DIRTY = 1; private BuildConstants(){} diff --git a/src/main/java/frc/robot/subsystems/vision/VisionIOSim.java b/src/main/java/frc/robot/subsystems/vision/VisionIOSim.java index 0b6b82c..d54effc 100644 --- a/src/main/java/frc/robot/subsystems/vision/VisionIOSim.java +++ b/src/main/java/frc/robot/subsystems/vision/VisionIOSim.java @@ -60,7 +60,7 @@ public void updateInputs(VisionIOInputs inputs) { inputs.camera = cameraName; var results = camera.getAllUnreadResults(); - if (results.isEmpty()) { + if (!results.isEmpty()) { var result = results.get(results.size() - 1); if (result.getMultiTagResult().isPresent()) { inputs.estimatedPose =