Clark Lin
/
0709
QQQQQQQ
Fork of 7_7Boboobooo by
Diff: camera_api.cpp
- Revision:
- 7:f04bde0ca846
- Parent:
- 6:b046d6ff3745
- Child:
- 9:c318ee86d6e9
--- a/camera_api.cpp Mon Jul 07 08:16:46 2014 +0000 +++ b/camera_api.cpp Mon Jul 07 15:23:50 2014 +0000 @@ -14,31 +14,28 @@ int BX_camera::black_centerR(void){ - int black_R_left = 0; + int black_R = 0; for(int i = 120; i >=8; i--){ if(sign_line_imageR[i] == 'O' && sign_line_imageR[i-1] == ' ' && sign_line_imageR[i-2] == ' '){ return i; } } - return black_R_left; + return black_R; } - - - int BX_camera::black_centerL(void){ - int black_L_right = 128; + int black_L = 128; for(int i = 8; i <121 ; i++){ if(sign_line_imageL[i] == 'O' && sign_line_imageL[i+1] == ' ' && sign_line_imageL[i+2] == ' '){ return i; } } - return black_L_right; + return black_L;