Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of 7_7Boboobooo by
Diff: camera_api.cpp
- Revision:
- 7:f04bde0ca846
- Parent:
- 6:b046d6ff3745
- Child:
- 9:a891053657f3
--- 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;
