Skip to content

Commit

Permalink
fixed vision
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen756 committed Aug 31, 2024
1 parent fd680c4 commit 5220ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/vision/VisionSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<VisionResult> getVisionResult() {
return processedVisionResult;
}

Expand Down

0 comments on commit 5220ad1

Please sign in to comment.