Picobotz – Elenco Picobotz User Manual
Page 8

PICOBOTZ
PICOBOTZ
© iBOTZ (Ireland) Limited.2004.
No part of this manual may be reproduced with express permission of iBOTZ (Ireland) Limited
.
8
End
The
the 'If Short Noise then' or 'If Long Noise then' instruction, it forgets about the sound. So
If Short Noise then
really means "if there has been a short noise since the last time I executed an If ... noise
instruction then".
If the robot hears a long noise then it forgets about any short noise that it has heard. A long noise
often has a ragged beginning which may look like several short noises.
The program can also test whether there hasn't been a noise:
If NOT Short Noise then
End
If NOT Long Noise then
End
Select the File|New menu command to clear any program that's in the PC's editor.
Click the If button to select the If Programming page:
Click the 'If Short Noise' button and the 'End' button so the program looks like this:
Now click the Motor button to select the Motors Programming page.
Move the program cursor to the 'If Short Noise' line and click the Forward button.
Move the program cursor to the 'End' line and click the Spin Right button.
The program should now look like this: