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

Repeater frequency in yaml file stored (and programmed?) with offset (version issue/conflict)? #306

Closed
allesand opened this issue Feb 10, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@allesand
Copy link

allesand commented Feb 10, 2023

Using qdmr 0.11.2 from PPA on Ubuntu 22.04:

For DB0BRO, https://www.repeaterbook.com/api/exportROW.php?callsign=DB0BRO%25 returns

Frequency | "439.137500"
Input Freq | "431.53750"

which is what qdmr displays in the channel config. Stored in the yaml file is, however

rxFrequency: 439.13749999999999
txFrequency: 431.53750000000002

On Unbuntu 20.04 with the same qdmr version, the stored frequencies are looking normal - it's a known issue, I shortened this post to avoid confusion. Thanks for the quick response!

@hmatuschek hmatuschek added the duplicate This issue or pull request already exists label Feb 11, 2023
@hmatuschek
Copy link
Owner

This is actually a duplicate of #249, and this one will be fixed with release 0.12.0. Until then, the frequencies are stored in MHz as floating point numbers. Floating point numbers, however, cannot store large integer values precisely. So this is a rounding error. In future, the frequency will be stored as a unsigned long long in Hz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants