-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGPSUtils.h
More file actions
39 lines (32 loc) · 1.03 KB
/
GPSUtils.h
File metadata and controls
39 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef GPSUTILS_H
#define GPSUTILS_H
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <thread>
#include <chrono>
#include <iomanip>
#include <iostream>
#include <cmath>
#include "PaulNovackGlobals.h"
using namespace std;
namespace PaulNovack {
class GPSUtils {
public:
GPSUtils();
GPSUtils(const GPSUtils& orig);
virtual ~GPSUtils();
string trim_leading_zeros(string str);
float getDecimalDegreeFromGPS(string value, string hemisphere);
float degreesToRadians(float degrees);
float calculateDistanceM(const float lat1, const float lon1, const float lat2, const float lon2);
float calculateMPH(int secondsElapsed, float lat1, float lon1,
float lat2, float lon2);
float calculateDistanceNM(const float lat1, const float lon1, const float lat2, const float lon2);
float calculateNMPH(int secondsElapsed, float lat1, float lon1,
float lat2, float lon2);
private:
};
}
#endif /* GPSUTILS_H */