update

protected fun update()

Called to update new data from the vision system, which involves interpreting, collecting, or otherwise processing new vision data per frame.

This method should refresh data with the latest information from the vision system to be accessed later via getData (returning your derived VisionData class). data is automatically cleared upon each iteration, so opt to using realtime data in this method. This method will be called automatically once attached to a Vision instance.