Pop lock n drop it

Dependencies:   m3pi_ng mbed

Revision:
2:e513ada0ecf1
Parent:
1:ac7fc0b5f878
Child:
3:6f773c2ba3a0
diff -r ac7fc0b5f878 -r e513ada0ecf1 main.cpp
--- a/main.cpp	Wed May 21 11:31:57 2014 +0000
+++ b/main.cpp	Wed May 21 11:52:59 2014 +0000
@@ -27,7 +27,7 @@
 
 void smoothFollow(float position, float speed)
 {
-    float u = speed/4;
+    float u = speed/1.;
     u = u * position;
     if(speed+u > 1)
     {
@@ -36,8 +36,8 @@
     }
     else
     {
-        huey.right_motor(speed+u);
-        huey.left_motor(speed-u);
+        huey.right_motor(speed-u);
+        huey.left_motor(speed+u);
     }
     
 }
@@ -69,7 +69,7 @@
     
     //huey.printf("%f", huey.line_position());
     
-    float speed = 0.1;
+    float speed = 0.25;
     float pos;
     int z=1;
     while(z==1)