/*Below is a list of common commands that you might find useful for setting up the GPS You can copy these lines into your setup() function. Then you just need to uncomment appropriate line to send that command to the GPS NOTE this commands assume you named your Adafruit_GPS variable GPS, if you gave it a different name you will need to change the name in all of the commands*/ //Commands change how often the NMEA sentences will be output //NMEA updates every 1 second //GPS.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ); //NMEA updates every 0.5 second //GPS.sendCommand(PMTK_SET_NMEA_UPDATE_2HZ); //NMEA updates every 5 second //GPS.sendCommand(PMTK_SET_NMEA_UPDATE_200_MILLIHERTZ); /* These commands change NMEA sentence(s) will be output but each of thse commands will overwrite the previous setting so the last command sent will determin the actual configuration*/ //Each of these sentences turn off all of the possible outputs except for 1 NMEA //GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_GGAONLY); //GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCONLY); //GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_GLLONLY); //GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_VTGONLY); //GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_GSAONLY); //GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_GSVONLY); /*This commands turns off everything but the RMC and GGA RMC + GGA is a useful combination because it gives full position information (Latitude, Longitude, and Altitude) as well as Time (Hours, Minutes, Seconds) and the full date (Days, months, years)*/ //GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA); //This commands turn on all outputs that the GPS supports //GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_ALLDATA); //This command turns off all of the NMEA sentences //GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_OFF);