Barobo
Learning Math and Coding with Robotics

CSP Unit 3 Lesson 5.5

Piano
Linkbot Image Mindstorm Image
x-12-606121824y24181260-6-12
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
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
Hardware
LArduino
Workspace Show Ch Save File Console

		
Rubbish bin
Time