Revision 1945
Changed to use Alex's barcode code.
lineFollow.h | ||
---|---|---|
15 | 15 |
#define NOLINE -50 |
16 | 16 |
#define FULL_LINE -51 |
17 | 17 |
|
18 |
// Number of consecutive barcode color readings to establish a significant |
|
19 |
// reading. |
|
18 |
//! Number of consecutive barcode color readings for a significant reading. |
|
20 | 19 |
#define MAX_DURATION 20 |
20 |
//! Number of consecutive white barcode readings before a barcode reset. |
|
21 |
#define TIMEOUT_DURATION 1000 |
|
22 |
//! Anything lower than this value is white |
|
23 |
#define GREY_THRESHOLD 100 |
|
24 |
//! Anything higher than this value is black |
|
25 |
#define BLACK_THRESHOLD 350 |
|
21 | 26 |
|
22 | 27 |
/** |
23 | 28 |
* @brief Initializes line following. |
Also available in: Unified diff