Loop with Sensor Control
Check Your Understanding:
Question 1
When the Loop is set to Ultrasonic Sensor as shown below, what "condition" will cause it to pass Program Flow through (instead of sending it back)?
Votre choixChoix attenduRéponse
Question 2
If you want to make a Loop end based on a sensor reading, you should...
Votre choixChoix attenduRéponse
Question 3
When does a Sensor Loop check the sensor?
Votre choixChoix attenduRéponse
Other Sensors
Set the Loop's mode to Touch Sensor instead of Ultrasonic Sensor. Make sure there is a Touch Sensor on the robot. Run the program and try to get the robot to stop!
What happens?
Votre choixChoix attenduRéponse
The robot will check the Touch Sensor instead of the Ultrasonic Sensor at the end of the Loop to see whether it will send Flow back or leave the Loop.
If the Touch Sensor is being pressed in at the time the Loop ends, the robot will stop. If not it will start moving again.