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.
Dependencies: mbed
Repository for the 2015 OhmBoyZ Capstone group.
Revision 15:478a1f3ad7c2, committed 2015-12-08
- Comitter:
- Krabby127
- Date:
- Tue Dec 08 02:59:10 2015 +0000
- Parent:
- 14:9748a17f6bce
- Child:
- 16:65b7b24fe260
- Commit message:
- Corrected from uT to mT
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Dec 08 02:32:02 2015 +0000 +++ b/main.cpp Tue Dec 08 02:59:10 2015 +0000 @@ -18,8 +18,8 @@ //VVOUT is with reference to REFIN // 0 Tesla is VDD/2 // 12.2 mA/mT - printf("b = %fuT\n\r",b); // Print out b field measure in micro-Tesla - printf("b = %f Gauss\n\r", b/100.0); // Output B field in Gauss + printf("b = %fuT\n\r",b*1000.0); // Print out b field measure in micro-Tesla + printf("b = %f Gauss\n\r", b/100000.0); // Output B field in Gauss if (meas > 1.65) { // If the value is greater than 1.65V then switch the LED on // positive magnetic field led = 1;