48
If the command "c" is received, it means to let RollFlash move forward; if the command "d",
it moves backwards; if "a", it turns left; if "b", it turns right; if "s", it stops. Thus, we can remotely
control the RollFlash to move forward and backward, turning left and right, etc.
6.3
Avoidance.ino
We have learnt a lot on servo and basic control for the RollFlash and how it moves. Thus, it
would be quite easy to control it for obstacle avoiding. The program can judge whether
there is an obstacle in front of the RollFlash by reading data from ultrasonic module on it,
and further control the robot to avoid the obstacle by corresponding programs.
SunFounder