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.
Here I have made some improvements to the RDS Parser block, which should make the output nicer to work with:
Clear the alternate frequency string before processing each type 0 group. At present, gr-rds stores this in a static variable which is never cleared. This causes alternate frequencies from one station to appear when receiving other stations that do not specify alternate frequencies.Update: I replaced part 4 with a more complete implementation of alternate frequency parsing. At present, gr-rds processes fragments of the alternate frequency list one at a time, which causes the RDS panel to rapidly cycle between alternate frequencies whenever a station defines more than one. In addition, it does not handle "AF method B", which allows the broadcaster to distinguish between frequencies that are the same program vs. those that are regional variants. (This method is used by our national broadcaster here in Canada.) I modified the code to collect fragments of the alternate frequency list until the entire list is available, parse it (using method A or B, as appropriate), and display it as a single list. Here's what it looks like: