Task 4.3.5 Solution
Fork of Task435Solution by
Revision 3:84dbfb7f1896, committed 2019-09-18
- Comitter:
- noutram
- Date:
- Wed Sep 18 13:52:54 2019 +0000
- Parent:
- 2:6713f0de8967
- Commit message:
- 2019 ; Fixed sampling rate
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Sep 18 13:31:04 2019 +0000
+++ b/main.cpp Wed Sep 18 13:52:54 2019 +0000
@@ -45,7 +45,8 @@
//Write to terminal via Serial interface
pc.printf("%6.4f,%6.4f,%6.4f,%6.4f\n", xPOT[N/2], xLDR[N/2], fPOTAverage, fLDRAverage);
-
+ wait(0.0021); //Allow send time for 30 characters (at 115200 bits / s, 14,400 bytes / s)
+
//Check the threshold
if (fLDRAverage > fPOTAverage) {
binaryOutput = 0; //Binary 000
