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 BX-car by
Diff: camera_api.cpp
- Revision:
- 12:f7acda4545ba
- Parent:
- 10:d2401a243e8d
diff -r 6189b2fc618a -r f7acda4545ba camera_api.cpp
--- a/camera_api.cpp Wed Jun 25 05:50:03 2014 +0000
+++ b/camera_api.cpp Mon Jun 30 02:07:57 2014 +0000
@@ -21,7 +21,7 @@
int black_left , black_right;
for(int i = 10; i < 115; i++){
- if(sign_line_imageR[i] == 'O' && sign_line_imageR[i+1] == ' ' && sign_line_imageR[i+2] == ' '){
+ if(sign_line_imageR[i] == ' ' && sign_line_imageR[i+1] == ' ' && sign_line_imageR[i+2] == ' '){
black_left = i;
break;
}
@@ -190,7 +190,7 @@
//input 128 //both
- for(int i=127; i>=0; i--) {
+ for(int i=0; i<128; i++) {
*cam_clk=1;
wait_us(5);
@@ -226,7 +226,7 @@
//filter L R //may change
- for(int i=127; i>=0; i--) {
+ for(int i=0; i<128; i++) {
if( (line_imageR[i]-b_f_vR) < (w_f_vR - line_imageR[i] ) )
