Skip to content

Request: setMeasurementRate(uint16_t msMeasurementPeriod) #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nseidle opened this issue Mar 29, 2021 · 3 comments · Fixed by #17 or #21
Closed

Request: setMeasurementRate(uint16_t msMeasurementPeriod) #14

nseidle opened this issue Mar 29, 2021 · 3 comments · Fixed by #17 or #21

Comments

@nseidle
Copy link
Member

nseidle commented Mar 29, 2021

Basically I'd like to be able to set the navFreq to something less than 1, such as 0.5 or 0.033 (for 30s between). I think the best way to do that is to add a set/getMeasurementRate() that directly sets the measurement rate.

See this feature request

What I am trying to do is slow the raw sample rate down to something less than 1 hz. For a lot of static surveying, there is no benefit from high-frequency sample rates ... 15 second, or even 30 second, sampling is fine, but we require longer observation periods (many hours to days). Thus, a helpful feature could include:
(1) setting slower sample rates (at the least, hard-wired options of 5, 15, and 30 seconds, but user specified sample period is more flexible)

@PaulZC
Copy link
Collaborator

PaulZC commented Mar 30, 2021

There are two ways to do this:

  • add setMeasurementRate as you suggest - very happy to do that
  • stick with (e.g.) 1Hz navigation rate but then change the message rate to a much slower rate

IIRC, I've tried this before and ran into problems when the interval was longer than around 45 seconds. I'm pretty sure that was using the first way. I'll go hunting for the code (it is probably in OpenLog Artemis).

The second way can be done two ways:

I'll report back once I find the other code. Watch this space!

@PaulZC
Copy link
Collaborator

PaulZC commented Mar 30, 2021

Again, because you are using the ZED, You can set the navigation rate manually if you want to using setVal16 and the keys UBLOX_CFG_RATE_MEAS and/or UBLOX_CFG_RATE_NAV

@PaulZC PaulZC linked a pull request Mar 30, 2021 that will close this issue
@PaulZC PaulZC linked a pull request Apr 1, 2021 that will close this issue
@nseidle
Copy link
Member Author

nseidle commented Apr 12, 2021

This is working great! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants