if you ask for an altitude reading, getGPS will return false if there isn't a 3D fixīoolean gps_success = fona.getGPS(&latitude, &longitude, &speed_kph, &heading, &altitude) Serial.println(F("Couldn't find FONA")) įloat latitude, longitude, speed_kph, heading, speed_mph, altitude Serial.println(F("Adafruit FONA 808 & 3G GPS demo")) ![]() Adafruit_FONA_3G fona = Adafruit_FONA_3G(FONA_RST) Have a FONA 3G? use this object type instead HardwareSerial *fonaSerial = &Serial1 Īdafruit_FONA fona = Adafruit_FONA(FONA_RST) SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX) (because softserial isnt supported) comment out the following three lines standard pins for the shield, adjust as necessary * This example is meant to work with the Adafruit I'm trying to get rid of everything that isn't the line starting with "GPS Error.". The error part that I'm outputting is showing up correctly, but the AT codes are also displaying on the serial monitor and I can't figure out how to suppress them. I have modified the Adafruit Fona GPS example file to show the error between my location and GPS and GSM locations that it collects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |