NetBurner 3.5.6
PDF Version
GPSLocation.h
1#pragma once
2
3class GPSLocation
4{
5 public:
6 GPSLocation();
7
8 // Internal storage in decimal degrees
9 float latitude; // Positive = North, Negative = South
10 float longitude; // Positive = East, Negative = West
11
12 // Set using NMEA ddmm.mmmm string + hemisphere
13 void setLatitudeNMEA(const char *value, char hemisphere);
14 void setLongitudeNMEA(const char *value, char hemisphere);
15
16 // Get formatted output
17 void getFormattedLat(char *buffer); // "33.01.104'N"
18 void getFormattedLon(char *buffer); // "117.04.795'W"
19 void getDecimalLat(char *buffer); // "33.01841"
20 void getDecimalLon(char *buffer); // "-117.07993"
21};