summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/guybrush/top.c
diff options
context:
space:
mode:
authorNicolas Schodet2012-05-17 06:17:37 +0200
committerNicolas Schodet2012-05-17 06:17:37 +0200
commit90bb1981a6367d276d564f8a4625b81b8646fe21 (patch)
tree5ff4d3e9b9a9c197705583ab731599181d6cc7d1 /digital/io-hub/src/guybrush/top.c
parent20d29c23e7b6fc011636d5f979f4b7261f213359 (diff)
digital/io-hub/src/guybrush: give up on catastrophic failure
Diffstat (limited to 'digital/io-hub/src/guybrush/top.c')
-rw-r--r--digital/io-hub/src/guybrush/top.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/digital/io-hub/src/guybrush/top.c b/digital/io-hub/src/guybrush/top.c
index 8f80e174..75d157d9 100644
--- a/digital/io-hub/src/guybrush/top.c
+++ b/digital/io-hub/src/guybrush/top.c
@@ -351,7 +351,7 @@ FSM_TRANS (TOP_TOTEM_GOING, move_failure, TOP_DECISION)
FSM_TRANS (TOP_TOTEM_APPROACHING, robot_move_failure,
TOP_TOTEM_ERROR_GOING_BACK)
{
- strat_failure ();
+ strat_giveup ();
move_start_noangle (top.decision_pos, ASSERV_BACKWARD, 0);
return FSM_NEXT (TOP_TOTEM_APPROACHING, robot_move_failure);
}
@@ -359,14 +359,14 @@ FSM_TRANS (TOP_TOTEM_APPROACHING, robot_move_failure,
FSM_TRANS (TOP_TOTEM_PUSHING, robot_move_failure,
TOP_TOTEM_ERROR_GOING_BACK)
{
- strat_failure ();
+ strat_giveup ();
move_start_noangle (top.decision_pos, ASSERV_BACKWARD, 0);
return FSM_NEXT (TOP_TOTEM_PUSHING, robot_move_failure);
}
FSM_TRANS (TOP_TOTEM_GOING_BACK, move_failure, TOP_TOTEM_ERROR_RELEASE)
{
- strat_failure ();
+ strat_giveup ();
FSM_HANDLE (AI, stop_tree_approach);
return FSM_NEXT (TOP_TOTEM_GOING_BACK, move_failure);
}