Six-channel Micro Maestro servo controller:Script does not s

Using a six-channel Micro Maestro servo controller controlled with a switch. Connected to the Pololu Maestro control panel I can see the switch working properly but no servos move. Script does not seem to be starting when button is pressed. I can move servo arms with the Pololu Maestro control panel controls. I have used this script many times before with no problem. Can any one see something wrong with the script listed below. Or any other places I should look or make changes. In the past I have forgotten to power the board and the script not running when not connected to computer but I am connected to the computer and I have the board powered from servo positive to Vin pin on the six-channel Micro Maestro servo controller. The switch is on channel 3 and servos are on channels 0,1,4,5. Servos are powered by the double pin next to channel 0.

Any help would be much appreciated
Bobby

[code]# Uses WAIT_FOR_BUTTON_PRESS to allow a user to step through a sequence

of positions on servo 2,3,4,5

begin
wait_for_button_press
100 0 servo
300 delay
0 0 servo
wait_for_button_press
100 4 servo
300 delay
0 4 servo
wait_for_button_press
100 1 servo
300 delay
0 1 servo
wait_for_button_press
100 5 servo
300 delay
0 5 servo

repeat

Returns 1 if the button is pressed, 0 otherwise.

sub button
1 get_position 500 less_than
return

Waits for a button press, with debouncing.

(Requires the BUTTON subroutine.)

sub wait_for_button_press
wait_for_button_open_10ms
wait_for_button_closed_10ms
return

wait for the button to be NOT pressed for at least 10 ms

sub wait_for_button_open_10ms
get_ms # put the current time on the stack
begin

reset the time on the stack if it is pressed

button
if
drop get_ms
else
get_ms over minus 10 greater_than
if drop return endif
endif
repeat

wait for the button to be pressed for at least 10 ms

sub wait_for_button_closed_10ms
get_ms
begin

reset the time on the stack if it is pressed

button
if
get_ms over minus 10 greater_than
if drop return endif
else
drop get_ms
endif
repeat
[/code]

Hello, Bobby.

I am not sure if you are using the same setup that your code had worked for before, but you mentioned that:

It seems that you are checking for the button press on channel 1 and not 3 in your button subroutine. This could be the problem.

- Amanda