Two Linkbots have been set up on the virtual grid, one facing forward and one facing backward, separated by approximately 2.5 inches. The virtual setup models two connected hardware Linkbots, as shown below (with a cube connector between them). In this activity you are to use a non-blocking driveDistance block for the first robot and a regular driveDistance block for the second robot to get the two robots to move in tandem 36 units forward. Add blinkLEDNB and playMelodyNB commands for the first robot so that it blinks its red LED 18 times and plays a siren sound (one time through) while moving.
|
Grid Lines: | ||
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
|
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: | |
Label: |
|
|
|
|
|
|
|
|
|
|
|
Add code blocks to the Workspace as described above to create a "4-wheel-drive ambulance." |
|
|
|||||||||||
|
|||||||||||