Mini Maestro Servo Speed

Hello, I’m very new to programming and scripting and everything. I’m wondering if anyone knows a way to change the speed of a servo for different frames. I seem to only be able to change the speed for the entire sequence.

Thanks
Cade

Hello, Cade.

It sounds like you are using the Sequencer feature of the Maestro Control Center. To change the speed between each frame: you could use the “Copy Sequence to Script” button and modify the script directly. One solution would be to insert the speed command in the begin block before the frame that you want to change the speed of, like I have done in the example below:

begin
   500 0 0 0 0 0 0
   0 0 0 0 0 0
   0 0 0 0 0 0 frame_0..17      # Frame 0
   10 1 speed                   # Set speed to 10 on channel 1
   500 5944 frame_0             # Frame 1
repeat

The speed command has a stack effect of -2, which means that the stack needs to receive two parameters, speed value and channel number, in that order. If you choose to write the script from scratch, you might find our Example Script section in our user’s guide helpful.

Please note that after the speed is changed on a channel, all subsequent movements will be at that speed until it is changed again.

- Amanda