Skip to content

Commit

Permalink
fix bug in vision sim
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Turner <spacey-sooty@proton.me>
  • Loading branch information
spacey-sooty committed Dec 1, 2024
1 parent 5e8895c commit c08e74f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/generated/BuildConstants.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/vision/VisionIOSim.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit c08e74f

Please sign in to comment.