summaryrefslogtreecommitdiff
path: root/digital/io/src/top.c
diff options
context:
space:
mode:
authorNélio Laranjeiro2008-04-10 13:51:28 +0200
committerNélio Laranjeiro2008-04-10 13:51:28 +0200
commit370fa5662360eaa582bed9d55e092b627aef8920 (patch)
tree6221fb25269ddcbffbcb994ec13a2a84a6f3a4cb /digital/io/src/top.c
parentd117245f36bb255a3d8badc0fe75495e69d81f1d (diff)
Start to fill the FSMs. (not finished).
Diffstat (limited to 'digital/io/src/top.c')
-rw-r--r--digital/io/src/top.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/digital/io/src/top.c b/digital/io/src/top.c
index 42ffa80b..f358445d 100644
--- a/digital/io/src/top.c
+++ b/digital/io/src/top.c
@@ -31,10 +31,13 @@ struct top_data_t top_data;
/** Start a main FSM. */
void
-robot_main_start (void)
+top_start (uint8_t color_team)
{
/* Set parameters. */
top_data.sequence = 0x15;
+ /* Get the team color.
+ * !! I supose that the 0 value is 0 and red value is 1 */
+ top_data.team_color = color_team;
/* Start the FSM. */
fsm_init (&top_fsm);
fsm_handle_event (&top_fsm, TOP_EVENT_ok);