summaryrefslogtreecommitdiffhomepage
path: root/digital/io
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-20 16:05:10 +0200
committerJérémy Dufour2008-04-20 16:05:10 +0200
commitdc7e3942cd5b7ef2fb721b0065ea4cb94add244a (patch)
tree6adb2013d1ade5150f4fd52b396e2e8b7c37e919 /digital/io
parent74e1ec414baeb80a37be3bc922a958aad60bb8e9 (diff)
* digital/io/src
- add the 'g' command to start the get samples FSM.
Diffstat (limited to 'digital/io')
-rw-r--r--digital/io/src/main.c10
1 files changed, 10 insertions, 0 deletions
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 ('?');