0x726048362412y726048362412
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
Units: US Customary Metric
Background:

Robot 1

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (12 in, 36 in)
Current Angle: 180 deg
Wheel Radius:
Track Width:
in

Robot 2

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (18 in, 50 in)
Current Angle: 180 deg
Wheel Radius:
Track Width:
in

Robot 3

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (12 in, 50 in)
Current Angle: 5 deg
Wheel Radius:
Track Width:
in

Robot 4

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (8 in, 30 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Turnover in Basketball
Problem Statement:
The pre-placed blocks drive the Linkbots to their corresponding dots on the other side of the court. Get the Mindstorms to the other side of the court. The green robot moves to the green dot and the red one moves to the red dot. You may use drivexytoNB blocks, or choose to use trigonometry and driveDistanceNB blocks if you want a challenge.
/* Code generated by RoboBlockly v2.0 */
#include <mindstorms.h>
#include <linkbot.h>
CMindstorms robot1;
double radius1 = 1.1;
CMindstorms robot2;
double radius2 = 1.1;
CLinkbotI robot3;
double radius3 = 1.75;
CLinkbotI robot4;
double radius4 = 1.75;
double trackwidth2 = 4.54;
double trackwidth1 = 4.54;
double trackwidth3 = 3.69;
double trackwidth4 = 3.69;

robot1.setSpeed(20, radius1);
robot2.setSpeed(20, radius2);
robot3.setSpeed(20, radius3);
robot4.setSpeed(20, radius4);
robot2.drivexyToNB(62, 44, radius2, trackwidth2);
robot1.drivexyToNB(60, 28, radius1, trackwidth1);
robot3.drivexyToNB(60, 48, radius3, trackwidth3);
robot4.drivexyTo(54, 24, radius4, trackwidth4);
robot4.moveWait();
/* Code generated by RoboBlockly v2.0 */
#include <mindstorms.h>
#include <linkbot.h>
CMindstorms robot1;
double radius1 = 1.1;
CMindstorms robot2;
double radius2 = 1.1;
CLinkbotI robot3;
double radius3 = 1.75;
CLinkbotI robot4;
double radius4 = 1.75;
double trackwidth1 = 4.54;
double trackwidth2 = 4.54;
double trackwidth3 = 3.69;
double trackwidth4 = 3.69;

robot1.setSpeed(20, radius1);
robot2.setSpeed(20, radius2);
robot3.setSpeed(20, radius3);
robot4.setSpeed(20, radius4);
robot1.turnRightNB(180, radius1, trackwidth1);
robot1.turnRightNB(rad2deg(atan(double(8)/48)), radius1, trackwidth1);
robot1.driveDistanceNB(sqrt(pow(8, 2) + pow(48, 2)), radius1);
robot2.turnRightNB(180, radius2, trackwidth2);
robot2.turnRightNB(rad2deg(atan(double(6)/44)), radius2, trackwidth2);
robot2.driveDistanceNB(sqrt(pow(6, 2) + pow(44, 2)), radius2);
robot3.drivexyToNB(60, 48, radius3, trackwidth3);
robot4.drivexyTo(54, 24, radius4, trackwidth4);
robot4.moveWait();
Blocks Save Blocks Load Blocks Show Ch Save Ch Workspace
Problem Statement:
The pre-placed blocks drive the Linkbots to their corresponding dots on the other side of the court. Get the Mindstorms to the other side of the court. The green robot moves to the green dot and the red one moves to the red dot. You may use drivexytoNB blocks, or choose to use trigonometry and driveDistanceNB blocks if you want a challenge.

		
Time