summaryrefslogtreecommitdiff
path: root/n/es-2006/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/es-2006/src/main.c')
-rw-r--r--n/es-2006/src/main.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/n/es-2006/src/main.c b/n/es-2006/src/main.c
index 5d79a4f..ecc80f0 100644
--- a/n/es-2006/src/main.c
+++ b/n/es-2006/src/main.c
@@ -108,8 +108,8 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
sensor_rvb_upper_sensors (args[0]);
break;
/* contact */
- case c ('i', 0 ):
- proto_send1b ('i', others_contact());
+ case c ('c', 0 ):
+ proto_send1b ('c', others_contact());
break;
/* jack */
case c ('j', 0 ):
@@ -137,21 +137,26 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
/* tests plus complexes de la gestion du barillet */
+ /* Initialise la position du barillet. */
+ case c ('i', 0):
+ barillet_init_zero ();
+ break;
/* bon on commence - le jack est parti */
case c ('g', 0):
- init_2_barillet(); // le nom est mal choisi, mais cette fonction sera gerer autrement quand le main sera fini
+ barillet_lancement();
+ break;
+ /* Coucouche panier. */
+ case c ('s', 0):
+ barillet_sleep ();
break;
-
/* deposer une balle du barillet */
case c ('d', 0):
depot_balle();
break;
-
/* extraire une balle */
case c ('e', 0):
extraction();
break;
-
/* rotation du barillet */
case c ('t', 1):
rotation(args[0]);