Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • @slash-dev i am tryng to go deep, and understanding the entire code, sorry for my noob questions. 1) Why in your code you use AltSoftSerial and SoftwareSerial.h ? 2) Why did you create two objects "gps" and "Fix" i also read the documentation on github Thanks for your time! Commented May 8, 2017 at 15:23
  • @uomodellamansarda, read point 2 in my answer. SoftwareSerial is very inefficient, so you should use something else. Read more about it here. The gps object is responsible for reading chars from gpsPort and creating fix structures for you to read (just like TinyGPS++). The fix object holds on to all the GPS values that were parsed from the gpsPort. Calling gps.read() fills out the fix object (it's a local copy for you to use anywhere in your sketch). You can use various pieces of that object, like fix.latitude(). Commented May 8, 2017 at 16:03
  • @slash-dev my noob mistake, thanks for sharing the link! :) Commented May 9, 2017 at 7:53