Pololu maestro controller code

i’m using below code for my servo to repeat action but fail repeat for 100.
Please help me on this

# Moves servo in a sine wave between 1 and 2 ms.
begin
  60 64 68 71 74 77 79 80 80 79 78 76 73 70 66 62
  58 54 50 47 44 42 41 40 40 41 43 46 49 52 56 
  all_frames
repeat
 
sub all_frames
  begin
    depth
  while
    100 times
    0 servo
    100 delay
  repeat
  return
1 Like

I am not sure what you are asking for; I do not see any obvious problems with your code. Can you describe what you want the code to do compared to what it does now?

Brandon

1 Like