Chapter 4 Challenges By: Rubi Contreras CET-6: Questions
Chapter 4 Challenges By: Rubi Contreras CET-6: Questions
Exercises
1. Write a routine that makes the BOE Shield-Bot backup at full speed for 2.5 seconds.
2. Lets say that you tested your servos and discovered that it takes 1.2 seconds to make a
180 turn with right-rotate. With this information, write routines to make the BOE Shield-Bot
perform 30, 45, and 60 degree turns.
3. Write a routine that makes the BOE Shield-Bot go straight forward, then ramp into and
out of a pivoting turn, and then continue straight forward.
Projects
1. It is time to fill in column 3 of Table 2-2. To do this, modify the us arguments in
the writeMicroseconds calls in the ForwardThreeSeconds sketch using each pair of values
from column 1. Record your BOE Shield-Bots resultant behavior for each pair in column 3.
Once completed, this table will serve as a reference guide when you design your own custom
BOE Shield-Bot maneuvers.
2. The diagram shows two simple courses. Write a sketch that will make your BOE Shield-
Bot navigate along each figure. Assume straight-line distances (the triangles sides and the
diameter of the circle) are either 1 yard or 1 meter.