add test file
parent
5d0571abfa
commit
e329c893d7
@ -0,0 +1,16 @@
|
|||||||
|
import maestro
|
||||||
|
servo = maestro.Controller()
|
||||||
|
import time
|
||||||
|
print("1")
|
||||||
|
for i in range(18):
|
||||||
|
|
||||||
|
servo.setAccel(i,10) #set servo 0 acceleration to 4
|
||||||
|
servo.setSpeed(i,50) #set speed of servo 1
|
||||||
|
servo.setTarget(i,6000) #set servo to move to center position
|
||||||
|
|
||||||
|
time.sleep(1)
|
||||||
|
#servo.setTarget(0,6000)
|
||||||
|
#x = servo.getPosition(1) #get the current position of servo 1
|
||||||
|
print("5")
|
||||||
|
#servo.close()
|
||||||
|
print("6")
|
Loading…
Reference in New Issue