-
Notifications
You must be signed in to change notification settings - Fork 85
"Survey-in" time truncated #118
Comments
Hi @ubussema , Thank you for raising this issue - it is a valid point. We decided to keep the observation time as 16-bits (uint16_t) for historical reasons. The first version of setSurveyMode defined observationTime as 16-bits and so we decided to keep it that way (even though really it should be 32-bits). If we change observationTime to 32-bits now, it probably won't be compatible with code anyone has written which expects it to be 16-bits. I can think of a couple of ways forward: we can either change the library and probably use an overloaded function which accepts 16-bits or 32-bits; or it can be done with a custom packet. The custom packet is easier for us as it means we don't need to change the library! ;-) Please have a look at Example20_SendCustomCommand. Everything you need is in there. You just need to copy and paste the packetCfg definition from setSurveyMode into the customCfg & customPayload (remembering to 'enable' bytes 26 and 27). Please let me know what you think. Best wishes, |
Hej @PaulZC , thanks for your quick answer. My thought is that the custom command is certainly a valid workaround. Thanks for the hint! What's your view on this? |
Hi @ubussema , |
Hej,
I am currently working on a ZED-F9P project and would like to use the survey-in mode.
Hoping that this is the most appropriate place for my contribution, I will quickly explain the issue:
The library limits the time to uint16 with following comment:
However, when reading https://portal.u-blox.com/s/question/0D52p00008nvqoTCAQ/f9p-base-surveyin-position-accuracy it seems to actually make sense to have longer observation times if you want to get more precision. I have copied their graph here below to reflect this. 65000s is around 18h.
Is there an important reason to truncate the survey-in time to uint16? Else it might be a good idea to include the additional 16 bits.
What do you think?
The text was updated successfully, but these errors were encountered: