From e15ad6caf67f67cf7a272cdbdd2c3bbaddfdd26e Mon Sep 17 00:00:00 2001 From: Ken Walker Date: Sun, 20 Nov 2016 15:27:25 -0500 Subject: [PATCH] Added readLatDeg() and readLonDeg() --- firmware/AssetTracker.cpp | 8 ++++++++ firmware/AssetTracker.h | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) 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