Closed yriouvortex closed 4 months ago
Hi Yannick (@yriouvortex ),
If I understand you correctly, you want to log only RXM-RAWX every 10 seconds?
You can achieve that by setting CFG-RATE-MEAS to 10000: gnss.setVal16(UBLOX_CFG_RATE_MEAS, 10000);
Or, set CFG-RATE-MEAS to 1000, and set CFG-RATE-NAV to 10: gnss.setVal16(UBLOX_CFG_RATE_NAV, 10);
Or, set CFG-RATE-MEAS to 1000, set CFG-RATE-NAV to 1, and set the rate of the RAWX message to 10: replace gnss.setAutoRXMRAWX(true, false);
with gnss.setAutoRXMRAWXrate(10, false);
.
If this solves your problem, please close this issue.
Best wishes, Paul
Hi, thank you for the answers, I want to achieve a higher delay of rawx message (at max it is 65535 ms defined by gnss.setVal16(UBLOX_CFG_RATE_MEAS, delay)). I want to have for example to log a RAWX message every 5 minutes. If I understand well I can manage to do this by modifying when the "storePacket" is executed.
Hi Yannick (@yriouvortex ),
OK. I understand.
Is post-processing an option for you? It would be easy to write some Python to discard the unwanted RAWX messages from the log file.
Or, hack the library, and add the static counter here:
It would look something like:
// Check if we need to copy the data into the file buffer
if (packetUBXRXMRAWX->automaticFlags.flags.bits.addToFileBuffer)
{
static int counter = 0;
if (counter == 0)
storePacket(msg);
counter++;
if (counter == 300)
counter = 0;
}
Best wishes, Paul
Closing... Please reopen if you need more help with this. Best wishes, Paul
Subject of the issue
Delay between measurement on the ZED-F9P is 65535 ms maximum. As data is read from UART and saved into ram buffer by calling checkUblox repeatedly there isn't any way to decrease the quantity of data that get logged into ram buffer. I want to achieve a slower data collection by saving per example 1 measurement every 10 for long time positionning.
Your workbench
Code is running on ESP32-S2 with Arduino Framework
Steps to reproduce
Init uart to 9600