carte esclave petit robot

Dependencies:   mbed Herkulex_Library_2019 actions_Gr ident_crac actions_Pr

Revision:
24:33c7ff467bd9
Parent:
23:93a427b242ce
Child:
25:9627700d989f
--- a/main.cpp	Wed May 22 20:07:49 2019 +0000
+++ b/main.cpp	Wed May 22 20:24:42 2019 +0000
@@ -12,16 +12,11 @@
 signed char FIFO_lecture=0;//Position du fifo de lecture des messages CAN
 unsigned char EtatGameEnd=0;
 
-
-int rotation_couroies = 0;
-
-
 void canProcessRx(void);
 
 
-
-
 #ifdef ROBOT_BIG
+int rotation_couroies = 0;
 #endif
 
 /*********************************************************************************************/
@@ -69,30 +64,36 @@
         canProcessRx();
         f_mesure();//dt35
 
-        automate_ventouse_presentoir_avant();
-        automate_ventouse_goldenium_avant();
-        automate_ventouse_relache_avant();
-        automate_ventouse_accelerateur_avant();
 
 #ifdef ROBOT_SMALL
         automate_ventouse_presentoir_arriere();
+        automate_ventouse_presentoir_avant();
 
         automate_ventouse_goldenium_arriere();
-
+        automate_ventouse_goldenium_avant();
+        
         automate_ventouse_sol_avant();
         automate_ventouse_sol_arriere();
 
+        automate_ventouse_balance_avant();
         automate_ventouse_balance_arriere();
 
         automate_ventouse_relache_arriere();
+        automate_ventouse_relache_avant();
 
         automate_ventouse_sol_avant_relache();
         automate_ventouse_sol_arriere_relache();
 
         automate_ventouse_accelerateur_arriere();
+        automate_ventouse_accelerateur_avant();
 #endif
 
 #ifdef ROBOT_BIG
+        automate_ventouse_presentoir_avant();
+        automate_ventouse_goldenium_avant();
+        automate_ventouse_relache_avant();
+        automate_ventouse_accelerateur_avant();
+        
         fifo_couleur();
         ascenseur();