If you have not done so already, you will need to configure channel 6 (your button pin) to be an input in the “Channel Settings” section of the Maestro Control Center. Also, it should be connected as described in the “Button or switch” heading of the “Attaching Servos and Peripherals” section of the Maestro user’s guide.
Then, you can use the
GET_POSITION command to read the state of the switch and an
IF statement to only move the servos if the button is pressed. The structure of the script could look something like this:
6 get_position 500 less_than if #check the button on channel 6
#move servos 15 degrees if button was pressed
10000 delay #wait for 10 seconds
#move servos back
You will need to determine for your servos what target position to send to get them to move to the desired location. One way to find these values is to use the sliders in the “Status” tab of the Maestro Control Center to move the servos manually. Please note that the target shown on the slider is in units of microseconds and the values used with the
SERVO command in your script should be in quarter microseconds, so you will need to multiply them by 4 to get the same position.
If you have trouble getting it to work, you can post the script you have so far, and I would be glad to take a look.