summaryrefslogtreecommitdiffhomepage
path: root/digital
diff options
context:
space:
mode:
Diffstat (limited to 'digital')
-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 ('?');