From b38a6f0cfb10c91b6275420964a7c7782cb159b0 Mon Sep 17 00:00:00 2001 From: "Ho Yun \"Bobby\" Chan" Date: Thu, 28 Jan 2021 20:53:57 -0700 Subject: [PATCH 1/5] Update GPS_Mach2.ino - update library to the latest SparkFun u-blox GNSS Arduino Library v2.0 - update instances of objects --- Source/GPS_Mach2.ino | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/GPS_Mach2.ino b/Source/GPS_Mach2.ino index b937ae1..6e69b85 100644 --- a/Source/GPS_Mach2.ino +++ b/Source/GPS_Mach2.ino @@ -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; From 92cb2d9d162f525aba7d09b2b7aba6208da8017d Mon Sep 17 00:00:00 2001 From: "Ho Yun \"Bobby\" Chan" Date: Thu, 28 Jan 2021 20:55:16 -0700 Subject: [PATCH 2/5] Move example code into folder to open with Arduino --- Source/{ => GPS_Mach2}/GPS_Mach2.ino | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Source/{ => GPS_Mach2}/GPS_Mach2.ino (100%) diff --git a/Source/GPS_Mach2.ino b/Source/GPS_Mach2/GPS_Mach2.ino similarity index 100% rename from Source/GPS_Mach2.ino rename to Source/GPS_Mach2/GPS_Mach2.ino From 586c131b4652c1fd3f1bdee813b3ec01207b6dbc Mon Sep 17 00:00:00 2001 From: "Ho Yun \"Bobby" Date: Thu, 28 Jan 2021 20:59:25 -0700 Subject: [PATCH 3/5] Update README.md --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9df3242..c6ac291 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,26 @@ -# 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) + +Repository Contents +------------------- + +* **/Source** - 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 I would love to here suggestion and modification for the software, should you choose to submit some! Feel free to submit pull requests! Major improvements and special recognitions will be featured below and detailed in the project log. Good luck and have fun! From 7c670526f7966659f8d0c63c20761e08c16fa492 Mon Sep 17 00:00:00 2001 From: "Ho Yun \"Bobby" Date: Fri, 29 Jan 2021 03:03:57 -0700 Subject: [PATCH 4/5] Update README.md --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c6ac291..8b60510 100644 --- a/README.md +++ b/README.md @@ -3,15 +3,22 @@ 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** - Example code +* **/Source** - Arduino example code Documentation -------------- From b9497b66a29a286ad08b82b80b3c0aab52fe6686 Mon Sep 17 00:00:00 2001 From: "Ho Yun \"Bobby" Date: Fri, 29 Jan 2021 03:09:44 -0700 Subject: [PATCH 5/5] Update GPS_Mach2.ino update version number of code with updated GNSS library version --- Source/GPS_Mach2/GPS_Mach2.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/GPS_Mach2/GPS_Mach2.ino b/Source/GPS_Mach2/GPS_Mach2.ino index 6e69b85..1fb63f4 100644 --- a/Source/GPS_Mach2/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