Skip to content
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

Add stabilized state to the stereo pilot detection signs #56

Merged
merged 4 commits into from
Dec 26, 2023

Conversation

jj1bdx
Copy link
Owner

@jj1bdx jj1bdx commented Dec 26, 2023

  • Add enum PilotState
  • Use a state machine to display stereo pilot detection states
    • Stability detection is added to the previous state transition display from mono to stereo
    • Stability detection algorithm: abs(now - previous) < threshold value (set to 0.01 by heuristics)

@jj1bdx
Copy link
Owner Author

jj1bdx commented Dec 26, 2023

LGTM after preliminary tests. In some extreme cases (for example, with InterFM), 0.01 is still too small for pilot_level_threshold, but I will start with this value anyway.

@jj1bdx jj1bdx merged commit 72b9b92 into dev Dec 26, 2023
@jj1bdx jj1bdx deleted the dev-stereo-pilot-sign branch December 26, 2023 13:28
@jj1bdx jj1bdx mentioned this pull request Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant