Project

General

Profile

Revision 1961

Added new linefollowing code for barcodes.

Debug statements are still included, but this is the latest version of the code.

Bot14 at least reads all barcodes consistently. Thresholds may have to be adjusted for other robots.

View differences:

lineFollow.h
20 20
//! Number of consecutive white barcode readings before a barcode reset.
21 21
#define TIMEOUT_DURATION    1000
22 22
//! Anything lower than this value is white
23
#define GREY_THRESHOLD 100
23
#define GREY_THRESHOLD 500
24 24
//! Anything higher than this value is black
25
#define BLACK_THRESHOLD 400
25
#define BLACK_THRESHOLD 750
26 26

  
27 27
#define NUM_READINGS 20
28 28

  

Also available in: Unified diff