changeset 4:c0e23288f36b

Added schematic
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Sun, 18 Jan 2015 20:10:51 +0100
parents e86979b47473
children 355a31408575
files ubob.fzz ubob.lua
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
Binary file ubob.fzz has changed
--- a/ubob.lua	Fri Jan 16 16:20:10 2015 +0100
+++ b/ubob.lua	Sun Jan 18 20:10:51 2015 +0100
@@ -60,11 +60,11 @@
         moving = true
     end
 
-    if moving == false then
+    if moving then
+        pwm.setduty(7, 96 + sway_pos)
+        pwm.setduty(6, 88 + left_pos)
+        pwm.setduty(5, 94 + right_pos)
+    else
         next_pose()
     end
-
-    pwm.setduty(7, 96 + sway_pos)
-    pwm.setduty(6, 88 + left_pos)
-    pwm.setduty(5, 94 + right_pos)
 end