Learning CS and Math with Robotics
Barobo

CSP Unit 3 Lesson 5.9b

Piano MinView
Linkbot Image Mindstorm Image
x061218243036y363024181260
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 5.9b

With one side traced using the drawSide function (as shown in red on the figure), it looks like we might need to create another function to draw the next side. But note that if, after drawing the side, we move the robot forward 4 units and turn it to the right, it will be perfectly positioned to use the drawSide function for the upper left side of the diamond figure. Try it out! Add the code blocks to the pre-placed code at the beginning that (1) call the drawSide function, (2) move the robot forward 4 units and turn it right, and (3) call the drawSide function again.

Load Blocks
Hardware
LArduino
Workspace Show Ch Save File Console

		
Rubbish bin
Time