mirror of
https://github.com/nqrduck/nqrduck-measurement.git
synced 2024-11-09 20:00:02 +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:
|
||||
if self.module.model.view_mode == self.module.model.FFT_VIEW:
|
||||
self.change_to_fft_view()
|
||||
x = self.module.model.displayed_measurement.fdx
|
||||
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:
|
||||
self.change_to_time_view()
|
||||
x = self.module.model.displayed_measurement.tdx
|
||||
|
|
Loading…
Reference in a new issue