Versão do protegemed que calcula o tempo em ms da fuga, calcula o numero de onverflow (valores muito baixo) e underflow (valores muito altos). Além disso, calcula um valor médio a partir dos valores capturados e não apenas pela fft.

Dependencies:   EthernetInterface mbed-rtos mbed

Revision:
1:917ca6b5d9d9
Parent:
0:c64e1194230b
Child:
2:86c3cb25577b
diff -r c64e1194230b -r 917ca6b5d9d9 main.cpp
--- a/main.cpp	Wed Jul 09 21:16:23 2014 +0000
+++ b/main.cpp	Fri Jul 18 20:24:45 2014 +0000
@@ -69,7 +69,7 @@
         n++;
         if(n==60)
         {
-            printf("%f %f %f %f %f %f\n",rms[0],rms[1],rms[2],rms[3],rms[4],rms[5]);
+            printf("%.2f %.0f %.2f %.0f\t%.2f %.0f %.2f %.0f\t%.2f %.0f %.2f %.0f\n",rms[0], mv2[0],rms[1],mv2[1],rms[2],mv2[2],rms[3],mv2[3],rms[4],mv2[4],rms[5],mv2[5]);
             led1 = !led1;            
             n=0;    
             //t.stop();
@@ -110,7 +110,7 @@
     //EthernetIf::Connect();
     eth.connect();
     //printf("IP Address is %s\n", EthernetIf::get_IpAddress());
-    printf("IP Address is %s\n", eth.getIPAddress());
+    printf("IP Address is NEW %s\n", eth.getIPAddress());
 
 }