-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swapping CSI cameras results in the old config being used. #1035
Comments
The way the camera matching code is currently setup, it checks if cameras and configs can be matched by path-id (camera id), then normal path (aka port), and finally by name. So if you plug in a different camera with the same name, it will assume it's the same camera and the ID and port have changed (great for swapping out a camera with the same model). Maybe it's time to revisit that logic? Can't think of a good way to do that without breaking windows compatibility. |
I am fairly sure this issue is limited to CSI cameras on the pi 5 (maybe also other pi versions) the device name is RPI-CFE for every camera that is plugged into the CSI port. The device nickname is set to the device model for the case of CSI cameras however the nickname can be changed so we can't check camera model vs nickname. I think we may need to add a camera model string to the camera configuration and check against that. |
Ah I see. Should be relatively simple to fix then |
#1068 fixes issue |
Describe the bug
Swapping CSI camera module on Raspberry Pi does not perform checks to ensure that the camera is the same model and uses wrong config for the CSI camera. PhotonVision should generate a new config file for this new camera since it is a different model than the last camera(s).
To Reproduce
Steps to reproduce the behavior:
Logs
photonvision-journalctl (15).txt
Platform:
The text was updated successfully, but these errors were encountered: