From 370fa5662360eaa582bed9d55e092b627aef8920 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Thu, 10 Apr 2008 13:51:28 +0200 Subject: Start to fill the FSMs. (not finished). --- digital/io/src/top.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'digital/io/src/top.c') 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); -- cgit v1.2.3