upload_script
Compile a servo script and flash it to the controller board so its firmware runs the sequence without a PC, optionally starting it automatically at every power-up.
Instructions
Compile a servo script and store it in the board's flash, where the firmware runs it without a PC (autorun: also start at every power-up).
One statement per line; channels by number or name; times in ms or '1.5s':
label: jump/loop target
move <ch> <us> [<time>] ramp there; does not wait: moves on different
channels run together, a repeat move of the
same channel waits for the previous one
pose <name> [<time>] move every channel of a GUI pose
sync wait until all moves arrive
wait <time>
off <ch>|all
loop <label> [<n>] block runs n times in total; no n = forever
jump <label>
waitin <ch> >|< <0-4095> wait for analog input ch (0-7)
ifin <ch> >|< <0-4095> run next statement only if true
end
Positions are clamped to the channel limits. Max 254 instructions.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | ||
| script | Yes | ||
| autorun | No |