Learning CS and Math with Robotics
Barobo

CSP Unit 3 Lesson 5.10a

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

In the previous activity we got two sides of the diamond shape drawn. To finish the other two sides, we simply repeat the process. So the whole thing is: (1) call the drawSide function to draw the first side, (2) move forward and turn right, (3) call drawSide for the second side, (4) move forward and turn right, (4) call drawSide for the third side, (5) move forward and turn right, (6) call drawSide for the fourth side, (7) move forward and turn right to return to the starting position. Add the code to do this. (The function definitions are pre-placed at the bottom.)

Load Blocks
Hardware
LArduino
Workspace Show Ch Save File Console

		
Rubbish bin
Time