View Single Post
  #2   Spotlight this post!  
Unread 24-01-2017, 22:06
RileyC3826 RileyC3826 is offline
Registered User
FRC #3826 (Sequim Robotics Federation)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2013
Location: Sequim, Washington
Posts: 9
RileyC3826 is an unknown quantity at this point
Re: Vision Stops Returning Numbers

Quote:
Originally Posted by RileyC3826 View Post
Thanks, I think I understand what you mean, but I cannot deploy new code and test it right now due to windows updates on our driverstation laptop, I will reply back if/when I get a chance to test some changes.
The issue has been resolved! By switching '!pipeline.filterContoursOutput().isEmpty()' to 'pipeline.filterContoursOutput().size >= 2', the program does stop when only one target is visible, but the numbers resume updating when both targets are back in view. The updated code has been committed directly to the code on GitHub which I linked earlier. This code could be further modified to allow values to update when one target is visible.
Reply With Quote