Pierre Provent / Mbed 2 deprecated Filtre_RIF_Temps_Differe_Sauve_USB_Nucleo_F429ZI

Dependencies:   mbed USBHost

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] ;
         }