Program to read data from sensors, write them to a file which can then be interpreted by software to help show the path of a bicycle as it travels around a field
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:
- 17:c4ead6f1ebd9
- Parent:
- 16:30f9a5e6abc2
- Child:
- 18:0ced1be44292
--- a/main.cpp Tue Mar 21 15:49:46 2017 +0000 +++ b/main.cpp Tue Mar 21 20:06:13 2017 +0000 @@ -52,7 +52,7 @@ GPS = fopen("/USB/GPS.csv", "a"); if (gps.sample()) { - fprintf(GPS, "%f, %f, %f\r\n", gps.latitude, gps.longitude, gps.rtime); + fprintf(GPS, "%f, %f, %.0f\r\n", gps.latitude, gps.longitude, gps.rtime); lcd.locate(1,1); lcd.printf("GPS: %.4f, %.4f, %f", gps.latitude, gps.longitude, gps.rtime); }