Learning CS and Math with Robotics
Barobo

CSP Unit 3 Lesson 9.4

Piano MinView
Linkbot Image Mindstorm Image
x-12-60612y1260-6-12
Grid Lines:
Tics Lines:
Width px
Hash Lines:
Width px
Labels:
Font px
Trace Lines:
Robot 1:
Width px
Robot 2:
Width px
Robot 3:
Width px
Robot 4:
Width px
Simple View: Grid Size: S M L
CSP Unit 3 Lesson 9.4

A definition for a drawSquare function has been provided. (It draws a square of side length 8.) Add a repeat loop (from the Loops tab) to the pre-placed code and insert a call to the drawSquare function inside it. After the call to drawSquare, also insert a turnLeft command for a turn of 10 degrees. After you get it running, experiment with different values for the number of iterations, the speed, the distance, and the angle. Try to create a diagram of repeating squares that goes 360 degrees around.

Load Blocks
Hardware
LArduino
Workspace Show Ch Save File Console

		
Rubbish bin
Time