mirror of
https://github.com/nqrduck/nqrduck-measurement.git
synced 2025-01-03 13:18:11 +00:00
Fixed bug with frequency offset.
This commit is contained in:
parent
1dff0de7bb
commit
3e516e0435
1 changed files with 8 additions and 2 deletions
|
@ -145,9 +145,15 @@ class MeasurementView(ModuleView):
|
||||||
try:
|
try:
|
||||||
if self.module.model.view_mode == self.module.model.FFT_VIEW:
|
if self.module.model.view_mode == self.module.model.FFT_VIEW:
|
||||||
self.change_to_fft_view()
|
self.change_to_fft_view()
|
||||||
x = self.module.model.displayed_measurement.fdx
|
|
||||||
y = self.module.model.displayed_measurement.fdy
|
y = self.module.model.displayed_measurement.fdy
|
||||||
x += float(self.module.model.displayed_measurement.target_frequency - self.module.model.displayed_measurement.IF_frequency) * 1e-6
|
x = (
|
||||||
|
self.module.model.displayed_measurement.fdx
|
||||||
|
+ float(
|
||||||
|
self.module.model.displayed_measurement.target_frequency
|
||||||
|
- self.module.model.displayed_measurement.IF_frequency
|
||||||
|
)
|
||||||
|
* 1e-6
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
self.change_to_time_view()
|
self.change_to_time_view()
|
||||||
x = self.module.model.displayed_measurement.tdx
|
x = self.module.model.displayed_measurement.tdx
|
||||||
|
|
Loading…
Reference in a new issue