1
Diff: main.cpp
- Revision:
- 10:f94e325fc1e6
- Parent:
- 9:bf02fd2d7a0a
diff -r bf02fd2d7a0a -r f94e325fc1e6 main.cpp --- a/main.cpp Wed Feb 19 05:22:32 2020 +0000 +++ b/main.cpp Thu Mar 12 15:17:18 2020 +0000 @@ -75,13 +75,10 @@ //send_enable = 0; } if(duoji_command==1) - {moveServo(1, 2000, 1000); //1s移动1号舵机至2000位置 + {moveServo(1, duoji_control.p_des, 1000); //1s移动1号舵机至指定的位置 printf("Move Sucessfully1 ! \n\r"); - wait(2); - moveServo(1, 500, 1000); //1s移动1号舵机至500位置 - //BaterryOut(); + wait(1); printf("Move Sucessfully2 ! \n\r"); - wait(2); }