Task 4.3.5 Solution

Fork of Task435Solution by Nicholas Outram

Revision:
3:84dbfb7f1896
Parent:
0:e6cfe26c00ef
--- 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