Fork de Timer après le match à 61 points

Dependencies:   RoboClaw mbed

Fork of Timer by ARES

Revision:
65:7bf11abfefc3
Parent:
64:24e1057a97f7
Child:
66:47353c8122de
--- a/main.cpp	Thu May 05 01:30:14 2016 +0200
+++ b/main.cpp	Thu May 05 01:52:34 2016 +0200
@@ -62,6 +62,7 @@
 /* Debut du programme */
 int main(void)
 {
+    init();
     map m(&odo, NULL, controlleurPince, VERT, 1);
     m.Build();
     m.Execute(1);
@@ -103,17 +104,11 @@
     SCouleur = VERT;
     LEDV = 1;
     LEDR = 0;
-
-    odo.setPos(110, 1000, 0);
-    roboclaw.ResetEnc();
-    roboclaw.ForwardM1(0);
-    roboclaw.ForwardM2(0);
-    wait_ms(500);
-    while(1);
+    
     //depart();
     init_interrupt();
-    wait_ms(100);
-    while(START==0);
+    wait_ms(1);
+    //while(START==0);
     logger.printf("End init\n\r");
 }