Learning Math and CS with Robotics
Sign In

CSP Unit 3 Lesson 5.4

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

Using the turnAround function you defined in the previous exercise (pre-placed for you in the Workspace), along with the driveDistance, turnLeft(90 degrees), and traceOn commands, create the code that will have the Linkbot draw a large red + (plus) sign centered at the Linkbot's starting point. Each line of the + sign should be 12 units long (top to bottom, and left to right). The robot should only move forward, turn left, or turn around, and should end up in its starting position and orientation at the center of the + sign. Put the turnAround function definition at the end of the code.

Load Blocks
Hardware
LArduino
Workspace Save Show C Edit C Ch Shell Console

		
Rubbish bin
Time