Editing Your Program; Repeat Loops - TTS Pro-Bot Manual

Programmable floor robot for more advanced control techniques
Hide thumbs Also See for Pro-Bot:
Table of Contents

Advertisement

Editing Your Program

One of the great strengths of the Pro-Bot is its ability to edit the programs using the
built-in LCD. Use the scroll keys above the display to move the cursor up and down the
list of commands.
To insert a command in between two commands, move the cursor onto the command
you want to insert after, then type the new command.
TIP: To insert in front of the first command of a program, move the cursor to the very
top of the display (above the first command).
To delete a command, press the
Pressing
will only delete the last key pressed on each line.
TIP: To delete the whole program or individual procedures, hold the
for 3 seconds and select the required option using the scroll keys and key to
confirm.

Repeat Loops

Clearly, typing those 8 commands in to draw a square is a very inefficient use of time
and can be confusing to students. What we actually want the Pro-Bot to do is draw one
side of the square, then turn 90º, and do that four times.
Of course, Pro-Bot can do that for you. Just tell it to repeat the two commands four
times. Use the
required, then your command list, and finally the
Bot will repeat all commands between these two keys as many times as you specify.
For instance, to draw a 25cm square, press the following keys:
Notice that Pro-Bot changes the order slightly on the display. This is to conform better
to the Logo language specification whilst minimising the number of keys that need to
be pressed. With only five key presses, we have made a much simpler program that can
easily be modified to create other regular shapes.
TIP: If the number after the
8
key.
key to start this, then a number specifying how many repeats are
key is omitted, the loop will be executed 255 times.
key down
key to finish the sequence. Pro-

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Pro-Bot and is the answer not in the manual?

Table of Contents

Save PDF