chia-hsun wu / Mbed 2 deprecated Boboobooov6

Dependencies:   mbed-rtos mbed

Fork of Boboobooov5 by kao yi

Files at this revision

API Documentation at this revision

Comitter:
fhcrcmars
Date:
Fri Jul 11 07:44:10 2014 +0000
Parent:
21:9b00595af99a
Commit message:
test camera line bits

Changed in this revision

camera_api.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/camera_api.cpp	Sun Jul 06 12:37:48 2014 +0000
+++ b/camera_api.cpp	Fri Jul 11 07:44:10 2014 +0000
@@ -19,14 +19,14 @@
 int BX_camera::black_centerR(void)
 {
 
-    int l_care=5;
-    int r_care=123;
+    int l_care=10;
+    int r_care=64;
     int b_start=0;
     int b_end=0;
     bool l_f1=false;
     bool l_f2=false;
     bool find=false;
-    int b_thr_up=15;
+    int b_thr_up=20;
     int b_thr_dn=3;
     int b_w=0;
     
@@ -66,14 +66,14 @@
 int BX_camera::black_centerL(void)
 {
 
-    int l_care=10;
-    int r_care=123;
+    int l_care=64;
+    int r_care=115;
     int b_start=0;
     int b_end=0;
     bool l_f1=false;
     bool l_f2=false;
     bool find=false;
-    int b_thr_up=15;
+    int b_thr_up=20;
     int b_thr_dn=3;
     int b_w=0;
     
--- a/main.cpp	Sun Jul 06 12:37:48 2014 +0000
+++ b/main.cpp	Fri Jul 11 07:44:10 2014 +0000
@@ -129,7 +129,7 @@
     //servo.set_angle(0.055);
     pc.baud(115200);
        
-   // Thread th_c(cam_thread);
+    Thread th_c(cam_thread);
     Thread th_de(de_thread);
     
     while(1){