wu

Dependencies:   mbed-rtos mbed

Fork of CCC by kao yi

Revision:
13:63f9a5101205
Parent:
12:fdada4af384a
Child:
14:2d90b0066fc6
--- a/camera_api.cpp	Sat Jun 28 06:33:28 2014 +0000
+++ b/camera_api.cpp	Sat Jun 28 08:37:06 2014 +0000
@@ -3,14 +3,14 @@
 
 #define clk 2  //ms
 
-BX_camera::BX_camera(void)
+BX_camera::BX_camera(int p)
 {
 
     line_CamR = new FastAnalogIn(PTD5);
     line_CamL=   new FastAnalogIn(PTD6,0);
     cam_clk=new DigitalOut(PTE1);
     si=new DigitalOut(PTD7);
-
+    padding = p;
 }
 
 int BX_camera::black_centerR(void)
@@ -331,7 +331,7 @@
             break;
     }
 
-    return center;
+    return (center+padding);
    
 }