Hi All
i’m new and still learning how Maestro and the control center works.
i have my 12 channel servo controller connected to a raspberry pi that i will be calling scripts (individual sequence) via python using buttons in a node red dashboard
when i try and execute a sequence via python using the below it gives me a 800 error, i can manually control the servo using python and i can run the script manually then hit a 400 error
Manual Control works
import maestro
import time
servo = maestro.Controller()
servo.setAccel(0,25)
servo.setTarget(0,6000)
servo.setAccel(1,25)
servo.setTarget(1,6000)
time.sleep(2)
servo.setAccel(0,25)
servo.setTarget(0,1000)
servo.setAccel(1,25)
servo.setAccel(1,1000)
servo.close
This code doesnt
import maestro
import time
servo = maestro.Controller()
servo.runScriptSub(0)
print("sub0")
time.sleep(3)
servo.runScriptSub(1)
print("sub1")
the above give me a 0x0040 error
i just need to know how to make multiple sequences and call each one at a time using the same code