kao yi
/
Bov3
wu
Fork of CCC by
Diff: camera_api.cpp
- Revision:
- 13:63f9a5101205
- Parent:
- 12:fdada4af384a
- Child:
- 14:2d90b0066fc6
diff -r fdada4af384a -r 63f9a5101205 camera_api.cpp --- 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); }