1_RepeatUntil_Block
Conditionally sends the program flow back
to the start. Lets the flow out of the loop if the color sensor detects the color black at the beginning of the loop.
Robot repeats movements inside the
loop until the Color Sensor sees color Black
at the exact moment the loop starts.
2_IfElse2_Block
Checks whether the Ultrasonic Sensor value is less than '10'.
If it is, sends program flow to the 'if'(first) branch.
If not, sends program flow to the 'else'(second) branch.
Robot makes a decision based on
whether there is an object within 10cm.
3_StopMultipleMotors_
Stops motors B and C.
Stops the robot if there is no
object within 10 cm in front of the Ultrasoinc Sensor.
5_SetMultipleMotors_
Turns motors B and C On at 50% power.
Starts moving the robot forward.
StopMultipleMotors block will need to stop the robot later.