Users Manual

CLASS 2
94
Debugging the tongs robot
If you understood how the code works before, let’s see a
code with some errors. The flowchart is made with correct
orders in sequence.
But, the code below has some errors. Read it through and
let’s find out what they are.
The flowchart tells the robot to
move forward. But, the code is not
telling it to move forward.
This block opens the tongs
Tongs robot and Debugging
Is this block opening or closing the tongs? Do you see the
problem?
The code above has two problems. Compare it with the
flowchart and fix the errors of the program.
Wait 2 sec
Open tongs
Move forward
Stop
Close tongs
Wait 1 sec
Wait 1 sec
Program finish