Learning CS and Math with Robotics
Barobo

CSP Unit 3 Lesson 5.9a

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.9a

Now that we have the drawStep function, we note that the bottom left side of the diamond figure consists of three steps. So use the pre-placed "do something" code block to create a function named drawSide that contains code that calls the drawStep function three times, and then add the code block that calls the drawSide function to the main code at the top . When you run the code, the robot should trace out the bottom left side of the diamond figure.

Load Blocks
Hardware
LArduino
Workspace Show Ch Save File Console

		
Rubbish bin
Time