Skip to content

Request: setMeasurementRate(uint16_t msMeasurementPeriod) #14

@nseidle

Description

@nseidle
Member

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)

Activity

PaulZC

PaulZC commented on Mar 30, 2021

@PaulZC
Collaborator

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

PaulZC commented on Mar 30, 2021

@PaulZC
Collaborator

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

linked a pull request that will close this issuev2.0.4 #17on Mar 30, 2021
linked a pull request that will close this issuev2.0.5 #21on Apr 1, 2021
nseidle

nseidle commented on Apr 12, 2021

@nseidle
MemberAuthor

This is working great! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @nseidle@PaulZC

      Issue actions

        Request: setMeasurementRate(uint16_t msMeasurementPeriod) · Issue #14 · sparkfun/SparkFun_u-blox_GNSS_Arduino_Library