Robot secondaire

Dependencies:   RoboClaw mbed StepperMotor

Fork of RoboClaw by Simon Emarre

Revision:
64:24e1057a97f7
Parent:
58:02dc8328975a
Child:
65:7bf11abfefc3
--- a/main.cpp	Wed May 04 21:51:00 2016 +0000
+++ b/main.cpp	Thu May 05 01:30:14 2016 +0200
@@ -62,20 +62,10 @@
 /* Debut du programme */
 int main(void)
 {
-    //logger.printf("Depart homologation !\n\r");
-    //homologation();
-    logger.printf("Homming ...\n\r");
-    controlleurPince.home();
-    wait(1);
-    controlleurPince.setPos(10.f,0.f,0.f);
-    wait(1);
-    controlleurPince.setPos(20.f,0.f,0.f);
-    wait(1);
-    controlleurPince.setPos(70.f,0.f,0.f);
-    wait(1);
-    controlleurPince.setPos(20.f,0.f,0.f);
-    logger.printf("Done ...\n\r");
-    
+    map m(&odo, NULL, controlleurPince, VERT, 1);
+    m.Build();
+    m.Execute(1);
+    m.Execute();
     /*drapeau = 0;
     init();