My team needs some help on programming in a while loop. We want our robot to move forward until it senses a blue or red line. We have tried using a while loop and placing our motors at a constant sleep and connected it on the outside with stop motor block. Also we have a hitechnic color senor and we want to understand how to write a "or" code where it can detect a red or blue line and then stop. Thanks so much for the help!
N.E.R.D.S. (Northeast Robotics Development Specialist)
Which color sensor are you using? Can you post your code?
Have you tried to just use the "wait for" VI? That may be simpler for you to use.