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

CSP Unit 3 Lesson 7.5

Piano
Linkbot Image Mindstorm Image Cursor Image
0x2418126-6-12y2418126-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
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: (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: (6 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: (12 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: (18 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in
CSP Unit 3 Lesson 7.5
/* Code generated by RoboBlockly v2.5 */
/* Problem Statement: 
    So far we have limited ourselves to tracing red lines with
    the robot, but there are many other drawing options
    available by clicking the "Drawing" tab (two tabs up from
    the Functions tab), as shown. (Scroll down to see shapes
    available.) Using the pre-placed code, experiment with
    drawing rectangles of different sizes, colors, and
    positions by changing the parameter values. The x and
    y parameters in the rectangle block specify the location of
    the bottom left corner of the rectangle. To change the
    color using the "stroke color" code block, click on the
    color that's shown and choose another from the popup menu.
    */
#include <chplot.h>
CPlot plot;

plot.strokeColor("#ff99ff");
plot.fillColor("#ff99ff");
plot.circle(6, 4, 4);
plot.circle(6, 11, 3);
plot.circle(6, 16, 2);

plot.axisRange(PLOT_AXIS_XY, -12, 24);
plot.ticsRange(PLOT_AXIS_XY, 6);
plot.sizeRatio(1);
plot.plotting();
Load Blocks
Hardware
LArduino
Workspace Show Ch Save File
Problem Statement:

We have pre-placed three code blocks in the Workspace: stroke color, fill color, and circle. Use these to draw a "snowman" figure (adding more blocks as needed), consisting of a large circle at the bottom, a medium circle in the middle, and a small circle on the top. Use whatever color you like. 


		
Rubbish bin
Time