You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"PhotonVision coprocessor at path {self._path} has not reported a message interface UUID - is your coprocessor's camera started?",
306
306
True,
307
307
)
308
-
309
-
assertisinstance(remoteUUID, str)
310
-
# ntcore hands us a JSON string with leading/trailing quotes - remove those
311
-
remoteUUID=remoteUUID.replace('"', "")
312
-
313
-
iflocalUUID!=remoteUUID:
314
-
# Verified version mismatch
315
-
316
-
bfw="""
317
-
\n\n\n
318
-
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
319
-
>>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
320
-
>>>
321
-
>>> You are running an incompatible version
322
-
>>> of PhotonVision on your coprocessor!
323
-
>>>
324
-
>>> This is neither tested nor supported.
325
-
>>> You MUST update PhotonVision,
326
-
>>> PhotonLib, or both.
327
-
>>>
328
-
>>> Your code will now crash.
329
-
>>> We hope your day gets better.
330
-
>>>
331
-
>>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
332
-
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
333
-
\n\n
334
-
"""
335
-
336
-
wpilib.reportWarning(bfw)
337
-
338
-
errText=f"Photonlibpy version {PHOTONLIB_VERSION} (With message UUID {localUUID}) does not match coprocessor version {versionString} (with message UUID {remoteUUID}). Please install photonlibpy version {versionString}, or update your coprocessor to {PHOTONLIB_VERSION}."
339
-
wpilib.reportError(errText, True)
340
-
raiseException(errText)
308
+
else:
309
+
# ntcore hands us a JSON string with leading/trailing quotes - remove those
310
+
remoteUUID=str(remoteUUID).replace('"', "")
311
+
312
+
iflocalUUID!=remoteUUID:
313
+
# Verified version mismatch
314
+
315
+
bfw="""
316
+
\n\n\n
317
+
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
318
+
>>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
319
+
>>>
320
+
>>> You are running an incompatible version
321
+
>>> of PhotonVision on your coprocessor!
322
+
>>>
323
+
>>> This is neither tested nor supported.
324
+
>>> You MUST update PhotonVision,
325
+
>>> PhotonLib, or both.
326
+
>>>
327
+
>>> Your code will now crash.
328
+
>>> We hope your day gets better.
329
+
>>>
330
+
>>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
331
+
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
332
+
\n\n
333
+
"""
334
+
335
+
wpilib.reportWarning(bfw)
336
+
337
+
errText=f"Photonlibpy version {PHOTONLIB_VERSION} (With message UUID {localUUID}) does not match coprocessor version {versionString} (with message UUID {remoteUUID}). Please install photonlibpy version {versionString}, or update your coprocessor to {PHOTONLIB_VERSION}."
0 commit comments