Mercurial > ukubik
changeset 84:3c6798ab41ba
Fine tune the trot gait
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Sun, 12 Oct 2014 12:39:17 +0200 |
| parents | 9f37e5f03a20 |
| children | ea63674fe408 |
| files | trot.py |
| diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/trot.py Sat Oct 11 17:27:32 2014 +0200 +++ b/trot.py Sun Oct 12 12:39:17 2014 +0200 @@ -1,9 +1,9 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -class Creep(object): +class Trot(object): step_height = 5.0 # How high to raise the legs. - stride = 16.0 # How long steps to take. + stride = 20.0 # How long steps to take. swing = 12, 9 # How much to shift the body x and y. swing_speed = 3 # How fast to shift the body. posture = 10, 16 # How much to change posture depending on direction. @@ -94,10 +94,10 @@ import serial import kubik - FPS = 40 + FPS = 50 robot = kubik.Robot(serial.Serial('/dev/rfcomm0', 115200)) - creep = Creep(robot) + creep = Trot(robot) robot.run_animations([ creep.stomp_anim(), creep.retract_anim(),
