I would like to write a VBScript file that will run the servo for 5 seconds if the camera detect a certain image in the middle of the screen. The green ball tracking script in the tutorial is very helpful. I just need to figure out how to active the servo for a predetermined period of time.
if size > ballSize then
left_motor = left_base+((size-ballSize)*2)
right_motor = right_base+((size-ballSize)*2)
I would like the left and right motors to run for 5 seconds and stop once they are triggered.
Thank for your help,
Don
|
|