|
Re: How to program a tracking line sensor on Labview?
Basically you want to make a truth table for when the sensors are on the line. If the middle sensor is on it would be FTF, assuming you have all 3 sensors on the robot. if you make a Boolean array of the sensors, and convert it to binary (use the "Boolean array to #" from the Boolean pallet). it will take all the segments of the array and make then a 1 or a 0 in a binary number, so FTF become 010. 010 in binary is 2 in our base 10 system. Google how to convert binary if you don't know. then create a truth table for all the different numbers (0 - 7), and set the motor outputs depending on what it sees.
By the way, you may need to reverse data from the sensors (negate) depending which wire you used from the sensors, true on black or true on white.
Hope it helps. good luck from team 2865.
|