Learning CS and Math with Robotics
Barobo

CSP Unit 3 Lesson 5.8

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.8

Our next goal is to create a program to trace the diamond shaped figure shown in blue on the grid. We will take it step by step (literally). Looking at the figure, we see that it can be traced by a number of step movements--each one being a move forward, then a move to the left, and then a right turn to face forward again to get ready for another step. So the first task is to create a function named drawStep that will have the robot trace out just one step movement. Then call that function so the robot traces the first step, forward and then to the left of its starting point. Note that the side length of each step is 4 units, and the robot should end facing up (positive y direction).

Load Blocks
Hardware
LArduino
Workspace Show Ch Save File Console

		
Rubbish bin
Time