X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fmainboard%2Fstrat_corn.h;h=4f50cb6738e9de47802b00d9a89e583e0c5dff86;hp=e84b83d34befb34c96c7b530147033b08b666a1d;hb=HEAD;hpb=876789a372da2e93a816428649e511c2ad9e40be diff --git a/projects/microb2010/mainboard/strat_corn.h b/projects/microb2010/mainboard/strat_corn.h index e84b83d..4f50cb6 100644 --- a/projects/microb2010/mainboard/strat_corn.h +++ b/projects/microb2010/mainboard/strat_corn.h @@ -21,11 +21,11 @@ */ #define LINE_UP 0 -#define LINE_DOWN 1 -#define LINE_R_UP 2 -#define LINE_L_DOWN 3 -#define LINE_L_UP 4 -#define LINE_R_DOWN 5 +#define LINE_L_UP 1 +#define LINE_L_DOWN 2 +#define LINE_DOWN 3 +#define LINE_R_DOWN 4 +#define LINE_R_UP 5 struct line_2pts { point_t p1; @@ -33,7 +33,8 @@ struct line_2pts { }; /* there is a corn near */ -int8_t corn_is_near(uint8_t *corn_idx, uint8_t side); +int8_t corn_is_near(uint8_t *corn_idx, uint8_t side, + int16_t *xspickle, int16_t *yspickle); /* go from line num1,dir1 to line num2,dir2. Uses trjectory flags * specified as argument and return END_xxx condition */