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 */
/****/
struct i2c_req_ballboard_status {
struct i2c_cmd_hdr hdr;
+
+ /* position sent by mainboard */
+ int16_t x;
+ int16_t y;
+ int16_t a;
};
#define I2C_ANS_BALLBOARD_STATUS 0x83
#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 */