Giter VIP home page Giter VIP logo

gps-neo-6m's Introduction

GPS Library Arduino alt text

Using Software Serial library.

Website - More info, and you can leave a comment.

Protocol NMEA

NMEA consists of sentences, the first word of which, called a data type, defines the interpretation of the rest of the sentence. There are many sentences in the NMEA standard for all kinds of devices that may be used in a Marine environment. Someones are this:

  • GPRMC (Recommended Minimum data) // (at the moment this is implemented.)
  • GPGGA (Global positioning system fix data)
  • GPGSA (GNSS DOP and Active Satellites)
  • GPGLL (Latitude and longitude, with time of position fix and status)

Tested with

  • GPS-NEO-6M

Capabilities of the library

Constructors

They can call the class wih differents parameters as necessary.

Constructors Notes
Gpsneo() The class initialize with the default values
Gpsneo ( rx ,tx ) Parameters of the Software Serial Port
Gpsneo ( rx, tx, baudrate) Parameters of the Software Serial Port

Example of constructors:

Gpsneo gps(); //default parameters
Gpsneo gps(10,11); // set rx and tx pin
Gpsneo gps(10,11,9600); //set rx,tx and baudrate
Public Methods Notes
getDataGPRMC (parameters) See below
Google (char *link) Return in *link the complete link for google maps with latitude and longitude
convertLatitude (char *latitude) Convert latitude ddmm.mmmm in dd.dddd
convertLongitude (char *destination) Convert longitude dddmm.mmm in dddd.ddd
Get data with GPRMC sentence:
  • Return all data of the sentence:

    getDataGPRMC (char *time,char * status,char * latitude,char *latitudHemisphere, char * longitude, char * longitudeMeridian,char * speedKnots,char * trackAngle,char * date,char * magneticVaration, char * magneticVarationOrientation)

  • if you don't want all the data, you can use at this way:

    getDataGPRMC (char * latitude, char * latitudHemisphere ,char * longitude,char * longitudeMeridian)

  • This methods check the checksum, if the checksum fail, or it can't read the sentence return Null values for all the parameters.

Google function:

This function solve everything to get a link for google maps with the coords. Example:

char link[50];
gps.Google(char * link);
Serial.println(link);

The output will be:

http://www.google.com/maps/place/-34.9139980,-57.9376300
http://www.google.com/maps/place/-34.9140240,-57.9375800

Or if can't read a Lat. and Long the output will be

http://www.google.com/maps/place/-1,-1

gps-neo-6m's People

Contributors

cristiansteib avatar t04glovern avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.