nmea_gps: Added str method for coordinate struct

Provide a method to print out a coordinate structure which can be
dropped into online mapping pages.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2018-06-01 10:20:00 -07:00
parent cdfb68c381
commit 9a959b578c
3 changed files with 13 additions and 0 deletions

View File

@ -79,6 +79,11 @@ namespace upm {
double latitude = 0.0;
/** Longitude in decimal degrees */
double longitude = 0.0;
/**
* Provide a string representation of this structure.
* @return String representing coordinates
*/
std::string __str__();
};
/** Satellite structure definition */