44
Next, control four servos simultaneously. Similarly, by setting nine parameters including
c7
,
c2
,
c4
,
c8
(starting angles),
s7
,
s2
,
s4
,
s8
(end angles), and
ms0
(rotation speed), we can
control the rotating angle and speed of four servos at the same time. Movements of the
RollFlash robot can be well controlled by calling those programs above. Here we just take
some examples about different controlling.
6.2
APP.ino
The servo control base program in last chapter lays a foundation for controlling the RollFlash
to move forward and backward, and turn left and right. Next let's talk about the specific
control program for some movements.
SunFounder
Содержание RollFlash
Страница 44: ...42 Control the servos on pin 5 pin 6 and pin 8 S u n F o u n d e r ...
Страница 52: ...50 S u n F o u n d e r ...