I have added a vision sensor to my robot and configured two color signature for red and blue balls. The next goal is to use the color signature to automatically sort balls to go to the tower or out the back of the robot. I assume you would the code would look something like this:
if(Vision.Sig1){
put balls into tower
}else if(Vision.Sig2){
send balls out the back
}
I don’t know what the arguments in the if/else statements would be so if someone could provide an example, your help would be much appreciated.