Parallax Servo Controller question - Ramp or Speed?
EEder
Posts: 12
According to http://www.parallax.com/dl/docs/prod/motors/ServoController.pdf , the 'R' parameter dictates a Ramp, but in practice it doesn't seem to.
I've been using that parameter as the basic rate, or speed and until today, when I need to make it ramp up/down, didn't know it was supposed to be the ramp rate!
I'm controlling two servos here, and the following code moves the servos to the X,Y position at what appears to be a constant speed of "rate"
Why is my 'rate' parameter making it move at a constant speed and not ramping?
I've been using that parameter as the basic rate, or speed and until today, when I need to make it ramp up/down, didn't know it was supposed to be the ramp rate!
I'm controlling two servos here, and the following code moves the servos to the X,Y position at what appears to be a constant speed of "rate"
x = X_MIN y = Y_MIN rate = 10 ' the speed of the servos SEROUT 15, Baud+$8000,[noparse][[/noparse]"!SC", 1, ra, x.LOWBYTE, x.HIGHBYTE, CR] SEROUT 15, Baud+$8000,[noparse][[/noparse]"!SC", 3, ra, y.LOWBYTE, y.HIGHBYTE, CR]
Why is my 'rate' parameter making it move at a constant speed and not ramping?
Comments
maybe..
Actual code should be:
You are correct, the docs refer to the ra variable as a ramp factor, but it really functions as a rate.· In the indeterminite future, we will support true servo ramping.· Originally we were going to have one parameter that controlled the ramp and the rate, hence the ra parameter.· The manual will be modified shortly to include support for the USB version of the controller; when we do, the ra parameter's name will be changed to rate to better relfect its functionality.· Sorry about the confusion.
John B.