Robot's source code

Dependencies:   mbed

Revision:
27:5f441ecda140
Parent:
26:54e1afed58b2
Child:
28:0a659a910771
--- a/main.cpp	Tue Jan 20 14:38:23 2015 +0000
+++ b/main.cpp	Tue Jan 20 14:42:00 2015 +0000
@@ -71,18 +71,11 @@
     pcs.printf("mise a jour des pwm.\n");
     Timer t;    
     
-    //while(1);
     /*----------------------------------------------------------------------------------------------*/
     /*Odometry*/
-    //QEI qei_left(p15,p16,NC,1024*reduc,QEI::X4_ENCODING);
-    //QEI qei_left(P0_2,P0_7,NC,1024*reduc,QEI::X4_ENCODING);//mbuino
-    //QEI qei_left(PA_3,PA_2,NC,1024*reduc,QEI::X4_ENCODING);//nucleo
-    
-    //QEI qei_right(p17,p18,NC,1024*reduc,QEI::X4_ENCODING);
-    //QEI qei_right(P0_8,P0_20,NC,1024*reduc,QEI::X4_ENCODING);//mbuino
-    //QEI qei_right(PA_10,PB_3,NC,1024*reduc,QEI::X4_ENCODING);//nucleo
-
-    //Odometry odometry(&qei_left,&qei_right,0.07,0.07,0.26);
+    QEI qei_left(p15,p16,NC,1024*reduc,QEI::X4_ENCODING);
+    QEI qei_right(p17,p18,NC,1024*reduc,QEI::X4_ENCODING);
+    Odometry odometry(&qei_left,&qei_right,0.07,0.07,0.26);
     /*----------------------------------------------------------------------------------------------*/