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:
- 20:7e8aa8bbe773
- Parent:
- 19:3da2ac9aa081
- Child:
- 21:1990400ca172
- Child:
- 22:00c0fc25c701
diff -r 3da2ac9aa081 -r 7e8aa8bbe773 main.cpp --- a/main.cpp Thu Mar 23 15:47:05 2017 +0000 +++ b/main.cpp Thu Mar 23 16:01:27 2017 +0000 @@ -37,7 +37,7 @@ ax=MMA.x(); ay=MMA.y(); az=MMA.z(); - fprintf(Accel,"%f, %f, %f, %.1f\r\n",ax,ay,az, gps.rtime); + fprintf(Accel,"%f, %f, %f\r\n",ax,ay,az); lcd.locate(1,21); lcd.printf("Accel: %.2f, %.2f, %.2f", ax, ay, az); @@ -64,7 +64,7 @@ { bearing = 360 + bearing; } - fprintf(Comp, "%.2f, %.1f\r\n", bearing, gps.rtime); + fprintf(Comp, "%.2f\r\n", bearing); lcd.printf("Bearing: %.2f, \n", bearing); i++;