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: C12832_lcd FatFileSystemCpp MMA7660 CMPS03 GPS
Fork of MSCUsbHost by
Program to link a compass and a GPS to an MBED to produce a CSV file which can be used to track a bicycle around a field
Results can be found here
Diff: main.cpp
- Revision:
- 13:0dd713c97cd1
- Parent:
- 11:c85911a4c956
- Child:
- 14:d70e165ddf30
--- a/main.cpp Thu Mar 16 17:11:56 2017 +0000 +++ b/main.cpp Mon Mar 20 12:51:10 2017 +0000 @@ -52,9 +52,9 @@ GPS = fopen("/USB/GPS.csv", "a"); if (gps.sample()) { - fprintf(GPS, "\n%f, %f, %f\r\n", gps.latitude, gps.longitude, gps.time); + fprintf(GPS, "\n%f, %f\r\n", gps.latitude, gps.longitude); lcd.locate(1,1); - lcd.printf("%.4f, %.4f, Time: %f", gps.latitude, gps.longitude, gps.time); + lcd.printf("%.4f, %.4f", gps.latitude, gps.longitude); } else // For no signal {