Skip to content

Commit

Permalink
add multisubscriber back
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Nov 15, 2023
1 parent 45c4501 commit 5769e93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions photon-lib/src/main/java/org/photonvision/PhotonCamera.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ public PhotonCamera(NetworkTableInstance instance, String cameraName) {
ledModeRequest = photonvision_root_table.getIntegerTopic("ledModeRequest").publish();
ledModeState = photonvision_root_table.getIntegerTopic("ledModeState").subscribe(-1);
versionEntry = photonvision_root_table.getStringTopic("version").subscribe("");

// Existing is enough to make this multisubscriber do its thing
MultiSubscriber m_topicNameSubscriber = new MultiSubscriber(
instance, new String[]{"/photonvision/"}, PubSubOption.topicsOnly(true));
}

/**
Expand Down

0 comments on commit 5769e93

Please sign in to comment.