From dc7e3942cd5b7ef2fb721b0065ea4cb94add244a Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Sun, 20 Apr 2008 16:05:10 +0200 Subject: * digital/io/src - add the 'g' command to start the get samples FSM. --- digital/io/src/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'digital') diff --git a/digital/io/src/main.c b/digital/io/src/main.c index 85987b52..11986f7f 100644 --- a/digital/io/src/main.c +++ b/digital/io/src/main.c @@ -41,6 +41,7 @@ #include "trap.h" /* Trap module (trap_* functions) */ #include "fsm.h" /* fsm_* */ #include "giboulee.h" /* team_color */ +#include "getsamples.h" /* getsamples_start */ #include "io.h" @@ -206,6 +207,15 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args) eeprom_save_param (); break; + /* FSM commands */ + case c ('g', 2): + /* Start the get samples FSM + * - 1b: the approach angle to face the distributor ; + * - 1b: how many and where to put collected samples ; + */ + getsamples_start (args[0], args[1]); + break; + default: /* Unknown commands */ proto_send0 ('?'); -- cgit v1.2.3