I’m trying to stop a servo after giving it a timed movement command. I start the servo out at position P2200, and then give it the below timed command. At a point in the movement I want to stop the servo where it is at that point. In my program I’ve tried using the new “stop” command (bottom), but the servo keeps moving to its final timed movement position. Any way to stop the servo in the middle of a timed command?
You can always ask the SSC-32 for the current position of the servo at the time you want it to stop, and then send it the same value as a destination as soon as you receive it.
I have tried this, and it seems to work well. You would have to try it, because it would depend on how long it takes the microcontroller to read the value, and then send it back in the right format. It may also depend on how fast the servo is moving as to how far past its point it might go before receiving the new command.
I do plan on doing some more experimentation with this, including different movement speeds, and communication speeds etc.
The Stop command will do exactly what it says. It will stop that single servo in it’s tracks. You probably need to install the latest version of the firmware.
Due to an error on our part we were shipping the 2.01XE firmware with out the new Register support, or the Stop command. The file on the website wil, add these features. Sorry for the goof…