Revision 1997
Added auto-calibration for barcode reading.
lineFollow.h | ||
---|---|---|
21 | 21 |
#define MAX_DURATION 20 |
22 | 22 |
//! Number of consecutive white barcode readings before a barcode reset. |
23 | 23 |
#define TIMEOUT_DURATION 1000 |
24 |
//! Anything lower than this value is white |
|
25 |
#define GREY_THRESHOLD 500 |
|
26 |
//! Anything higher than this value is black |
|
27 |
#define BLACK_THRESHOLD 750 |
|
28 | 24 |
|
29 | 25 |
#define NUM_READINGS 20 |
30 | 26 |
|
Also available in: Unified diff