I need help with the script on my Micro Maestro, I need it to make a servo center when the system is powered up and then move to a pre-set position when a button is pushed and move back to center right after the button is released.
Here is my script, it does not center the servo on power up and there is a delay when releasing the button.
Any help would be appreciated.
# this loop will listen for button presses. When a button # is pressed it runs the corresponding sequence. begin button_a if sequence_a endif repeat # These subroutines each return 1 if the corresponding # button is pressed, and return 0 otherwise. # Currently button_a is assigned to channel 0, # button_b is assigned to channel 1, and # button_c is assigned to channel 2. # These channels must be configured as Inputs in the # Channel Settings tab. sub button_a 0 get_position 500 less_than return # These subroutines each perform an arbitrary sequence # of servo movements. You should change these to fit # your application. sub sequence_a 8000 1 servo 1000 delay 1600 1 servo 3000 return