X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fcommon%2Fi2c_commands.h;h=9882ba645d6975141657fad88429ffaa95c50e18;hp=312a18e153abb0a93a1b0166ffa30ca946862e9a;hb=ad466314d3aff8f661654d4701b9d12fdeb7811f;hpb=28da5858ac871c626153f47566e968ecb05ff52b diff --git a/projects/microb2010/common/i2c_commands.h b/projects/microb2010/common/i2c_commands.h index 312a18e..9882ba6 100644 --- a/projects/microb2010/common/i2c_commands.h +++ b/projects/microb2010/common/i2c_commands.h @@ -23,6 +23,7 @@ #define _I2C_COMMANDS_H_ #define I2C_OPPONENT_NOT_THERE -1000 +#define I2C_BEACON_NOT_FOUND -1000 #define I2C_MAINBOARD_ADDR 1 #define I2C_COBBOARD_ADDR 2 @@ -97,6 +98,13 @@ struct i2c_cmd_ballboard_set_mode { uint8_t mode; }; +#define I2C_CMD_BALLBOARD_SET_BEACON 0x04 + +struct i2c_cmd_ballboard_start_beacon { + struct i2c_cmd_hdr hdr; + uint8_t enable; +}; + /****/ /* requests and their answers */ /****/ @@ -156,6 +164,11 @@ struct i2c_ans_ballboard_status { #define I2C_BALLBOARD_STATUS_F_EXCPT 0x02 uint8_t status; + int16_t opponent_x; + int16_t opponent_y; + int16_t opponent_a; + int16_t opponent_d; + uint8_t ball_count; /* detection of cobs */