-
Notifications
You must be signed in to change notification settings - Fork 560
Iq tool center freq lock #1010
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
base: master
Are you sure you want to change the base?
Iq tool center freq lock #1010
Conversation
2b6287e
to
a02ac19
Compare
Rebased onto updated iq_tool_center_freq_fix + some code style fixes. |
a02ac19
to
f74ab12
Compare
59db607
to
12f38f9
Compare
2630308
to
b172870
Compare
Rebased on top of current iq_tool_center_freq_fix. |
71c77b3
to
a7e242f
Compare
12b4da6
to
ceaa48c
Compare
There are quite a few code changes here, so it would be very helpful to have some explanation of what's going on. Some questions:
|
Wheel over freqCtrl, middle button dragging of plotter horizontal axis, dockrxopt frequency input.
Bookmarks become not valid, freqCtrl shows wrong frequency, plotter shows wrong frequency and so on.
The main change is here: ceaa48c#diff-2fc3518522047c9d0c5d1f75d1de006499a71e9812311c7228c892a5250bad48R866-R885 Thanks for a review. |
ceaa48c
to
4d2f6a2
Compare
4d2f6a2
to
f26e78b
Compare
What if the filename does not have a frequency, or the frequency is incorrect? Should the user not be allowed to adjust the frequency in those cases? |
I guess the core of the problem is the behaviour of the main frequency control, which currently changes the hardware frequency rather than the channel filter offset. I sometimes find this annoying even when using hardware inputs, because changing the hardware frequency is disruptive. (It is not instantaneous, especially when using remote devices, it shifts the waterfall, and it invalidates FFT averages.) I agree that it makes sense for the main frequency control to adjust the channel filter offset during I/Q playback. It might even make sense for that to be the default for hardware inputs. (SDR# works this way, for instance.) I'll have to play around with this a bit more and think about what, if anything, should be done to allow the hardware frequency to be adjusted during I/Q playback. |
One minor issue: if an I/Q file is opened using the I/O Devices panel instead of the I/Q tool, then the current frequency continues to be used, even if it is well outside the viewable range: Getting it back in range using the main frequency control is a bit painful. Clicking on the FFT gets it back in range more easily. The frequency should probably be clamped to be within the bounds of the FFT. |
This case is addressed by this PR: #1026
I think, the hardware frequency should be adjusted during IQ playback only in the same way, it had changed during recording of the corresponding file. This may be implemented by processing tags, generated by SigMF source in future.
This can be done in |
f26e78b
to
4eb4a87
Compare
Done. |
4eb4a87
to
762f804
Compare
762f804
to
4691351
Compare
7a4ad32
to
625a696
Compare
625a696
to
fb47032
Compare
fb47032
to
70b7523
Compare
70b7523
to
0fd25ea
Compare
0fd25ea
to
f91f6a9
Compare
f91f6a9
to
38f6e3a
Compare
38f6e3a
to
6e8596e
Compare
...while playing back IQ file. Problem: It is possible to change the center frequency while playing an IQ file. In this case the real file center frequency does not get shifted to a correct position, so the spectrum plot/waterfall becomes shifted from actual played frequency, bookmarks become not valid, freqCtrl shows wrong frequency, plotter shows wrong frequency and so on. This commit changes frequency setting logic to be more staraightfroward and consistent. Independent of frequency change event source (freqctrls, plotter, remote) do the things in a same way: calculate new center and offset, taking into account the fact, that the center frequency may be loked due to IQ file playback, set the new frequency on a receiver side, then update all GUI controls to reflect changes. Enforce new frequency limits on the plotter side when IQ playback is started.
6e8596e
to
754f8b2
Compare
Problem: It is possible to change the center frequency while playing an IQ file. The
real file center frequency does not get shifted to correct position in this
case, so the spectrum plot/waterfall becomes shifted from actual played
frequency, bookmarks become not valid, freqCtrl shows wrong frequency,
plotter shows wrong frequency and so on.
This PR changes frequency setting logic to be more staraightfroward
and consistent.
Independent of frequency change event source (freqctrls, plotter, remote)
do the things in a same way: calculate new center and offset, taking into
account the fact, that the center frequency may be loked due to IQ file
playback, set the new frequency on a receiver side, then update all GUI
controls to reflect changes.
Enforce new frequency limits on the plotter side when IQ playback is started.
The "Ignore limits" checkbox still makes it possible to change center frequency
even when playing IQ file.
Next in series: #1011
Close #951