A Newbie question. Our team is trying to get the V5 Vision Sensor to tell us when we are, and when we are not on a Black EDR foam mats. For reference, our team was in FIRST LEGO League last year, and we had no problem using LEGO EV3’s light sensor to look for colors, or reflective light. This year we moved to VEX EDR with a V5 and programming in VSC Modkit, and are trying to repeat those same kind of sensor loops with the V5 Vision Sensor. Also, we would love to know how to enter a simple vision command that will look for primary colors like: blue, red, yellow, …
If we setup the signatures SIG_1 for the Black foam mats, SIG_2 for the Blue game disks, SIG_3 for Red game disk, and SIG_4 for White. And, our program {M} text code looks like:
Vision1.takeSnapshot(SIG_1);
while((0==Vision1.largestObject.exist)){
Vision1.takeSnapshot(SIG_1);
// our while loop program is here
}
When the Vision Sensor is looking at foam mats (SIG_1), or red disk (SIG_3), or white (SIG_4), we get a reading of “1”. The blue disk (SIG_2) gives a reading of “0”. If we change the Snapshots to SIG_2 (blue signature), then the blue disk changes to “1”, and the mats, red disk and white all change to “0”.
Also when we starting working with the Vision Sensor, we only had 2 signatures setup for the black foam mats and white hardboard. No matter how much we played with the double arrow slider to change the sensitivity level, we could not get the sensor to tell the difference between the black mats and white hardboard. It calculated that everything was black.
Any help on this would be greatly appreciated.
Thanks in advance,
David