Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: PingDetect/PingDetect.h
- 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;