Merge "Add a getLocationOptions() function in TrackingOptions"
This commit is contained in:
commit
95e5a78305
1 changed files with 9 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define GNSS_NI_REQUESTOR_MAX (256)
|
#define GNSS_NI_REQUESTOR_MAX (256)
|
||||||
#define GNSS_NI_MESSAGE_ID_MAX (2048)
|
#define GNSS_NI_MESSAGE_ID_MAX (2048)
|
||||||
|
@ -631,6 +632,14 @@ struct TrackingOptions : LocationOptions {
|
||||||
minDistance = options.minDistance;
|
minDistance = options.minDistance;
|
||||||
mode = options.mode;
|
mode = options.mode;
|
||||||
}
|
}
|
||||||
|
inline LocationOptions getLocationOptions() {
|
||||||
|
LocationOptions locOption;
|
||||||
|
locOption.size = sizeof(locOption);
|
||||||
|
locOption.minDistance = minDistance;
|
||||||
|
locOption.minInterval = minInterval;
|
||||||
|
locOption.mode = mode;
|
||||||
|
return locOption;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct BatchingOptions : LocationOptions {
|
struct BatchingOptions : LocationOptions {
|
||||||
|
|
Loading…
Reference in a new issue