|
Set the Robot Speed In this lesson, you will learn how to control how fast the robot moves using the setSpeed block. This video shows how to set the speed at the beginning of your code or use multiple setSpeed blocks to change the speed throughout the program. You can also use the timer to see how long the robot takes to move.
1. Set the Robot's Speed Just like a car, a robot can move fast or slow. You can use the setSpeed block to choose how fast the robot moves. This block has one input, which is how fast the robot goes, measured in inches per second. ![]()
![]()
![]()
2. Maximum Speed If you are using a physical Linkbot robot with the blue wheels, do not make the speed too high. The highest speed for a physical Linkbot is about 6 inches per second, but it works better at 4 or 5 inches per second or slower. The virtual robot in the grid does not have a speed limit, but it is still a good idea to choose a speed that matches what you want the robot to do. If the speed is too fast, it can be hard to see what is happening.
|
This example drives the robot forward 8 inches at 2 inches per second. |
| This example shows how to change the robot’s speed during a program. First, the robot drives forward 4 inches at a speed of 2 inches per second. Then, the speed is changed to 6 inches per second, and the robot drives forward another 4 inches. |
| Grid Size: S M L | Simple View: | MinView: |
| Coord: x-axis y-axis | Grid Lines: x-axis y-axis | |||
| Grid: | 12x12 inches | 24x24 inches | 36x36 inches | |
| 72x72 inches | 96x96 inches | 192x192 inches | ||
| 1x1 inches | 2x2 inches | Fraction: | ||
| xy-Range: | ||||
|
|
||||
|
|
||||
| Quad: | 1 Quadrant | 4 Quadrants | 1&4 Quadrants | |
| Units: | US Customary | Metric | Ruler: | |
| Labels: |
|
|
|
|
Font
px
|
|
| Tics Lines: |
|
Width
px
|
| Hash Lines: |
|
Width
px
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
(
,
in
) in
|
|
degrees
|
|
|
|||||||||||
|
|||||||||||
