X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fcommon%2Fi2c_commands.h;h=fb4829f929dbc07c641bd571871f9ec114cc45ac;hp=43eed34fc70c0e23e93f746a913d0d784f82a6e9;hb=31bb619b1046f561cff432cb116735b1423a8d89;hpb=57b3e145f2ff46e1a7e7d522c85f3c56821dbf48 diff --git a/projects/microb2010/common/i2c_commands.h b/projects/microb2010/common/i2c_commands.h index 43eed34..fb4829f 100644 --- a/projects/microb2010/common/i2c_commands.h +++ b/projects/microb2010/common/i2c_commands.h @@ -28,13 +28,13 @@ #define I2C_COBBOARD_ADDR 2 #define I2C_BALLBOARD_ADDR 3 -#define I2C_LEFT_SIDE 0 -#define I2C_RIGHT_SIDE 1 -#define I2C_AUTO_SIDE 2 -#define I2C_CENTER_SIDE 3 +#define I2C_LEFT_SIDE 0 +#define I2C_RIGHT_SIDE 1 +#define I2C_AUTO_SIDE 2 +#define I2C_CENTER_SIDE 3 -#define I2C_COLOR_RED 0 -#define I2C_COLOR_GREEN 1 +#define I2C_COLOR_YELLOW 0 +#define I2C_COLOR_BLUE 1 #define I2C_COB_BLACK 0 #define I2C_COB_WHITE 1 @@ -76,6 +76,7 @@ struct i2c_cmd_cobboard_set_mode { #define I2C_COBBOARD_MODE_R_DEPLOY 0x04 /* deploy the spickle */ #define I2C_COBBOARD_MODE_R_HARVEST 0x08 /* auto harvest withe cobs */ #define I2C_COBBOARD_MODE_EJECT 0x10 /* eject cobs */ +#define I2C_COBBOARD_MODE_INIT 0x20 /* init state machine */ uint8_t mode; };