X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Ftests%2Fhostsim%2Fstrat.c;h=dc6d865cab008a0fe72c1d1cf214a028371f85d5;hp=4cc17fba9c683a0c701da904273647a99a5473a7;hb=31bb619b1046f561cff432cb116735b1423a8d89;hpb=82d59983ef31ce70582b602600b4ee221f5bed03 diff --git a/projects/microb2010/tests/hostsim/strat.c b/projects/microb2010/tests/hostsim/strat.c index 4cc17fb..dc6d865 100644 --- a/projects/microb2010/tests/hostsim/strat.c +++ b/projects/microb2010/tests/hostsim/strat.c @@ -183,11 +183,11 @@ struct strat_infos strat_infos = { /* lintel dispensers */ .l1 = { - .x = 912, /* XXX for red only */ + .x = 912, /* XXX for yellow only */ .name = "lin_disp1", }, .l2 = { - .x = 1312, /* XXX for red only */ + .x = 1312, /* XXX for yellow only */ .name = "lin_disp2", }, @@ -244,7 +244,7 @@ struct strat_infos strat_infos = { void strat_set_bounding_box(void) { - if (get_color() == I2C_COLOR_RED) { + if (get_color() == I2C_COLOR_YELLOW) { strat_infos.area_bbox.x1 = 300; strat_infos.area_bbox.y1 = 200; strat_infos.area_bbox.x2 = 2720; /* needed for c1 */ @@ -273,7 +273,7 @@ void strat_preinit(void) #ifndef HOST_VERSION i2c_mechboard_mode_init(); - if (get_color() == I2C_COLOR_RED) + if (get_color() == I2C_COLOR_YELLOW) i2c_mechboard_mode_prepare_pickup(I2C_LEFT_SIDE); else i2c_mechboard_mode_prepare_pickup(I2C_RIGHT_SIDE); @@ -537,7 +537,7 @@ void strat_reset_infos(void) strat_set_bounding_box(); /* set lintel position, depending on color */ - if (mainboard.our_color == I2C_COLOR_RED) { + if (mainboard.our_color == I2C_COLOR_YELLOW) { strat_infos.l1.x = 912; strat_infos.l2.x = 1312; }