Learning Math and Coding with Robots

Linkbot Image Mindstorm Image Cursor Image
0x126-6-12y126-6-12
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: Background Image

Robot 1

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

Robot 2

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

Robot 3

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

Robot 4

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

Animate a Car
Problem Statement:
The pre-placed blocks will animate the car moving across part of the screen. Edit the existing blocks to make the car move all the way across the screen. Only one wheel is present in the animation, so you need to add another wheel in front of the existing wheel.
/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double d;
CPlot plot;

for(d = -12; d <= 5; d += 0.3) {
  plot.noStrokeColor();
  plot.fillColor("#999999");
  plot.rectangle(-12, -10, 24, 6);
  plot.strokeWidth(5);
  plot.strokeColor("white");
  plot.line(-12, -7, 12, -7);
  plot.strokeWidth(2);
  plot.noStrokeColor();
  plot.strokeColor("cyan");
  plot.fillColor("cyan");
  plot.rectangle(d, -8, 7, 3);
  plot.strokeColor("#3333ff");
  plot.fillColor("#3333ff");
  plot.circle(d + 2, -8, 1);
  plot.circle(d + 5, -8, 1);
  delaySeconds(0.03);
}

plot.label(PLOT_AXIS_XY, "");
plot.grid(PLOT_OFF);
plot.tics(PLOT_AXIS_XY, PLOT_OFF);
plot.axis(PLOT_AXIS_XY, PLOT_OFF);
plot.axisRange(PLOT_AXIS_XY, -12, 12);
plot.ticsRange(PLOT_AXIS_XY, 2);
plot.sizeRatio(1);
plot.plotting();
Blocks Save Blocks Load Blocks Show Ch Save Ch Workspace
Problem Statement:
The pre-placed blocks will animate the car moving across part of the screen. Edit the existing blocks to make the car move all the way across the screen. Only one wheel is present in the animation, so you need to add another wheel in front of the existing wheel.

		
Rubbish bin
Time