-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPaulNovackGlobals.h
More file actions
58 lines (48 loc) · 1.24 KB
/
PaulNovackGlobals.h
File metadata and controls
58 lines (48 loc) · 1.24 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef GLOBALS_H
#define GLOBALS_H
#include <sys/stat.h>
using namespace std;
namespace PaulNovack {
constexpr float PI = 3.14159265358979323846f;
const float EARTH_RADIUS_KM = 6371.0; // Earth's radius in kilometers
const float MILES_PER_KM = 0.621371;
const float NAUTICAL_MILES_PER_KM = 0.539956803;
struct TurnData {
float degrees;
std::string direction;
};
struct LatLong {
float latitude;
float longitude;
};
struct WayPoint {
int id;
std::string name;
std::string description;
float latitude;
float longitude;
float depth;
};
struct NavData {
float _latitude;
float _longitude;
float _heading;
float _destHeading;
float _destLatitude;
float _destLongitude;
float _rHTurn;
float _lHTurn;
string _turnDirection;
float _turnDegrees;
int _stepsPerCorrection;
float _speedKnots;
float _speedMPH;
float _headingDeviation;
float _milesToDestination;
int _goBackSecondsSpeedCalculation;
bool _usingGoBackSecondsSpeedCalculation;
string _hdop;
string _pdop;
};
}
#endif // LATLONG_H