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.
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 |
diff -r 6713f0de8967 -r 84dbfb7f1896 main.cpp --- 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