Learning Math and CS/STEAM with Robotics
Sign In

CSP Unit 3 Lesson 5.5

Linkbot Image Mindstorm Image
Grid Size: S M L Simple View: MinView:
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.

Workspace Load Save Ch Ch Shell Console
Rubbish bin