programma voor filter

Dependencies:   MODSERIAL mbed

Fork of BMT-K9-Groep7 by First Last

Files at this revision

API Documentation at this revision

Comitter:
vsluiter
Date:
Thu Oct 17 09:23:51 2013 +0000
Parent:
0:3843c26cd5fd
Child:
2:60fc72e8ff66
Commit message:
Mijn eigen fout gecorrigeerd

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 17 08:29:57 2013 +0000
+++ b/main.cpp	Thu Oct 17 09:23:51 2013 +0000
@@ -64,7 +64,7 @@
         {   sig_out_biceps = sqrt(square_biceps/count);
             mean_biceps = sum_biceps/count;
             count= 0; square_biceps = 0; sum_biceps = 0; // en neem de RMS als er genoeg zijn geteld, stuur die door, en reset sqaure en count
-            if(pc.rxBufferGetSize(0)-pc.rxBufferGetCount() > 30)
+            if(pc.txBufferGetSize(0)-pc.txBufferGetCount() > 30)
                 pc.printf("%.6f\n",sig_out_biceps);
          }
 }