SNR, Pstd, Lstd: float rather than compressed encoding #506
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This data, the observation SNR, Pstd and Lstd, used a compressed encoding were a float is the natural representation. These were being encoded and decoder when used, making a lot of redundant code and a burden to get right. This proposal just uses a float for these, simplifying code.
If the extra storage space is shown to be an issue then this path would still be proposed, but also adding common access functions for compressed encoding and decoding. If the L and P std are not generally useful data then this code could also become a compilation conditional to save using any storage for these if not needed. Having the code readable and maintainable seems more important to me than saving a bit of storage for these.
The Pstd and Lstd encodings were aligned with the ublox output, with a further compression to digits 1 to 9 for RINEX. This proposal moves this encoding into rinex.c, specific to the RINEX format. Raw formats decoded to RINEX should give the same output, and should read back the same float values. Changes to this encoding can now be local to rinex.c, and all uses need not be updated. The raw formats can be decoded to floats without compression to the limited RINEX encoding, and this even helps a little for the ublox format, and gives much better data for sbf and unicore formats.
Added support to the rtknavi-qt monitor observation page to output the P and L Std which was now simpler to do.