Skip to content

Commit

Permalink
Enable message UUID checking
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ward authored and LucienMorey committed Nov 10, 2024
1 parent 3c49e55 commit fd28c1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions photon-lib/py/photonlibpy/networktables/NTTopicSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def updateEntries(self) -> None:
self.rawBytesEntry = self.subTable.getRawTopic("rawBytes").publish(
PhotonPipelineResult_TYPE_STRING, options
)
self.rawBytesEntry.getTopic().setProperty(
"message_uuid", PhotonPipelineResultSerde.MESSAGE_VERSION
)
self.pipelineIndexPublisher = self.subTable.getIntegerTopic(
"pipelineIndexState"
).publish()
Expand Down
3 changes: 1 addition & 2 deletions photon-lib/py/photonlibpy/photonCamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ def getAllUnreadResults(self) -> List[PhotonPipelineResult]:
return ret

def getLatestResult(self) -> PhotonPipelineResult:
# TODO this breaks with the new sim stuff
# self._versionCheck()
self._versionCheck()

now = RobotController.getFPGATime()
packetWithTimestamp = self._rawBytesEntry.getAtomic()
Expand Down

0 comments on commit fd28c1d

Please sign in to comment.