diff --git a/README.md b/README.md index 9df3242..8b60510 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,32 @@ -# SFE_GPS_Tracker_Tutorial +SFE GPS Tracker Tutorial +======================================== + GPS Tracker module tutorial project to help teach and improve beginners' GPS knowledge and capabilities. + + + + + +
+ To visit the full Sparkfun Tutorial go [here](https://learn.sparkfun.com/tutorials/gps-geo-mapping-at-the-push-of-a-button). -If you'd like to learn more about GPS, Sparkfun has a page dedicated to the learning and use of GPS: [Sparkfun GPS](https://www.sparkfun.com/gps) +If you'd like to learn more about GPS, Sparkfun has a page dedicated to the learning and use of GPS: [Sparkfun GPS](https://www.sparkfun.com/gps). + + +Repository Contents +------------------- + +* **/Source** - Arduino example code + +Documentation +-------------- +* **Library** - Arduino libraries used + * **[Micro OLED](https://github.com/sparkfun/SparkFun_Micro_OLED_Arduino_Library)** + * **[u-blox GNSS](https://github.com/sparkfun/SparkFun_u-blox_GNSS_Arduino_Library)** +* **[Project Guide](https://learn.sparkfun.com/tutorials/gps-geo-mapping-at-the-push-of-a-button)** + ## Community Improvements and Feedback diff --git a/Source/GPS_Mach2.ino b/Source/GPS_Mach2/GPS_Mach2.ino similarity index 93% rename from Source/GPS_Mach2.ino rename to Source/GPS_Mach2/GPS_Mach2.ino index b937ae1..1fb63f4 100644 --- a/Source/GPS_Mach2.ino +++ b/Source/GPS_Mach2/GPS_Mach2.ino @@ -1,5 +1,5 @@ /****************************************************************************** -Google Earth KML GPS Position Logger v1.6 +Google Earth KML GPS Position Logger v1.7 brandon.williams@sparkfun.com May 6, 2019 @@ -13,7 +13,7 @@ card to retrive the file and open using Google Earth. Resources: SFE MicroOLED library: SFE_MicroOLED.h -SFE Ublox GPS library: http://librarymanager/All#SparkFun_Ublox_GPS +SFE u-blox GNSS library: //http://librarymanager/All#SparkFun_u-blox_GNSS Arduino SD required libraries: SPI.h & SD.h Download Google Earth: https://www.google.com/earth/versions/ @@ -30,13 +30,13 @@ Board Definition Packages: //OLED and Ublox libraries #include #include -#include "SparkFun_Ublox_Arduino_Library.h" +#include //http://librarymanager/All#SparkFun_u-blox_GNSS #define PIN_RESET 9 //OLED #define DC_JUMPER 1 //OLED //create objects -SFE_UBLOX_GPS myGPS; +SFE_UBLOX_GNSS myGNSS; MicroOLED oled(PIN_RESET, DC_JUMPER); File dataFile; @@ -77,7 +77,7 @@ void setup() { oled.print("Revving up the GPS unit, please wait"); oled.display(); delay(750); - while(myGPS.getLatitude() == 0){ + while(myGNSS.getLatitude() == 0){ oled.clear(PAGE); oled.setCursor(0,0); oled.print("Looking for first fix, please wait"); @@ -108,7 +108,7 @@ void loop() { dataFile.println(""); dataFile.println(""); int state = 0; - myGPS.begin(); + myGNSS.begin(); /* "Continous" (not quite) loop will run until user performs kill action. * * 1. Button is pushed and released, then one coordinate point will add to the file @@ -141,10 +141,10 @@ void loop() { oled.clear(PAGE); oled.display(); - float latitude = myGPS.getLatitude(); + float latitude = myGNSS.getLatitude(); latitude = latitude / 10000000; - float longitude = myGPS.getLongitude(); + float longitude = myGNSS.getLongitude(); longitude = longitude / 10000000;