-
Notifications
You must be signed in to change notification settings - Fork 6
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
allow for unknow prns #14
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ class RangeDecompressor | |
void ShutdownLogger(); | ||
|
||
[[nodiscard]] STATUS Decompress(unsigned char* pucRangeMessageBuffer_, uint32_t uiRangeMessageBufferSize_, MetaDataStruct& stMetaData_, | ||
ENCODEFORMAT eFormat_ = ENCODEFORMAT::UNSPECIFIED); | ||
ENCODEFORMAT eFormat_ = ENCODEFORMAT::UNSPECIFIED, bool bAllowInvalidObs = false); | ||
|
||
private: | ||
Filter clMyRangeCmpFilter; | ||
|
@@ -102,13 +102,13 @@ class RangeDecompressor | |
template <bool bIsSecondary> | ||
void DecompressDifferentialBlock(uint8_t** ppucDataPointer_, RangeCmp4MeasurementSignalBlockStruct& stDifferentialBlock_, | ||
const RangeCmp4MeasurementSignalBlockStruct& stReferenceBlock_, double dSecondOffset_); | ||
void PopulateNextRangeData(RangeDataStruct& stRangeData_, const RangeCmp4MeasurementSignalBlockStruct& stBlock_, | ||
bool PopulateNextRangeData(RangeDataStruct& stRangeData_, const RangeCmp4MeasurementSignalBlockStruct& stBlock_, | ||
const MetaDataStruct& stMetaData_, const ChannelTrackingStatusStruct& stChannelTrackingStatus_, uint32_t uiPRN_, | ||
char cGLONASSFrequencyNumber_); | ||
char cGLONASSFrequencyNumber_, bool bAllowInvalidObs); | ||
|
||
void RangeCmpToRange(const RangeCmpStruct& stRangeCmpMessage_, RangeStruct& stRangeMessage_); | ||
void RangeCmp2ToRange(const RangeCmp2Struct& stRangeCmp2Message_, RangeStruct& stRangeMessage_, const MetaDataStruct& stMetaData_); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it make sense to allow for invalid obs from RangeCMP1-2? I'm unsure if they can even have them or if it's just RangeCMP4. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm unsure as well, but this change only shows invalid observations if desired, with the default configuration being that it doesn't show them. Anyone turning this on likely knows what they want to see anyways. |
||
void RangeCmp4ToRange(uint8_t* pucCompressedData_, RangeStruct& stRangeMessage_, const MetaDataStruct& pstMetaData_); | ||
void RangeCmp4ToRange(uint8_t* pucCompressedData_, RangeStruct& stRangeMessage_, const MetaDataStruct& pstMetaData_, bool bAllowInvalidObs); | ||
|
||
// Protected members to be accessed by test child classes. | ||
protected: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont see the point of making a description for a variable in a comment that is pretty much the same as the variable name