InertiaSDK

Loading...
Searching...
No Matches
GPSConfigSettings.h
1#pragma once
2
3#include "data/config/SensorSpecificSettings.h"
4#include "data/config/SamplerConfig.h"
5
6 namespace inertia
7{
8
10 enum GPSSampleSize {
11 GPS_SAMPLE_SIZE_VALID = 1,
12 GPS_SAMPLE_SIZE_UTC_DATE_TIME = 8,
13 GPS_SAMPLE_SIZE_LAT_LON = 8,
14 GPS_SAMPLE_SIZE_ALT_ELLIPSOID = 4,
15 GPS_SAMPLE_SIZE_ALT_MSL = 4,
16 GPS_SAMPLE_SIZE_SOG = 2,
17 GPS_SAMPLE_SIZE_COG = 2,
18 GPS_SAMPLE_SIZE_SVS_IN_FIX = 1,
19 GPS_SAMPLE_SIZE_HDOP = 1,
20 GPS_SAMPLE_SIZE_EHPE = 4,
21 GPS_SAMPLE_SIZE_EVPE = 4,
22 GPS_SAMPLE_SIZE_ETE = 4,
23 GPS_SAMPLE_SIZE_EHVE = 2,
24 GPS_SAMPLE_SIZE_ELNPE = 4,
25 GPS_SAMPLE_SIZE_ELTPE = 4
26};
27
28
30 enum GPSConfigVersion {
31 GPS_V0 = 0,
32 GPS_V1,
33 GPS_V2,
34 GPS_V3
35};
36
37
39 enum GPSType {
40 GPS_ORG1410 = 0,
41 GPS_ORG1510,
42 GPS_UBLOX_CAMM8Q,
43 GPS_DETECTING = 0xFF
44};
45
46
47 struct INERTIA_API GPSConfiguration
48 : SpecificSensorSettings
49 , SamplerConfig
50{
51 GPSConfigVersion gpsVersion;
52 GPSType gpsType;
53
54 int32_t onTime;
55 uint32_t maxOffTime;
56 uint32_t maxSearchTime;
57 int16_t elevationMask;
58 uint8_t powerMask;
59 uint32_t pushToFixPeriod;
60
61 bool enableAdaptiveTricklePower;
62 bool enablePushToFix;
63 bool enableStaticNavigation;
64 bool enableTrackSmoothing;
65
66 bool enableSystemGPS;
67 bool enableSystemGlonass;
68 bool enableSystemGalileo;
69 bool enableSystemBeidou;
70
71 bool enableUTC;
72 bool enableLatLon;
73 bool enableAltEllipsoid;
74 bool enableAltMSL;
75 bool enableSOG;
76 bool enableCOG;
77 bool enableSvsInFix;
78 bool enableHDOP;
79
80 bool enableEHPE;
81 bool enableEVPE;
82 bool enableETE;
83 bool enableEHVE;
84
85 GPSConfiguration();
86 GPSConfiguration(uint8_t const* in, const unsigned offset, const unsigned _length);
87 GPSConfiguration(std::wstring const& argString);
88
89#ifdef WITH_BOOST_PROGRAM_OPTIONS
90 static const po::options_description GetOptionDescription();
91#endif
92
93 void GetBytes(std::vector<uint8_t>& out, const size_t bitfieldOffset) const override;
94 const std::pair<unsigned, Channel> GetChannel() const override;
95 const std::wstring ToString() const override;
96 const std::wstring ToSimpleString(uint16_t const globalRate) const;
97 double GetRangeFactor() const override;
98 unsigned GetResolution() const override;
99 unsigned GetMaxRate() const override;
100};
101
102}
inertia
Definition FlashCommands.h:6
inertia::GPSSampleSize
GPSSampleSize
Definition GPSConfigSettings.h:10
inertia::GPSConfigVersion
GPSConfigVersion
Definition GPSConfigSettings.h:30
inertia::GPSType
GPSType
Definition GPSConfigSettings.h:39