summaryrefslogtreecommitdiff
path: root/digital/io/src/top.c
diff options
context:
space:
mode:
authorJérémy Dufour2009-05-20 19:22:02 +0200
committerJérémy Dufour2009-05-20 19:22:02 +0200
commit503e3511b2fa42263749c62a9625e6549ac2fe2d (patch)
tree86826db066cceaf8a9351f0f0adb11327ed8a3f5 /digital/io/src/top.c
parentfbb64cf43457a96dc7757f649d9f2dc3d6243d19 (diff)
* digital/io/src:
- support backward parameter for the asserv_goto, - enhance to avoid static obstacle, - add center circle of the playground table.
Diffstat (limited to 'digital/io/src/top.c')
-rw-r--r--digital/io/src/top.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/digital/io/src/top.c b/digital/io/src/top.c
index 40c6280b..718e1e74 100644
--- a/digital/io/src/top.c
+++ b/digital/io/src/top.c
@@ -82,16 +82,16 @@ top_get_next_position_to_get_distributor (asserv_position_t *clean_position,
static const asserv_position_t distributor[DISTRIBUTOR_COUNT][2] =
{
/* First distributor. */
- { { 2500, 170, 0 }, { 2711, 170, 280 } },
+ { { 2711, 270, 270 }, { 2711, 200, 270 } },
/* Second distributor. */
- { { 2830, 600, 180 }, { 2830, 800, 0 } },
+ { { 2730, 600, 180 }, { 2730, 800, 0 } },
/* Third distributor. */
- { { 2830, 1100, 180 }, { 2830, 1300, 0 } },
+ { { 2730, 1100, 180 }, { 2730, 1300, 0 } },
};
/* Maximum number of remaining puck by distributor. */
static uint8_t distributor_puck_count[DISTRIBUTOR_COUNT] = { 5, 5, 5 };
/* Current distributor. */
- static uint8_t current_position = DISTRIBUTOR_COUNT;
+ static uint8_t current_position = DISTRIBUTOR_COUNT ;
/* Keep track of how many pucks we have get. This variable will be used to
* know how many puck were taken for each distributor. */
static uint8_t previous_total_puck_taken = 0;