For a sumo bot competition I made a robot that has a perfectly functioning ultrasonic senor. However, when I made a second branch on the program for a light sensor, I calibrated the light sensor and when I set it over the line so the robot would move correctly, it does not respond as expected.

My thoughts are that it has to do something with the priorities of the branches. How do I set the light sensor branch to have a higher priority over the ultrasonic sensor branch? I would like it to work so that when the light sensor doesn't detect something in the specified range of intensity that it goes to the ultrasonic sensor branch and go to the light sensor branch if an intensity inside the specified range it goes to the light sensor branch at a high frequency of resolution.

  • 2
    Can you please post a screenshot of your current program? – shea Apr 13 '13 at 11:10

Branches run simultaneously. If you want to pause a branch until a certain sensor condition is met, use a Wait block.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.