Take the 2-minute tour ×
LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
2  
Can you please post a screenshot of your current program? –  shea Apr 13 '13 at 11:10

1 Answer 1

up vote 2 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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