Real-time bike tracker using Adafruit Ultimate GPS, Huzzah wifi, and Pubnub

Dependencies:   MBed_Adafruit-GPS-Library mbed

Files at this revision

API Documentation at this revision

Comitter:
ECE4180
Date:
Fri Apr 21 01:03:26 2017 +0000
Parent:
4:e20e2500914f
Child:
6:5bc3eeabdca3
Commit message:
Working, Manual fixing of GPS coordinates;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Apr 21 00:37:35 2017 +0000
+++ b/main.cpp	Fri Apr 21 01:03:26 2017 +0000
@@ -114,7 +114,9 @@
             refresh_Timer.reset();
             if (myGPS.fix) {
                 publat = dms_convert(myGPS.latitude);
+                publat -= 0.003125; //Manual correction of GPS accuracy
                 publong = dms_convert(myGPS.longitude);
+                publong -= 0.007217; //Manual correction of GPS accuracy
                 pc.printf("DD Old Lat: %f, DD Old Long: %f \r\nDD New Lat %f, DD New Long %f\r\n",oldlat, oldlong, publat, publong);
                 if (publat != oldlat || publong !=oldlong) {
                     //pc.printf("DMS Lat: %f%c, DMS Long: %f%c\r\n",myGPS.latitude, myGPS.lat, myGPS.longitude, myGPS.lon);