# Make Grover wave his right hand up and down forever

8000 0 servo # left leg down
4000 1 servo # left arm down
4000 2 servo # right arm down
4000 3 servo # right leg down
moving_wait

begin
  30 2 speed
  8000 2 servo
  moving_wait
  60 2 speed
  4000 2 servo
  moving_wait
repeat

quit 

sub moving_wait
  begin
    get_moving_state
  while
    # wait until no longer moving
  repeat
return