Barobo
PortalSign In
HomeShopTutorialsFree CurriculumHour of Code
RoboBlockly for Learning Math and Coding

Piano
Linkbot Image Mindstorm Image Cursor Image
0x2418126y2418126
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
Labels: x-axis y-axis Show Grid
Grid: 12x12 inches 24x24 inches 36x36 inches
72x72 inches 96x96 inches 192x192 inches
Quad: 4 Quadrants 1 Quadrant 1&4 Quadrants
Units: US Customary Metric
Background: Background Image

Robot 1

Linkbot
Mindstorm
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (3 in, 3 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 2

Linkbot
Mindstorm
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (3 in, 15 in)
Current Angle: 0 deg
Wheel Radius:
Track Width:
in

Robot 3

Linkbot
Mindstorm
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (15 in, 15 in)
Current Angle: 270 deg
Wheel Radius:
Track Width:
in

Robot 4

Linkbot
Mindstorm
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (15 in, 3 in)
Current Angle: 180 deg
Wheel Radius:
Track Width:
in
Four Car Chase CW
/* 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;
}
Load Blocks
Hardware
LArduino
Workspace Show Ch Save File
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.


		
Rubbish bin
Time