a
This commit is contained in:
4
walk2.py
4
walk2.py
@@ -9,7 +9,7 @@ from adafruit_servokit import ServoKit # type: ignore
|
||||
kit = ServoKit(channels=16)
|
||||
|
||||
# Constants for delay
|
||||
DELAY = 0.2
|
||||
DELAY = 0.15
|
||||
|
||||
# Servo angle configurations
|
||||
FORWARD = {
|
||||
@@ -86,7 +86,7 @@ def move_leg(servo1, servo2, servo_angles):
|
||||
time.sleep(DELAY)
|
||||
|
||||
kit.servo[servo2].angle = back
|
||||
time.sleep(DELAY)
|
||||
time.sleep(DELAY*2)
|
||||
|
||||
kit.servo[servo1].angle = up
|
||||
time.sleep(DELAY)
|
||||
|
||||
Reference in New Issue
Block a user