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
Diff: main.cpp
- Revision:
- 2:86c3cb25577b
- Parent:
- 1:917ca6b5d9d9
diff -r 917ca6b5d9d9 -r 86c3cb25577b main.cpp --- a/main.cpp Fri Jul 18 20:24:45 2014 +0000 +++ b/main.cpp Mon Jul 21 00:58:34 2014 +0000 @@ -16,13 +16,14 @@ #include "Settings.h" #include "Capture.h" #include "Http_post.h" -#include "CommTCP.h" +//#include "CommTCP.h" #include "SignalProcessor.h" #include "EventDetector.h" +#include "limites.h" -#include "TelnetServer.h" +//#include "TelnetServer.h" - +//__attribute((section("AHBSRAM0"),aligned)) char LargeBuffer[1024]; EthernetInterface eth; void thread1(void const *args) @@ -129,6 +130,8 @@ //Start HTTP POST service Thread http_post(HttpPost::HttpPost_Thread); + DisplayRAMBanks(); + //Start TCP daemon service //Thread TcpService(CommTCP::CommTCP_Thread); @@ -148,7 +151,10 @@ printf("SEN%d = %f, COS%d = %f\n",i,sen[i],i,cos[i]); } */ - printf("Nova versao [6]\n\n"); + printf("Nova versao [8]\n\n"); + + //printf("0x%lx\n", LargeBuffer); + //Jump to the capture routine(will run on this thread) thread1(NULL);