Hello cheif delphi community,
So through testing, I have found that the 3 step circle finding script that I made in vision assistant and implemented into the vision processing vi is causing major lag in the other robot systems.
When driving (or operating any other feature) the motors will sporadically continue driving according to the last command 1-3 seconds after the input from the controller has stopped. Specifically, we would pulse the joystick that drives the driving motors, every few pulses, the motors would continue to drive 1-3 seconds after the pulse finished.
I then put the cricle finding script in a disable structure and re-tryed the test: NO LAG. So based on this testing, there is something about the circle processing script I'm using, or its implementation that is causing this lag.
Does anybody have any suggestinos to fix this problem/is there something glaringly obvious I am doing wrong that is causing this problem?
Attached to this post are the vision processing vi and the finding circles script (in its own vi called by vision processing)
findCirclePink.vi
Vision Processing.vi