Question
Asked November 12 2017

Community Question

Hello everyone.


I am looking for some scripting help. I would like to set a servo speed, or even better, an incremental servo speed to all the servos in the auto position selections I use in a script. Instead of adjust speed for each servo individually.
Is this possible?



I am using 2 auto positions from 2 boards.

The reason I would like this is after the script executes the auto positions the servos really move fast/snap back quick when another script executes other auto positions.

I have used an Initt script in the Connection control upon start up which works well to set everything in the beginning.

This is for an Inmoov . I have the head, look at the hand when offered something in one script and then look at the other hand after in a different script. The head really snaps to the second position quickly.

Thanks for any help. Please let me know if I need to clarify.




Code:

ControlCommand("Board 0", AutoPositionFrameJump, "S-")
ControlCommand("Left Hand - Board 3", AutoPositionFrameJump, "S- Left Hand")
ControlCommand(" Release board 3 left hand", PauseOn)

DJ Sures
Synthiam
November 12 2017
Press the ? (Question mark) on the auto position control to read the manual. This is a very important step when wanting to learn more about a control.

Set the speeds for each frame of the auto position action to -1

Read the manual to notice that -1 means "do not set the speed". Also, The Robot Program has a great episode on using the auto position that we spent a lot of effort and time on.

Before executing the auto position action with ez-script, set the speed of each manual/Introduction-to-servo-motors-17393' target='_top'>servo.
November 12 2017
Thanks DJ,

I have read all the question marks.

I was hoping not to set the speed for every servo for every script.
DJ Sures
Synthiam
November 12 2017
You can make a script that sets the speed for every servo of a variable :).
DJ Sures
Synthiam
November 12 2017
November 12 2017
That is awesome, Thanks very much DJ. I'll post a video when I get it up and running.