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.
Dependencies: mbed freescal_cup_k22f
Diff: source/Camera.cpp
- Revision:
- 25:f9d3d30cbb5d
- Parent:
- 21:9430357e777c
- Child:
- 26:a836e62e0c98
--- a/source/Camera.cpp Sat Jan 17 20:58:26 2015 +0000 +++ b/source/Camera.cpp Wed Jan 21 10:30:39 2015 +0000 @@ -10,8 +10,8 @@ -extern unsigned int pixel1[128]= {0}; // -extern unsigned int pixel2[128]= {0}; // +extern unsigned int pixel1[128]= {0},pixel1_prec[128]= {0}; // +extern unsigned int pixel2[128]= {0},pixel2_prec[128]= {0}; // void readline(void) // fonction de détection de la ligne { @@ -31,7 +31,7 @@ if ( (compteur & 1) && compteur >= 7) { // mesure sur front descendant, // pc.printf("lecture pixel\n"); pixel1[index_pixel]=pix1.read_u16(); - pixel2[index_pixel]=pix2.read_u16(); + pixel2[127 - index_pixel]=pix2.read_u16(); index_pixel ++; } wait_us(10); @@ -40,7 +40,7 @@ if (index_pixel == 128) capture_finie = 1; } - wait_ms(1); + wait_ms(100); } void passebas(int ordre) @@ -101,4 +101,13 @@ pixel2[i]=tamponpixel2[i]; } -} \ No newline at end of file +} +/* +void moyenne_temporel() +{ + pixel1_prec[128]= {0} + + + + } + */ \ No newline at end of file