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
QT GUI Digital Number Control / inaccuracy #4562
Comments
|
This is due to use of |
|
@cbxtom I've put in a fix for some floating point precision problems in the Python GUI widgets. I'm still not quite sure this fixes your problem, since I do not know how you have gpredict wired up to send data to the number control. Can you describe that in any more detail? |
|
Here I explain what I did and I add a screendump of my flowchart: |
|
Does that help? |
|
That helps. So, while you pointed out something that needed to be looked at in GNU Radio, the problem you are seeing is actually this code in The precision is being lost at the message sender. It is coincidence that the digital number control makes the same mistake when it sends out a message - that's the bug I was looking at. The gr-gpredict-doppler code has not changed in a while, so I don't know if it is maintained. There is also this version (I have not looked at it): https://github.com/gruffen/gr-gpredict-doppler-3.8 |
|
The GNU Radio portion of this is fixed now. The problem mentioned here is here, in gr-gpredict-doppler: Closing. |
|
@ghostop14 see above |
|
Hi @willcode, ah yes. frequencies as floats produces errors. Good catch. I'll update it to from_double. |
|
Pushed fix to gpredict. |


Hi team,
when I use "QT GUI Digital Number Control" to display a frequency I see some "special effects".
I feed the control by sending numbers from Gpredict to it.
Below 128MHz, it works fine but above I get wrong display data:
ok:
Input 128.001.000Hz -> Display = 128.001.000
not ok:
Input 138.001.000Hz -> Display = 138.000.992
Input 137.999.000Hz -> Display = 137.999.008
I simulate that input by using Gpredict via tcp port 4532 but found debug messages ok.
Does that depend on the QT GUI Digital Number Control and the way it converts numerical data types, since (128 = 2⁷)?
The text was updated successfully, but these errors were encountered: