Learning Math and CS with Robotics
Sign In

CSP Unit 3 Lesson 4.5

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

Using only the commands driveDistance to move forwards, turnLeft(angle 90) to turn, and traceOn and traceOff, create a program that efficiently as possible has the Linkbot draw a 3x3 grid of red squares forward and to the right of its starting point, with each square having a side length of 6. The Linkbot should end back at its starting position, facing forward. (A setSpeed command is provided at the beginning to speed up the robot's drawing.)

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

		
Rubbish bin
Time