summaryrefslogtreecommitdiff
path: root/digital/io-hub/src/guybrush/main.c
diff options
context:
space:
mode:
authorJerome Jutteau2013-03-08 17:38:04 +0100
committerJerome Jutteau2013-03-17 15:10:14 +0100
commitf8d057385f4592e43601e20cba2b7ea60f57922c (patch)
tree7ac338c28aeda25cd5d528754d69892ab5f1fc9c /digital/io-hub/src/guybrush/main.c
parent47b8f6e963111adc81b2c41506acb231f35f416d (diff)
digital/io-hub/src/guybrush: update FSM
Diffstat (limited to 'digital/io-hub/src/guybrush/main.c')
-rw-r--r--digital/io-hub/src/guybrush/main.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/digital/io-hub/src/guybrush/main.c b/digital/io-hub/src/guybrush/main.c
index cfec1879..35f3a5c7 100644
--- a/digital/io-hub/src/guybrush/main.c
+++ b/digital/io-hub/src/guybrush/main.c
@@ -194,13 +194,13 @@ main_demo_events (void)
switch (tree_step)
{
case 0:
- clamp_request (FSM_EVENT (AI, tree_detected));
+ clamp_request (FSM_EVENT (tree_detected));
break;
case 1:
- clamp_request (FSM_EVENT (AI, empty_tree));
+ clamp_request (FSM_EVENT (empty_tree));
break;
case 2:
- clamp_request (FSM_EVENT (AI, robot_is_back));
+ clamp_request (FSM_EVENT (robot_is_back));
break;
}
tree_step = (tree_step + 1) % 3;
@@ -512,7 +512,7 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
break;
case c ('j', 0):
/* Simulate jack insertion. */
- fsm_queue_post_event (FSM_EVENT (AI, jack_inserted));
+ fsm_queue_post_event (FSM_EVENT (jack_inserted));
break;
case c ('f', 0):
/* Enter FSM debug mode, then step once. */
@@ -520,36 +520,36 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
break;
case c ('t',0):
/* Simulate tree detection. */
- fsm_queue_post_event (FSM_EVENT (AI, tree_detected));
+ fsm_queue_post_event (FSM_EVENT (tree_detected));
break;
case c ('s',0):
/* Simulate stop tree approach. */
- fsm_queue_post_event (FSM_EVENT (AI, stop_tree_approach));
+ fsm_queue_post_event (FSM_EVENT (stop_tree_approach));
break;
case c ('e',0):
/* Simulate the empty tree command. */
- fsm_queue_post_event (FSM_EVENT (AI, empty_tree));
+ fsm_queue_post_event (FSM_EVENT (empty_tree));
break;
case c ('r',0):
/* Simulate the robot_is_back command. */
- fsm_queue_post_event (FSM_EVENT (AI, robot_is_back));
+ fsm_queue_post_event (FSM_EVENT (robot_is_back));
break;
case c ('u',0):
/* Simulate the unblock command. */
- fsm_queue_post_event (FSM_EVENT (AI, clamp_unblock));
+ fsm_queue_post_event (FSM_EVENT (clamp_unblock));
break;
case c ('c', 1):
/* Simulate clean_start (00), clean_catch (01), clean_load (02). */
if (args[0] == 0)
- fsm_queue_post_event (FSM_EVENT (AI, clean_start));
+ fsm_queue_post_event (FSM_EVENT (clean_start));
else if (args[0] == 1)
- fsm_queue_post_event (FSM_EVENT (AI, clean_catch));
+ fsm_queue_post_event (FSM_EVENT (clean_catch));
else
- fsm_queue_post_event (FSM_EVENT (AI, clean_load));
+ fsm_queue_post_event (FSM_EVENT (clean_load));
break;
case c ('c',0):
/* Simulate the coin detected command. */
- fsm_queue_post_event (FSM_EVENT (AI, coin_detected));
+ fsm_queue_post_event (FSM_EVENT (coin_detected));
break;
case c ('m', 5):
/* Go to position.