Servo Move Speed Parm

Just checking my math and understanding of the speed parameter in a servo move as I’m just learning about the speed parameter.

I have a servo, centered at 1500us and whose desired range is plus/minus 500us. Normally, from center to one extreme,I want the move to take .3secs. If I want the move from extreme to extreme (1000-2000) to be at the same speed, I would specify a speed parameter of S1667
(1500-1000)/Spd = 300 msecs
500/300 = 1.667 = 1667 = Spd
Do I have the correct idea?

Why not just use the time parameter? Then you could just set it to T=300 without worrying about the math. Sorry if I’m missing the point here, but it just seems easier that way. :wink:

Well, it’s like this… …/viewtopic.php?f=20&t=5948#p67536 I actually have been using the Time command, but I am experiencing situations where it is not producing the desired effect. Normally, from center to one extreme, it takes .3 seconds; If it is moving from extreme to extreme, I want it to move at the same speed. But I don’t know the distance it is going to travel, which I would need to use the Time command.

My software maps a short natural language description to appropriate SSC-32 commands.Like the following:

Shimmy Left <==> #9P860 #11P2500 T500…and this works well if the animatronic is standing up. But if he has just “shimmied right”, he is much further away and has to move further. In this case, the motion is noticably faster and there is a jerkiness to the motion. Hence, since I don’t know what script command was last executed for any given servo, I figured that the speed command was more appropriate.

I have mapped each servo to its own operating range and with this Math, can generate values for speed to replace the time commands. I just want to confirm that my math is correct.