My team is currently using Vexcode IQ Blocks and are having problems trying to get the robot to stop at a black line. We are able to stop at a white line using the code we made. We tried to reverse the sign from greater than to less than and the program does not do anything. Along with that we tried many different loops and other ways of reordering the stop and forward for the motors
If there’s any help we can get it would greatly be appreciated. Thank you.
What you can do is create a variable that when you detect the line, you set it to a different value. Then, use a while loop that runs while the variable is equal to what you originally set it to be. That way, you end the loop.