Moved to Team 9.

Fork of LineScan by Nicholas Gan

Revision:
35:ac9f45bd5352
Parent:
33:cc3810ac5365
Child:
36:ad1f3321ec84
--- a/LineScan.cpp	Fri Nov 13 02:23:16 2015 +0000
+++ b/LineScan.cpp	Mon Nov 16 21:53:01 2015 +0000
@@ -1,9 +1,9 @@
 #include "LineScan.h"
 #include <string.h>
 
-#define THRESH 1000
+#define THRESH 2000
 
-#define MEAN_REF 10000      //ideal mean we should see
+#define MEAN_REF 20000      //ideal mean we should see
 #define CAM_CTRL_GAIN 0.0003 //should be small
 
 #define NEUTRAL 0
@@ -157,7 +157,7 @@
             //if interval is black on white, advance the pointer for the peak array
             //width needs to be larger than 2 pixels wide to be a good read.
             
-            if(*h_walker > *l_walker && (*h_walker - *l_walker) < 10 && (*h_walker - *l_walker) > 2){
+            if(*h_walker > *l_walker && (*h_walker - *l_walker) < 15 && (*h_walker - *l_walker) > 2){
                 out = ((float)(*h_walker + *l_walker)) / (2.0 * (float)frameLen);    //0.5 is center
                 *numLines++;
                 l_walker--;