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:
- 19:3da2ac9aa081
- Parent:
- 18:0ced1be44292
- Child:
- 20:7e8aa8bbe773
--- a/main.cpp Thu Mar 23 15:36:38 2017 +0000 +++ b/main.cpp Thu Mar 23 15:47:05 2017 +0000 @@ -64,8 +64,8 @@ { bearing = 360 + bearing; } - lcd.printf("Bearing: %.2f, %.1f\n", bearing, gps.rtime); - fprintf(Comp, "%.2f\r\n", bearing); + fprintf(Comp, "%.2f, %.1f\r\n", bearing, gps.rtime); + lcd.printf("Bearing: %.2f, \n", bearing); i++; fclose(Accel);