Enhanced Data Filtering with DFM Collision Protection #557
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.
Enhanced Data Filtering with DFM Collision Protection
Summary
This PR implements comprehensive data filtering with targeted DFM collision protection that addresses the core developer concern about "multiple sondes active on the same frequency" while preserving responsive scanning functionality. The solution combines robust data validation with DFM's existing validation logic to prevent contamination during military training scenarios without affecting other sonde types.
Problem Solved
As noted by the developer: "My software does not do filtering as rigorous as other software does. This is why I intentionally do not advocate feeding the output to aprs.fi or other public sites. For sonde types that do not send their ID on each frame, and multiple sondes active on the same frequency (we have this for example with DFM in military trainings), data might get sent out with the wrong ID, etc."
This implementation specifically addresses:
Key Features
Surgical DFM-Only Solution
dfmstate.lastfrcnt >= 4thresholdComprehensive Data Validation
Simple Configuration
public_data_filtering(0=off, 1=on)Technical Implementation
Modified Files
Core Logic
Benefits and Impact
Addresses Core Developer Concern
Maintains Scanning Excellence
Technical Insight
The implementation recognizes that DFM is uniquely vulnerable to collision issues due to its multi-frame ID reconstruction, while other sonde types have built-in collision resistance:
Usage
This solution successfully addresses the developer's military training scenario concern while maintaining the responsive scanning operation that users depend on for 99% of radiosonde tracking activities.