Keyestudio 4DOF Manual page 236

Robot arm kit
Hide thumbs Also See for 4DOF:
Table of Contents

Advertisement

www.keyestudio.com
}
// carry out
if(ps2x.Button(PSB_L3))
{
//Serial.println("L3 pressed");
i=0;
tt=1;
pos1 = myservo1.read(); // record the angle value of 4 servo posture
pos2 = myservo2.read();
pos3 = myservo3.read();
pos4 = myservo4.read();
while(tt==1) // repeat the actions
{
for(int k=0;k<j;k++)
{
if(pos1<jiyi1[k])
{
while(pos1<jiyi1[k])
the array.
//for loop, to execute all the stored actions.
// if the current servo 1 angle is less than the value stored in array 1.
//while loop, make servo turn to the position of value stored in
233

Advertisement

Table of Contents
loading

Table of Contents