forked from particle-iot/ElectronAssetTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAssetTracker.h
67 lines (57 loc) · 1.04 KB
/
AssetTracker.h
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
59
60
61
62
63
64
65
66
67
#ifndef AssetTracker_h
#define AssetTracker_h
#include "application.h"
#include "math.h"
#include "Adafruit_GPS.h"
#include "Adafruit_LIS3DH.h"
class AssetTracker {
public:
AssetTracker();
void
begin(void),
updateGPS(void),
gpsOn(void),
gpsOff(void);
int
readX(void),
readY(void),
readZ(void),
readXYZmagnitude(void);
float
readLat(void),
readLon(void),
readLatDeg(void),
readLonDeg(void),
readHDOP(void),
getGpsAccuracy(void),
getSpeed(),
getGeoIdHeight(),
getAltitude();
bool
antennaInternal(void),
antennaExternal(void),
gpsFix(void);
char
checkGPS(void),
*preNMEA(void);
String
readLatLon(void);
bool
setupLowPowerWakeMode(uint8_t movementThreshold = 16);
uint8_t
getHour(),
getMinute(),
getSeconds(),
getYear(),
getMonth(),
getDay(),
getSatellites(),
getFixQuality(),
clearAccelInterrupt();
uint16_t
getMilliseconds();
uint32_t
getGpsTimestamp();
private:
};
#endif // AssetTracker_h