Skip to content

Commit

Permalink
Merge pull request particle-iot#14 from kenwalker/master
Browse files Browse the repository at this point in the history
Added readLatDeg() and readLonDeg()
  • Loading branch information
jenesaisdiq authored Nov 21, 2016
2 parents 456556c + e15ad6c commit cec605a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions firmware/AssetTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion firmware/AssetTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ class AssetTracker {
readXYZmagnitude(void);
float
readLat(void),
readLon(void);
readLon(void),
readLatDeg(void),
readLonDeg(void);
bool
gpsFix(void);
char
Expand Down

0 comments on commit cec605a

Please sign in to comment.