]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/mcl/mcl_dim.c
eb_lift: Use expansion pot number defines.
[eurobot/public.git] / src / mcl / mcl_dim.c
1 #include "mcl_dim.h"
2
3 /* Beacon positions. For some version of MCL, this must be sorted in
4  * the same order as laser rotation. */
5 const struct beacon_pos beacon_green[BEACON_CNT] = {
6         /* R1 */ { 0,                  PLAYGROUND_HEIGHT_M/2 },
7         /* R2 */ { PLAYGROUND_WIDTH_M, 0 },
8 #if BEACON_CNT == 4
9         /* R4 */ { PLAYGROUND_WIDTH_M, BASKET_WIDTH },
10 #endif
11         /* R3 */ { PLAYGROUND_WIDTH_M, PLAYGROUND_HEIGHT_M },
12 };
13
14 const struct beacon_pos beacon_red[BEACON_CNT] = {
15         /* S1 */ { PLAYGROUND_WIDTH_M, PLAYGROUND_HEIGHT_M/2 },
16         /* S2 */ { 0,                  PLAYGROUND_HEIGHT_M },
17 #if BEACON_CNT == 4
18         /* S4 */ { 0,                  BASKET_WIDTH },
19 #endif
20         /* S3 */ { 0,                  0 },
21 };