EEder
03-09-2005, 01:11 PM
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"
x = X_MIN
y = Y_MIN
rate = 10 ' the speed of the servos
SEROUT 15, Baud+$8000,["!SC", 1, ra, x.LOWBYTE, x.HIGHBYTE, CR]
SEROUT 15, Baud+$8000,["!SC", 3, ra, y.LOWBYTE, y.HIGHBYTE, CR]
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,["!SC", 1, ra, x.LOWBYTE, x.HIGHBYTE, CR]
SEROUT 15, Baud+$8000,["!SC", 3, ra, y.LOWBYTE, y.HIGHBYTE, CR]
Why is my 'rate' parameter making it move at a constant speed and not ramping?