]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
robodim: Clear unused variables for Chess-up competition.
authorMichal Vokac <vokac.m@gmail.com>
Sun, 30 Sep 2012 13:27:32 +0000 (15:27 +0200)
committerMichal Vokac <vokac.m@gmail.com>
Sun, 30 Sep 2012 13:27:32 +0000 (15:27 +0200)
src/robodim/robodim.c

index a519cc64b6f85fb0fe2fe7eeba0cf7e08bbab8d4..99d602c37671bb9c47fb8a523323714e212f4cd7 100644 (file)
@@ -1,111 +1,2 @@
 #include "robodim.h"
 #include <robomath.h>
-
-/*
- * Beacon positions. For some version of MCL, this must be sorted in
- * the same order as laser rotation.
- *
- * (pecam1, 2009: not sure, if the sense is right for laser MCL;
- *  anyway, I hope, we will be happy without the laser)
- */
-
-const struct bonus_pos bonus[BONUS_CNT] = { //bonus[1].x
-       {975,  1575},
-       {975,  875},
-       {1325, 175},
-       {1675, 175},
-       {2025, 1575},
-       {2025, 875},
-};
-
-const struct pawn_pos pawn[PAWN_CNT] = {
-       {800, 1400},    // center
-       {800, 350},
-       {1150, 1750},
-       {1150, 350},
-       {1500, 1050},
-       {1850, 1750},
-       {1850, 350},
-       {2200, 1400},
-       {2200, 350},
-       {200, 290},     // left dispensing
-       {200, 290 + 1*280},
-       {200, 290 + 2*280},
-       {2800, 290},    // right dispensing
-       {2800, 290 + 1*280},
-       {2800, 290 + 2*280},
-};
-
-const struct queen_pos queen[QUEEN_CNT] = {
-       {200, 290 + 3*280},
-       {2800, 290 + 3*280},
-};
-
-const struct king_pos king[KING_CNT] = {
-       {200, 290 + 4*280},
-       {2800, 290 + 4*280},
-};
-
-const struct square_center_red red_sq[SQ_CNTR] = {
-       {0.45 + 0.175 + 5*0.35, 5*0.35 + 0.175}, // 1
-       {0.45 + 0.175 + 5*0.35, 3*0.35 + 0.175}, // 2
-       {0.45 + 0.175 + 5*0.35, 1*0.35 + 0.175}, // 3
-       {0.45 + 0.175 + 4*0.35, 4*0.35 + 0.175}, // 4
-       {0.45 + 0.175 + 4*0.35, 2*0.35 + 0.175}, // 5
-       {0.45 + 0.175 + 3*0.35, 5*0.35 + 0.175}, // 6
-       {0.45 + 0.175 + 3*0.35, 3*0.35 + 0.175}, // 7
-       {0.45 + 0.175 + 3*0.35, 1*0.35 + 0.175}, // 8
-       {0.45 + 0.175 + 2*0.35, 4*0.35 + 0.175}, // 9
-       {0.45 + 0.175 + 2*0.35, 2*0.35 + 0.175}, // 10
-       {0.45 + 0.175 + 1*0.35, 5*0.35 + 0.175}, // 11
-       {0.45 + 0.175 + 1*0.35, 3*0.35 + 0.175}, // 12
-       {0.45 + 0.175 + 1*0.35, 1*0.35 + 0.175}, // 13
-       {0.45 + 0.175 + 0*0.35, 4*0.35 + 0.175}, // 14
-       {0.45 + 0.175 + 0*0.35, 2*0.35 + 0.175}, // 15
-};
-
-const struct square_center_blue blue_sq[SQ_CNTR] = {
-       {0.45 + 0.175 + 0*0.35, 5*0.35 + 0.175}, // 1
-       {0.45 + 0.175 + 0*0.35, 3*0.35 + 0.175}, // 2
-       {0.45 + 0.175 + 0*0.35, 1*0.35 + 0.175}, // 3
-       {0.45 + 0.175 + 1*0.35, 4*0.35 + 0.175}, // 4
-       {0.45 + 0.175 + 1*0.35, 2*0.35 + 0.175}, // 5
-       {0.45 + 0.175 + 2*0.35, 5*0.35 + 0.175}, // 6
-       {0.45 + 0.175 + 2*0.35, 3*0.35 + 0.175}, // 7
-       {0.45 + 0.175 + 2*0.35, 1*0.35 + 0.175}, // 8
-       {0.45 + 0.175 + 3*0.35, 4*0.35 + 0.175}, // 9
-       {0.45 + 0.175 + 3*0.35, 2*0.35 + 0.175}, // 10
-       {0.45 + 0.175 + 4*0.35, 5*0.35 + 0.175}, // 11
-       {0.45 + 0.175 + 4*0.35, 3*0.35 + 0.175}, // 12
-       {0.45 + 0.175 + 4*0.35, 1*0.35 + 0.175}, // 13
-       {0.45 + 0.175 + 5*0.35, 4*0.35 + 0.175}, // 14
-       {0.45 + 0.175 + 5*0.35, 2*0.35 + 0.175}, // 15
-};
-// 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 */
-//     { 3.062,  2.162},
-// };
-//
-// const struct beacon_pos beacon_red[BEACON_CNT] = {
-//     /* beacons are rotated, not mirrored! */
-//     {-0.062,  2.162},
-//     { 3.062,  1.05},
-//     {-0.062, -0.05},
-// };
-
-
-/*
- * Ukrizovavse pak jej, rozdelili roucha jeho, mecice o ne los, aby se
- * naplnilo povedeni proroka, rkouciho: Rozdelili sobe roucho me, a o muj
- * odev metali los. (Mt 27,35)
- *
- * And they crucified him, and parted his garments, casting lots: that it
- * might be fulfilled which was spoken by the prophet, They parted my garments
- * among them, and upon my vesture did they cast lots.
- *
- *
- * Mame dost mongoloidni souradnej system, vsimli jste si?
- * Inteligent by dal cervenej ctverec do 0,0. No, proletosek uz na to chmatat
- * nebudeme.
- */