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:
- 23:a18546936800
- Parent:
- 22:00c0fc25c701
--- a/main.cpp Thu Mar 23 16:38:02 2017 +0000 +++ b/main.cpp Thu Mar 23 16:41:11 2017 +0000 @@ -59,7 +59,7 @@ // Compass Comp = fopen("/USB/Compass.csv", "a"); lcd.locate(1,11); - bearing = (compass.readBearing()/10) - 165; + bearing = (compass.readBearing()/10) - 165; // (165 = predetermined offset to align with magnetic north) if (bearing < 0) { bearing = 360 + bearing;