Skip to content

Commit

Permalink
Update photonlib and fixed camera stream name
Browse files Browse the repository at this point in the history
  • Loading branch information
thakurnilesh307 authored and Harry695 committed Jan 14, 2024
1 parent d22d65a commit 8e7844d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,5 @@ ctre_sim/
networktables.json
networktables.json.bck
simgui*.json
glass.json
outlineviewer.json
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/subsystems/AprilTagSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ public class AprilTagSubsystem extends PhotonVisionSubsystemBase {

/** Creates a new PhotonVisionSubsystem. */
public AprilTagSubsystem() {
super("AprilTagCamera", RobotConstants.APRILTAG_CAMERA_TO_ROBOT);
super("948Mono001", RobotConstants.APRILTAG_CAMERA_TO_ROBOT);

for (int i = 1; i <= 16; i++) {
aprilTagIdChooser.addOption(String.valueOf(i), i);
}
aprilTagIdChooser.setDefaultOption("1", 1);
}

@Override
Expand Down Expand Up @@ -142,7 +143,7 @@ public void addShuffleboardTab() {
targetLayout.addDouble("Distance", () -> getDistanceToTarget(aprilTagIdChooser.getSelected()));
targetLayout.addDouble("Angle", () -> getAngleToTarget(aprilTagIdChooser.getSelected()));

VideoSource video = new HttpCamera("photonvision_Port_1182_MJPEG_Server", "http://10.9.48.11:1182/?action=stream",
VideoSource video = new HttpCamera("photonvision_Port_1182_Output_MJPEG_Server", "http://photonvision.local:1182/?action=stream",
HttpCameraKind.kMJPGStreamer);
visionTab.add("April Tag", video)
.withWidget(BuiltInWidgets.kCameraStream)
Expand Down
10 changes: 5 additions & 5 deletions vendordeps/photonlib.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fileName": "photonlib.json",
"name": "photonlib",
"version": "v2024.1.3",
"version": "v2024.1.4",
"uuid": "515fe07e-bfc6-11fa-b3de-0242ac130004",
"frcYear": "2024",
"mavenUrls": [
Expand All @@ -14,7 +14,7 @@
{
"groupId": "org.photonvision",
"artifactId": "photonlib-cpp",
"version": "v2024.1.3",
"version": "v2024.1.4",
"libName": "photonlib",
"headerClassifier": "headers",
"sharedLibrary": true,
Expand All @@ -29,7 +29,7 @@
{
"groupId": "org.photonvision",
"artifactId": "photontargeting-cpp",
"version": "v2024.1.3",
"version": "v2024.1.4",
"libName": "photontargeting",
"headerClassifier": "headers",
"sharedLibrary": true,
Expand All @@ -46,12 +46,12 @@
{
"groupId": "org.photonvision",
"artifactId": "photonlib-java",
"version": "v2024.1.3"
"version": "v2024.1.4"
},
{
"groupId": "org.photonvision",
"artifactId": "photontargeting-java",
"version": "v2024.1.3"
"version": "v2024.1.4"
}
]
}

0 comments on commit 8e7844d

Please sign in to comment.