summaryrefslogtreecommitdiff
path: root/digital/io/src/top_cb.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-21 23:55:41 +0200
committerJérémy Dufour2008-04-21 23:55:41 +0200
commit4e9abfc25206587a3e96cfb2251dae5e81d34b5f (patch)
tree451f16a8523a676bbb04b01ac53d98a9ac5dfc07 /digital/io/src/top_cb.c
parent06f1c2cd6f511ea0990d3bb60103cf9512b8d634 (diff)
* digital/io/src
- add a simple function to set the complete bot position ; - integrate its usage in the top FSM.
Diffstat (limited to 'digital/io/src/top_cb.c')
-rw-r--r--digital/io/src/top_cb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/digital/io/src/top_cb.c b/digital/io/src/top_cb.c
index 7935beed..60ea6c28 100644
--- a/digital/io/src/top_cb.c
+++ b/digital/io/src/top_cb.c
@@ -70,9 +70,7 @@ top__WAIT_JACK_OUT__jack_removed_from_bot (void)
/* Start the chronometer */
chrono_init ();
/* Reset the position of the bot */
- asserv_set_x_position (PG_X_START);
- asserv_set_y_position (PG_Y_START);
- asserv_set_angle_position (PG_A_START);
+ asserv_set_position (PG_X_START, PG_Y_START, PG_A_START);
/* Start the move FSM to our samples distributor */
move_start (PG_DISTRIBUTOR_SAMPLE_OUR_X, PG_DISTRIBUTOR_SAMPLE_OUR_Y);
return top_next (WAIT_JACK_OUT, jack_removed_from_bot);