X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fcommon%2Fi2c_commands.h;h=d64ed8b8093102bdec4d8c5986ef8c496fcd511b;hp=7b04977db4cc34837280e753350b4d8a9236e881;hb=aa68be2d5d596693bda1109e4ccd6489f613b4f7;hpb=19cd41f7920628a962928580cd1618a1ee5750aa diff --git a/projects/microb2010/common/i2c_commands.h b/projects/microb2010/common/i2c_commands.h index 7b04977..d64ed8b 100644 --- a/projects/microb2010/common/i2c_commands.h +++ b/projects/microb2010/common/i2c_commands.h @@ -40,6 +40,7 @@ #define I2C_COB_WHITE 1 #define I2C_COB_UNKNOWN 2 #define I2C_COB_REMOVED 3 +#define I2C_COB_NONE 4 struct i2c_cmd_hdr { uint8_t cmd; @@ -107,6 +108,7 @@ struct i2c_req_cobboard_status { #define I2C_COBBOARD_SPK_DEPLOY 0x01 /* deploy the spickle */ #define I2C_COBBOARD_SPK_AUTOHARVEST 0x02 /* auto harvest the cobs */ +#define I2C_COBBOARD_SPK_NO_MOVE 0x04 /* if enabled, don't change state */ uint8_t lspickle; uint8_t rspickle; }; @@ -151,6 +153,10 @@ struct i2c_ans_ballboard_status { uint8_t status; uint8_t ball_count; + + /* detection of cobs */ + uint8_t lcob; + uint8_t rcob; }; #endif /* _I2C_PROTOCOL_H_ */