Vision example controlled motors
Like all other teams we are trying to use our axis camera to track the retro reflective targets. there are many good examples and tutorials showing how to setup vision but they are all lacking one basic part. How do you control a motor with it? I have not seen a solid answer from any tutorial or forum. I seen on one of the posts that there is a value of 1 to -1 but I am unable to locate that in the example code.
For experimentation our team is using the example that came with lab view that lets you adjust the HSL to find your retro reflective target. so far we have the HSL tuned to find our target . The values are in the 90's but the numbers are blue(not sure why that is). The frame is following our target perfectly but is always displaying in accurate distances like 50 feet when we are about 6 feet away(again not sure why).
If someone could provide a picture or upload code that will move a motor to try and center the vision target in the center of the camera , I would greatly appreciate it
|