servo_setramp not working for first move?
GeeksGoneBad
Posts: 100
Hey everybody - got a quick question on controlling a servo
I want the first move of the servo to be slow, but if I try to call servo_setramp as the first thing the servo moves are all very fast - but if I call it after the first move then the second move is slow
anyone know how I can get that first move to be slow?
Here's the code I am using so far - if I move the set_ramp to the first line then both moves are fast:
servo_angle(2, 900);
servo_setramp(2, 20);
servo_angle(2, 0);
pause(1500);
servo_angle(2, 900);
pause(1500);
thanks
Jamie
I want the first move of the servo to be slow, but if I try to call servo_setramp as the first thing the servo moves are all very fast - but if I call it after the first move then the second move is slow
anyone know how I can get that first move to be slow?
Here's the code I am using so far - if I move the set_ramp to the first line then both moves are fast:
servo_angle(2, 900);
servo_setramp(2, 20);
servo_angle(2, 0);
pause(1500);
servo_angle(2, 900);
pause(1500);
thanks
Jamie
Comments