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