Learning CS and Math with Robotics

CSP Unit 3 Lesson 5.5

Piano MinView
Linkbot Image Mindstorm Image
Grid Lines:
Tics Lines:
Width px
Hash Lines:
Width px
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.5

Although we could use the "turn" code block with the "Right" option to turn right, let's get more practice with functions by defining a "right" function to turn right, using the pre-placed code block. (Change "do something" to "right".) Fill it with turnLeft(angle 90) commands so that the function, when called, will turn the Linkbot 90 degrees to the right. Then add the code blocks that will use the "right" function (found in the Functions tab) and driveDistance (along with traceColor and traceOn) to draw a red rectangle with a width of 6 and height of 12.

Load Blocks
Workspace Show Ch Save File Console

Rubbish bin