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

Adding offset to existing frequencies for random drone-signals #66

Open
Crowdedlight opened this issue Feb 19, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Crowdedlight
Copy link
Owner

Crowdedlight commented Feb 19, 2024

I think it would probably be a good way of handling it to force an offset between existing signals. Something like picking a random frequency within scope, checking distance to nearest, move in the opposite direction until offset away.

To help avoid spawning frequencies on top of each other when there is an otherwise clear frequency-spectrum. #56 describes why having signals on top of each other can lead to bad UX behaviour for user.

I had considered sorting all signals by frequency, and then going through them saving the "gaps" between them. Then taking the biggest gap, shorten it with a "minimum_seperation" in both ends and run a random function within it. Should give an almost ~O(n) performance, not counting the sorting.
But unsure that becomes too much of a pattern as new signals would always appear in the biggest gap.

@Crowdedlight Crowdedlight added the bug Something isn't working label Feb 19, 2024
@Crowdedlight Crowdedlight self-assigned this Feb 19, 2024
@Crowdedlight Crowdedlight removed their assignment Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant