Photonvision help needed

Hello. My code is at github I have it bound to a button in RobotContainer.cpp and the function is called CamBackwards (inside of Drive.cpp) When I look at shuffleboard in the actual network table (the cam name is OV5647) it shows the data. when i call it through the photonlib:: stuff i get nothing. I don’t know what I am doing wrong, I have tried multiple ways of calling them but I think the issue is either me actually not getting data, or me calling the cam image once and it not looping for new data.

1 Like

yes, you call getLatestResult at the top of CamBackwards which doesn’t seem to then get called by a periodic function which means your result will not update until the next time you call cam backwards. it should prob go in drive periodic

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.