22 "GPS operating mode: 0=Mobile (don't use saved position), 1=Fixed (use saved position for faster startup)",
30 "Last known latitude in decimal degrees (-90 to +90)"
36 "Last known longitude in decimal degrees (-180 to +180)"
42 "Last known altitude in meters above sea level"
48 "Unix timestamp when position was last saved (epoch seconds)"
55 "Use NTP pool servers to get time for GPS startup assistance (recommended for NTP server applications)"
61 "NTP server for time aiding (default: pool.ntp.org)"
68 "How often to save AssistNow data to flash (hours, min=12, max=168)"
73 "MinRuntimeBeforeSave",
74 "Minimum GPS runtime before saving AssistNow data (hours, ensures good data quality)"
79 "MinSatellitesForSave",
80 "Minimum satellites required to save AssistNow data (ensures good fix quality)"
87 "Automatically save position after achieving good fix (recommended for Fixed mode)"
92 "PositionSaveThreshold",
93 "Save position after this many seconds of good fix (prevents saving during initial acquisition)"
102 bool isFixedMode()
const {
return m_mode.GetValue() == 1; }
103 bool isMobileMode()
const {
return m_mode.GetValue() == 0; }
105 bool hasValidPosition()
const {
107 time_t now =
time(
nullptr);
108 time_t lastPos = m_lastPositionTime.GetValue();
109 return (lastPos > 0) && (now - lastPos < 30 * 24 * 3600);
113 uint32_t getAssistSaveIntervalSeconds()
const {
114 return m_assistSaveIntervalHours.GetValue() * 3600;
117 uint32_t getMinRuntimeSeconds()
const {
118 return m_minRuntimeBeforeSave.GetValue() * 3600;
Definition gps_config.h:16
Boolean Configuration Variable.
Definition config_obj.h:998
Chooser Configuration Variable - Select From a List of Items.
Definition config_obj.h:2033
Double Float Configuration Variable.
Definition config_obj.h:817
Signed 32-bit Integer Configuration Variable.
Definition config_obj.h:701
Base class used to create configuration objects.
Definition config_obj.h:321
String Configuration Variable.
Definition config_obj.h:1128
time_t time(time_t *pt)
Gets the current system GMT time.