Grid: | ||
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
|
Axes: | x-axis | y-axis | Show Grid |
Grid: | 24x24 inches | 36x36 inches | 72x72 inches |
96x96 inches | 192x192 inches | ||
Quad: | 4 quadrants | 1 quadrant | Hardware |
Units: | US Customary | Metric |
Background: |
![]() |
|
|
|
|
|
|
|
|
|
/* Code generated by RoboBlockly v2.0 */ #include <linkbot.h> #include <mindstorms.h> CLinkbotI robot1; double radius1 = 1.75; CMindstorms robot2; double radius2 = 1.1; CLinkbotI robot3; double radius3 = 1.75; CMindstorms robot4; double radius4 = 1.1; double trackwidth1 = 3.69; double trackwidth2 = 4.54; double trackwidth4 = 4.54; double trackwidth3 = 3.69; int count; count = 0; while(count < 5) { robot1.driveDistanceNB(12, radius1); robot2.driveDistanceNB(12, radius2); robot3.driveDistanceNB(12, radius3); robot4.driveDistance(12, radius4); robot1.turnRightNB(90, radius1, trackwidth1); robot2.turnRightNB(90, radius2, trackwidth2); robot4.turnRightNB(90, radius4, trackwidth4); robot3.turnRight(90, radius3, trackwidth3); robot4.moveWait(); count = count + 1; }
Problem Statement: The four robots at each corner labeled A,B,C, and D are to chase each other around the 4squares blocks in a clockwise manner. The pre-placed blocks already began moving 2 robots. Add in the necessary blocks to complete this activity. |
|||||||||||