Skip to content

Commit

Permalink
Added readLatDeg() and readLonDeg()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwalker committed Nov 20, 2016
1 parent 456556c commit e15ad6c
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 e15ad6c

Please sign in to comment.