Maestro controller script problem

Hello,

I have bought a Mini Maestro 24-channel Servo Controller and trying to program it through Pololu Maestro Controller. I have just saved the positions of the servo motors as frames then copied all sequences to script. Afterwards I added a small script to call these subroutines. My code is given below:

begin 
sub Sequence_0
repeat

### Sequence subroutines: ###

# Sequence 0
sub Sequence_0
  500 0 0 0 0 0 0 
  0 0 0 0 0 0 
  0 0 0 0 0 4085 
  0 0 0 0 0 0 frame_0..23 # Frame 0
  2000 5592 frame_17 # Frame 1
  return

sub frame_0..23
  23 servo
  22 servo
  21 servo
  20 servo
  19 servo
  18 servo
  17 servo
  16 servo
  15 servo
  14 servo
  13 servo
  12 servo
  11 servo
  10 servo
  9 servo
  8 servo
  7 servo
  6 servo
  5 servo
  4 servo
  3 servo
  2 servo
  1 servo
  0 servo
  delay
  return

sub frame_17
  17 servo
  delay
  return

However when I push “Apply Settings” I get and error as: “Found REPEAT without a corresponding BEGIN”

Although I already wrote “begin” at start. Can you tell me whats the problem here. Thanks for the help already and sorry for bad english

Hello.

I think your problem might be that you wrote “sub Sequence_0” twice. You should only write “sub Sequence_0” once, in the place where you are defining the subroutine. To call the subroutine, you should simply write “Sequence_0”.

–David

I solved the problem, I guess it was something related to my Windows. Somehow the program doesn’t accept “i” character. So I wrote “BEGIN” instead of “begin”. Then the color of the text turned green and it worked.