Learning Math and CS with Robotics
Sign In

CSP Unit 3 Lesson 5.3

Linkbot Image Mindstorm Image
Grid Size: S M L Simple View: MinView:
CSP Unit 3 Lesson 5.3

Define a function named turnAround using the pre-placed code block. (Change "do something" to "turnAround".) Fill it with turnLeft(angle 90) commands so that the function, when called, will turn the Linkbot around 180 degrees. Then add the code block that will call the turnAround function (found in the Functions tab) and finallly add a code block to move the robot forward 10 units after it turns around, drawing the path in red as usual. (The blue line shows the intended path.)

Load Blocks
Workspace Save Show C Edit C Ch Shell Console

Rubbish bin