File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -177,11 +177,30 @@ void menuGNSS()
177
177
178
178
if ((incoming == 1 ) && (!present.gnss_mosaicX5 ))
179
179
{
180
- float rate = 0.0 ;
181
- if (getNewSetting (" Enter GNSS measurement rate in Hz" , 0.00012 , 20.0 , &rate) ==
180
+ float rateHz = 0.0 ;
181
+ float minRateHz = 1.0 ; // Measurement rate per second
182
+ float maxRateHz = 1.0 ;
183
+
184
+ if (present.gnss_zedf9p )
185
+ {
186
+ maxRateHz = 20 ; // 20Hz
187
+ minRateHz = 0.00012 ; // Limit of 127 (navRate) * 65000ms (measRate) = 137 minute limit.
188
+ }
189
+ else if (present.gnss_um980 )
190
+ {
191
+ minRateHz = 0.02 ; // 1 / 65 = 0.015384 Hz = Found experimentally
192
+ maxRateHz = 20 ; // 20Hz
193
+ }
194
+ else if (present.gnss_lg290p )
195
+ {
196
+ minRateHz = 1.0 ; // The LG290P doesn't support slower speeds than 1Hz
197
+ maxRateHz = 20 ; // 20Hz
198
+ }
199
+
200
+ if (getNewSetting (" Enter GNSS measurement rate in Hz" , minRateHz, maxRateHz, &rateHz) ==
182
201
INPUT_RESPONSE_VALID) // 20Hz limit with all constellations enabled
183
202
{
184
- gnss->setRate (1.0 / rate ); // Convert Hz to seconds. This will set settings.measurementRateMs,
203
+ gnss->setRate (1.0 / rateHz ); // Convert Hz to seconds. This will set settings.measurementRateMs,
185
204
// settings.navigationRate, and GSV message
186
205
}
187
206
}
You can’t perform that action at this time.
0 commit comments