git.droids-corp.org
/
aversive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vt100: include pgmspace.h as we use PROGMEM macro
[aversive.git]
/
projects
/
microb2010
/
mainboard
/
strat_corn.h
diff --git
a/projects/microb2010/mainboard/strat_corn.h
b/projects/microb2010/mainboard/strat_corn.h
index
e84b83d
..
4f50cb6
100644
(file)
--- a/
projects/microb2010/mainboard/strat_corn.h
+++ b/
projects/microb2010/mainboard/strat_corn.h
@@
-21,11
+21,11
@@
*/
#define LINE_UP 0
*/
#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;
struct line_2pts {
point_t p1;
@@
-33,7
+33,8
@@
struct line_2pts {
};
/* there is a corn near */
};
/* 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 */
/* go from line num1,dir1 to line num2,dir2. Uses trjectory flags
* specified as argument and return END_xxx condition */