{200, 290 + 4*280},
{2800, 290 + 4*280},
};
+
+const struct square_center_red red_sq[12] = {
+ {0.45 + 0.175 + 0*0.35, 4*0.35 + 0.175}, // row 1
+ {0.45 + 0.175 + 2*0.35, 4*0.35 + 0.175},
+ {0.45 + 0.175 + 4*0.35, 4*0.35 + 0.175},
+ {0.45 + 0.175 + 1*0.35, 3*0.35 + 0.175}, // row 2
+ {0.45 + 0.175 + 3*0.35, 3*0.35 + 0.175},
+ {0.45 + 0.175 + 5*0.35, 3*0.35 + 0.175},
+ {0.45 + 0.175 + 0*0.35, 2*0.35 + 0.175}, // row 3
+ {0.45 + 0.175 + 2*0.35, 2*0.35 + 0.175},
+ {0.45 + 0.175 + 4*0.35, 2*0.35 + 0.175},
+ {0.45 + 0.175 + 1*0.35, 1*0.35 + 0.175}, // row 4
+ {0.45 + 0.175 + 3*0.35, 1*0.35 + 0.175},
+ {0.45 + 0.175 + 5*0.35, 1*0.35 + 0.175},
+};
+
+const struct square_center_blue blue_sq[12] = {
+ {0.45 + 0.175 + 1*0.35, 4*0.35 + 0.175}, // row 1
+ {0.45 + 0.175 + 3*0.35, 4*0.35 + 0.175},
+ {0.45 + 0.175 + 5*0.35, 4*0.35 + 0.175},
+ {0.45 + 0.175 + 0*0.35, 3*0.35 + 0.175}, // row 2
+ {0.45 + 0.175 + 2*0.35, 3*0.35 + 0.175},
+ {0.45 + 0.175 + 4*0.35, 3*0.35 + 0.175},
+ {0.45 + 0.175 + 1*0.35, 2*0.35 + 0.175}, // row 3
+ {0.45 + 0.175 + 3*0.35, 2*0.35 + 0.175},
+ {0.45 + 0.175 + 5*0.35, 2*0.35 + 0.175},
+ {0.45 + 0.175 + 0*0.35, 1*0.35 + 0.175}, // row 4
+ {0.45 + 0.175 + 2*0.35, 1*0.35 + 0.175},
+ {0.45 + 0.175 + 4*0.35, 1*0.35 + 0.175},
+};
// const struct beacon_pos beacon_green[BEACON_CNT] = {
// { 3.062, -0.05}, /* EB2009: one side is 10mm only plexiglass */
// {-0.062, 1.05}, /* the rest is 22mm wood */
int x, y;
};
+struct square_center_red {
+ float x, y;
+};
+
+struct square_center_blue {
+ float x, y;
+};
+
extern const struct beacon_pos beacon_green[BEACON_CNT];
extern const struct beacon_pos beacon_red[BEACON_CNT];
extern const struct bonus_pos bonus[BONUS_CNT];
extern const struct king_pos king[KING_CNT];
extern const struct queen_pos queen[QUEEN_CNT];
+extern const struct square_center_red red_sq[12];
+extern const struct square_center_blue blue_sq[12];
+
/*
* Position of Shapr sensors on the robot with respect to the robot center
* (not used in EB2009)