Hello.
-
From your code, it looks like the
shutdownsubroutine is continuously looping followed by a three second delay, which would explain why it takes longer than you are expecting for the program check the status of your switch. You might try using a state variable to keep track of the switch and determine when it is switched “ON” or “OFF”. You can see an example of a state variable used here. -
One way you could have speed and acceleration limits still apply to the movements of a servo once it has been turned off is to first send the servo to the last known position it was in when the Maestro turned it off. The speed and acceleration limits should be applied to subsequent movements.
-
The units are displayed as microseconds under the “Status” tab of the Maestro Control Center, whereas the units are displayed as quarter-microseconds in the Maestro scripting language. To convert from microseconds to quarter-microseconds, you would need to multiply the microsecond value by 4 (e.g. 1020 * 4 = 4080).
-
It sounds like you have the “Run script on startup” option enabled. To prevent the script from running whenever you make a change in the Maestro Control Center and clicking on the “Apply Settings” button, you can uncheck the “Run script on startup” box under the “Script” tab of the Maestro Control Center. Remember to enable that option and apply those changes if you are going to use the Maestro as a standalone device (not connected to your computer via USB).
- Amanda
