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.
Diff: main.cpp
- Revision:
- 1:57cbaf8ad75d
- Parent:
- 0:4b0a6dfae5e4
- Child:
- 2:780f53baa659
--- a/main.cpp Thu Oct 22 12:19:02 2020 +0000
+++ b/main.cpp Thu Oct 22 16:29:28 2020 +0000
@@ -79,7 +79,7 @@
wait(1) ; // Attendre une seconde pour remplir le buffer signal in[]
drive_ADC.detach() ;
// Convolution avec filtre RIF
- for (int i = 0; i < TAILLE_TAB - NB_COEFF ; i++ ) {
+ for (int i = 0; i <= TAILLE_TAB - NB_COEFF ; i++ ) {
for (int j = 0 ; j < NB_COEFF ; j++) {
out[i] += coeff_filtre[j]*in[i - j + NB_COEFF -1] ;
}