FtcRobotController icon indicating copy to clipboard operation
FtcRobotController copied to clipboard

LiveView no longer works if push new code to Control Hub while the OpMode is still running.

Open trc492 opened this issue 1 year ago • 3 comments

If I ran a vision opmode but did not stop the opmode and then push new code to the Control Hub, then the new code will not show LiveView. The Control Hub display shows the Robot Controller app with white view as if there was no vision at all. I will not be able to get LiveView to work again until I power cycle the Control Hub. I also noticed when this happened, the webcam (Microsoft LiveCam HD 3000)'s blue light was not ON as if it failed to open the USB webcam. If I stop the opmode first before pushing new code, then this won't happen as if not stopping the opmode would skip some sort of cleanup so that the camera will be in a bad state causing a failure in opening the camera the next time. BTW, if it helps, I never experienced this issue until I started playing with switchable camera. Don't know if it is related. Also, to rule out that our code caused this. I did the same experiment but with the ConceptAprilTagOptimizeExposure sample OpMode. With the opmode still running, I recompiled and pushed the code to the Control Hub again. The Control Hub terminated the OpMode then hung (i.e. the new OpMode never run). I had to power cycle the Control Hub to get it back to normal.

trc492 avatar Oct 11 '23 09:10 trc492