Skip to content

Commit

Permalink
Fix note detection corner cameras
Browse files Browse the repository at this point in the history
The name of the NT values changed.
Added frontleft (the center cam) to the passive list to show the x/y positions reported by that camera.
  • Loading branch information
stephenjust committed Apr 3, 2024
1 parent 9668965 commit dfe5f82
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,11 @@ public VisionSubsystem(PropertyFactory pf, XCameraElectricalContract electricalC

var trackingNt = NetworkTableInstance.getDefault().getTable("SmartDashboard");
var detectionTopicNames = new String[]{
//"DetectionCameraphotonvisionfrontleft/Target Coordinate pairs",
//"DetectionCameraphotonvisionfrontright/Target Coordinate pairs",
"DetectionCameraphotonvisionrearleft/Target Coordinate pairs",
"DetectionCameraphotonvisionrearright/Target Coordinate pairs"
"DetectionCameraphotonvisionrearleft/NoteLocalizationResults",
"DetectionCameraphotonvisionrearright/NoteLocalizationResults"
};
var passiveDetectionTopicNames = new String[]{
"DetectionCameraxbot-orin-nano-1/Target Coordinate pairs"
"DetectionCameraphotonvisionfrontleft/NoteLocalizationResults"
};
noteTrackers = Arrays.stream(detectionTopicNames)
.map(NoteTracker::new)
Expand Down

0 comments on commit dfe5f82

Please sign in to comment.