this version 10/17

Dependencies:   mbed

Fork of linearMirrorMotion by Alvaro Cassinelli

Revision:
18:6f86abfae754
Parent:
17:dce982e0a383
Child:
19:8e9fe7d25b9c
--- a/main.cpp	Mon May 20 08:51:07 2013 +0000
+++ b/main.cpp	Mon May 20 09:31:29 2013 +0000
@@ -177,14 +177,10 @@
                 //newSpeedReady = true;
                 //if( (Y-beforeY) > 5){
                 vy = ((float)Y-(float)beforeY) / (float)timer_v.read_us() *1000;
-                //theta=atan2(vy,vx);
-                //sint = -sin(theta);//cos(theta);
-                //cost = -cos(theta);//-sin(theta);
-                //}
-                //if (cost > 0){
-                //sint = -sint;//cos(thet
-                //cost = -cost;//-sin(theta);
-                //}
+                
+                myRender.updateSpeed(vx, vy);
+                
+               
             }
 
             else if (val == 'D') {