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