Tummas Tomasson / Mbed 2 deprecated PingDetector_mbedadc

Dependencies:   mbed

Revision:
1:227db871d328
Parent:
0:efb27fbc92c0
--- a/PingDetect/PingDetect.h	Mon Jul 30 09:57:42 2012 +0000
+++ b/PingDetect/PingDetect.h	Tue Aug 21 14:23:03 2012 +0000
@@ -1,7 +1,6 @@
-/*  
-    
-    
- */
+/*
+    Program to control the system. 
+*/
  
 #ifndef PINGDETECT_H
 #define PINGDETECT_H
@@ -14,7 +13,7 @@
 
 class PingDetect {
 public:
-    PingDetect () : pc(USBTX, USBRX), adc(mbedSAMPLE_RATE,1), l0(LED1), local("local"),TempCmd(0) {
+    PingDetect () : pc(USBTX, USBRX), adc(mbedSAMPLE_RATE,1), local("local"),TempCmd(0) {
         pc.baud(921600);
         
         //Set up ADC on pin 20
@@ -32,7 +31,9 @@
     }
     int Search();
     /*  
-        
+        Samples data from the filter and checks it the pinger frequency
+        is above the defined threshold.
+            returns 
     */
     
     void Run();
@@ -57,7 +58,6 @@
     Serial pc;
     FFT fft;
     mbedADC adc;
-    DigitalOut l0;
     LocalFileSystem local;
     char TempCmd;
     int i,k, no;