FOLLOWING the target using labview
Hello all!
I am the new programmer for Team 1592 "The Bionic Tigers". I have been given the task of providing the brains for the robot this year. So far I have gotten the axis camera to search for and track both pink and green (both combinations). The trouble that I am having right now is that I cannot figure out how to get the robot to drive to the target. I have thought it out logically and come to the conclusion that I should use the servo positions combined with the gyro to correct position of the robot. My problem right now is that I don't know how to create an If/Then statement in labview. For example: If x <90 drive right and if x >90 drive left. You get what I'm saying. This is the only thing hindering my progress. If somebody could do me a favor and send me a sample vi for following the target, that would be much appreciated. After that, I can make it shoot in autonomous.
P.S. This is my first year, so go easy on me.
|