X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Ftests%2Fhostsim%2Fcommands_traj.c;h=e84e4e3451350ee5dba02af524f9e36ce5486e93;hp=f693820f06d96252c8225afdd4a1521f41e58c51;hb=31bb619b1046f561cff432cb116735b1423a8d89;hpb=82d59983ef31ce70582b602600b4ee221f5bed03 diff --git a/projects/microb2010/tests/hostsim/commands_traj.c b/projects/microb2010/tests/hostsim/commands_traj.c index f693820..e84e4e3 100644 --- a/projects/microb2010/tests/hostsim/commands_traj.c +++ b/projects/microb2010/tests/hostsim/commands_traj.c @@ -769,19 +769,19 @@ static void cmd_position_parsed(void * parsed_result, void * data) else if (!strcmp_P(res->arg1, PSTR("set"))) { position_set(&mainboard.pos, res->arg2, res->arg3, res->arg4); } - else if (!strcmp_P(res->arg1, PSTR("autoset_green"))) { - mainboard.our_color = I2C_COLOR_GREEN; + else if (!strcmp_P(res->arg1, PSTR("autoset_blue"))) { + mainboard.our_color = I2C_COLOR_BLUE; #ifndef HOST_VERSION - i2c_set_color(I2C_MECHBOARD_ADDR, I2C_COLOR_GREEN); - i2c_set_color(I2C_SENSORBOARD_ADDR, I2C_COLOR_GREEN); + i2c_set_color(I2C_MECHBOARD_ADDR, I2C_COLOR_BLUE); + i2c_set_color(I2C_SENSORBOARD_ADDR, I2C_COLOR_BLUE); #endif auto_position(); } else if (!strcmp_P(res->arg1, PSTR("autoset_red"))) { - mainboard.our_color = I2C_COLOR_RED; + mainboard.our_color = I2C_COLOR_YELLOW; #ifndef HOST_VERSION - i2c_set_color(I2C_MECHBOARD_ADDR, I2C_COLOR_RED); - i2c_set_color(I2C_SENSORBOARD_ADDR, I2C_COLOR_RED); + i2c_set_color(I2C_MECHBOARD_ADDR, I2C_COLOR_YELLOW); + i2c_set_color(I2C_SENSORBOARD_ADDR, I2C_COLOR_YELLOW); #endif auto_position(); } @@ -795,7 +795,7 @@ static void cmd_position_parsed(void * parsed_result, void * data) prog_char str_position_arg0[] = "position"; parse_pgm_token_string_t cmd_position_arg0 = TOKEN_STRING_INITIALIZER(struct cmd_position_result, arg0, str_position_arg0); -prog_char str_position_arg1[] = "show#reset#autoset_green#autoset_red"; +prog_char str_position_arg1[] = "show#reset#autoset_blue#autoset_red"; parse_pgm_token_string_t cmd_position_arg1 = TOKEN_STRING_INITIALIZER(struct cmd_position_result, arg1, str_position_arg1); prog_char help_position[] = "Show/reset (x,y,a) position";