From 5220ad1549c751384be64038812e582d3310901c Mon Sep 17 00:00:00 2001 From: Owen <117956892+Owen756@users.noreply.github.com> Date: Sat, 31 Aug 2024 12:30:16 -0700 Subject: [PATCH] fixed vision --- src/main/java/frc/robot/vision/VisionSubsystem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/vision/VisionSubsystem.java b/src/main/java/frc/robot/vision/VisionSubsystem.java index 13312c3..9058017 100644 --- a/src/main/java/frc/robot/vision/VisionSubsystem.java +++ b/src/main/java/frc/robot/vision/VisionSubsystem.java @@ -44,10 +44,10 @@ protected void collectInputs() { } else { var rawData = rawVisionResult.get(); // TODO: We don't do anything with this VisionResult?? - processedVisionResult = new Optional.of(VisionResult(VisionUtil.interpolatePose(rawData.pose()), rawData.timestamp())); + processedVisionResult = Optional.of(new VisionResult(VisionUtil.interpolatePose(rawData.pose()), rawData.timestamp())); } } - public getVisionResult() { + public Optional getVisionResult() { return processedVisionResult; }