X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Ftests%2Fhostsim%2Fstrat_utils.c;fp=projects%2Fmicrob2010%2Ftests%2Fhostsim%2Fstrat_utils.c;h=6e1bef8e0d98d88be284ee9c16416e4d2302a4b2;hp=57c5a0b04aa305a2b0e50a40c60d96738140a395;hb=31bb619b1046f561cff432cb116735b1423a8d89;hpb=82d59983ef31ce70582b602600b4ee221f5bed03 diff --git a/projects/microb2010/tests/hostsim/strat_utils.c b/projects/microb2010/tests/hostsim/strat_utils.c index 57c5a0b..6e1bef8 100644 --- a/projects/microb2010/tests/hostsim/strat_utils.c +++ b/projects/microb2010/tests/hostsim/strat_utils.c @@ -173,13 +173,13 @@ uint8_t robot_is_near_disc(void) } /* return 1 or 0 depending on which side of a line (y=cste) is the - * robot. works in red or green color. */ + * robot. works in yellow or blue color. */ uint8_t y_is_more_than(int16_t y) { int16_t posy; posy = position_get_y_s16(&mainboard.pos); - if (mainboard.our_color == I2C_COLOR_RED) { + if (mainboard.our_color == I2C_COLOR_YELLOW) { if (posy > y) return 1; else @@ -194,7 +194,7 @@ uint8_t y_is_more_than(int16_t y) } /* return 1 or 0 depending on which side of a line (x=cste) is the - * robot. works in red or green color. */ + * robot. works in yellow or blue color. */ uint8_t x_is_more_than(int16_t x) { int16_t posx; @@ -258,10 +258,10 @@ uint8_t get_color(void) /* get the color of the opponent robot */ uint8_t get_opponent_color(void) { - if (mainboard.our_color == I2C_COLOR_RED) - return I2C_COLOR_GREEN; + if (mainboard.our_color == I2C_COLOR_YELLOW) + return I2C_COLOR_BLUE; else - return I2C_COLOR_RED; + return I2C_COLOR_YELLOW; } /* get the xy pos of the opponent robot */