123

Dependencies:   mbed

Fork of Boboobooo by Clark Lin

Revision:
11:9b4788de75fe
Parent:
9:a891053657f3
--- a/camera_api.cpp	Wed Jul 09 15:10:49 2014 +0000
+++ b/camera_api.cpp	Thu Jul 10 06:58:37 2014 +0000
@@ -14,8 +14,8 @@
  
 int BX_camera::black_centerR(void){
        
-    int black_R = 0;
-    for(int i = 120; i >=8; i--){
+    int black_R = 10;
+    for(int i = 118; i >=10; i--){
         if(sign_line_imageR[i] == 'O' && sign_line_imageR[i-1] == ' ' && sign_line_imageR[i-2] == ' '){
             return i;
         }
@@ -29,8 +29,8 @@
 
 int BX_camera::black_centerL(void){
          
-     int black_L = 128;
-     for(int i = 8; i <121 ; i++){
+     int black_L = 118;
+     for(int i = 10; i <118 ; i++){
         if(sign_line_imageL[i] == 'O' && sign_line_imageL[i+1] == ' ' && sign_line_imageL[i+2] == ' '){
             return i;
         }