changeset 140:e7adf29e5d6d

new legs
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Thu, 31 Jul 2014 17:07:08 +0200
parents 03e30dd7c34e
children 999894826513
files creep.py kubik.py walk.py
diffstat 3 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/creep.py	Sat Jul 19 12:19:03 2014 +0200
+++ b/creep.py	Thu Jul 31 17:07:08 2014 +0200
@@ -7,7 +7,7 @@
 HEIGHT = -35
 STEP = -5
 OVERLAP = 0
-FPS = 36
+FPS = 24
 
 
 def _swing(robot, delay, steps):
--- a/kubik.py	Sat Jul 19 12:19:03 2014 +0200
+++ b/kubik.py	Thu Jul 31 17:07:08 2014 +0200
@@ -57,9 +57,9 @@
     """
 
     # Lengths of leg segments, in mm
-    coxa = 40.0  # between the hip and the knee
-    femur = 32.0  # between the knee and the ankle
-    tibia = 35.0  # between the ankle and the foot
+    coxa = 16.0  # between the hip and the knee
+    femur = 50.0  # between the knee and the ankle
+    tibia = 45.0  # between the ankle and the foot
     base = 45.0, 45.0  # from the center of body
     home = 45.0, 45.0, -35.0
 
--- a/walk.py	Sat Jul 19 12:19:03 2014 +0200
+++ b/walk.py	Thu Jul 31 17:07:08 2014 +0200
@@ -1,3 +1,7 @@
+import os
+
+os.environ['SDL_VIDEODRIVER'] = 'dummy'  # before importing pygame
+
 import pygame
 
 import kubik