X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fcommon%2Fi2c_commands.h;h=5e4a449053ebba2df31833e32d5e8c15939fd004;hp=fa17fcad97cba160a7c4a4e3a821659d11e5eced;hb=d9b4e922ce1253224adb937d65c8c2e7cd5cfe87;hpb=9d056416278ae5d772a0fc1f7d2d11a4461fb673 diff --git a/projects/microb2010/common/i2c_commands.h b/projects/microb2010/common/i2c_commands.h index fa17fca..5e4a449 100644 --- a/projects/microb2010/common/i2c_commands.h +++ b/projects/microb2010/common/i2c_commands.h @@ -1,6 +1,6 @@ /* - * Copyright Droids Corporation (2007) - * + * Copyright Droids Corporation (2010) + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -32,6 +32,7 @@ #define I2C_RIGHT_SIDE 1 #define I2C_AUTO_SIDE 2 #define I2C_CENTER_SIDE 3 +#define I2C_NO_SIDE 4 #define I2C_COLOR_YELLOW 0 #define I2C_COLOR_BLUE 1 @@ -77,6 +78,7 @@ struct i2c_cmd_cobboard_set_mode { #define I2C_COBBOARD_MODE_HARVEST 0x01 /* harvest mode */ #define I2C_COBBOARD_MODE_EJECT 0x02 /* eject cobs */ #define I2C_COBBOARD_MODE_INIT 0x03 /* init state machine */ +#define I2C_COBBOARD_MODE_KICKSTAND 0x04 /* help to climb the hill */ uint8_t mode; }; @@ -108,6 +110,8 @@ 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 */ +#define I2C_COBBOARD_SPK_WEAK 0x08 /* if enabled, current limit */ uint8_t lspickle; uint8_t rspickle; }; @@ -125,6 +129,7 @@ struct i2c_ans_cobboard_status { #define I2C_COBBOARD_STATUS_LBUSY 0x02 #define I2C_COBBOARD_STATUS_RBUSY 0x03 #define I2C_COBBOARD_STATUS_EJECT 0x04 +#define I2C_COBBOARD_STATUS_KICKSTAND 0x05 uint8_t status; uint8_t cob_count;