mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Fix PhotonCamera typestring checks (#1480)
Previously NT would quietly drop readQueue changes.
This commit is contained in:
@@ -137,7 +137,7 @@ public class PhotonCamera implements AutoCloseable {
|
||||
cameraTable
|
||||
.getRawTopic("rawBytes")
|
||||
.subscribe(
|
||||
"rawBytes",
|
||||
PhotonPipelineResult.photonStruct.getTypeString(),
|
||||
new byte[] {},
|
||||
PubSubOption.periodic(0.01),
|
||||
PubSubOption.sendAll(true),
|
||||
@@ -185,6 +185,8 @@ public class PhotonCamera implements AutoCloseable {
|
||||
* make sure to call this frequently enough to avoid old results being discarded, too!
|
||||
*/
|
||||
public List<PhotonPipelineResult> getAllUnreadResults() {
|
||||
verifyVersion();
|
||||
|
||||
List<PhotonPipelineResult> ret = new ArrayList<>();
|
||||
|
||||
var changes = resultSubscriber.getAllChanges();
|
||||
|
||||
Reference in New Issue
Block a user