From e329c893d70a0420fac3f27d7d50fefc8e56bb6a Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Tue, 9 May 2023 13:48:12 -0500 Subject: [PATCH] add test file --- software/raspberry pi/test.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 software/raspberry pi/test.py diff --git a/software/raspberry pi/test.py b/software/raspberry pi/test.py new file mode 100644 index 0000000..f4e27f4 --- /dev/null +++ b/software/raspberry pi/test.py @@ -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") \ No newline at end of file