diff --git a/firmware/AssetTracker.cpp b/firmware/AssetTracker.cpp index fb40a0b..6b85b48 100644 --- a/firmware/AssetTracker.cpp +++ b/firmware/AssetTracker.cpp @@ -33,6 +33,14 @@ float AssetTracker::readLon(){ return gps.longitude; } +float AssetTracker::readLatDeg(){ + return gps.latitudeDegrees; +} + +float AssetTracker::readLonDeg(){ + return gps.longitudeDegrees; +} + String AssetTracker::readLatLon(){ String latLon = String::format("%f,%f",gps.latitudeDegrees,gps.longitudeDegrees); return latLon; diff --git a/firmware/AssetTracker.h b/firmware/AssetTracker.h index 220c724..f1c46e1 100644 --- a/firmware/AssetTracker.h +++ b/firmware/AssetTracker.h @@ -22,7 +22,9 @@ class AssetTracker { readXYZmagnitude(void); float readLat(void), - readLon(void); + readLon(void), + readLatDeg(void), + readLonDeg(void); bool gpsFix(void); char