Barobo
Learning CS and Math with Robotics

CSP Unit 3 Lesson 5.10c

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

Our final step is to define one single "drawDiamond" function and call it to have the robot trace out the diamond. The function definition should start with a traceOn command and finish with a traceOff command. In between it should call the drawSide function four times. Modify the pre-placed code to define the drawDiamond function and call it.

Load Blocks
Hardware
LArduino
Workspace Show Ch Save File Console

		
Rubbish bin
Time