springbok / MLM2PRO-GSPro-Connector

GSPro Connector for the MLM2PRO Launch Monitor
GNU General Public License v3.0
52 stars 7 forks source link

ROIs lost #6

Closed wonder99 closed 1 year ago

wonder99 commented 1 year ago

I initially set ROIs, and they were working. I walked away for a while and the MLM shut off. When I reconnected it and captured my first shot, the ball speed could not be detected. I tried to reset the ROIs, but the selection window didn't pop up. Well, it did, just as I started writing this, about one minute later. Then it crashed out. I'm attaching a log here

MLM2PRO-GSPro-Connector - Copy.log

springbok commented 1 year ago

Ok I’ll try and reproduce the problem

springbok commented 1 year ago

The issue was the window to obtain the ROI's was competing against the other threads so was slow to appear & respond, I now pause the other threads while the new ROI's are specified. I also needed to reload the new ROI's in the screenshot object used by the shot process thread. To test it I edited the rois.json file and set the ball speed roi values to zero. When loading the connector it would cause the ball speed errors allowing you to press 'R' to redo the ROI's. Let me know if this fixes the issue for you.