better tx tone
This commit is contained in:
parent
c034cdcb95
commit
18a1b2faa3
|
@ -23,12 +23,11 @@ from PySide6.QtWidgets import (
|
|||
QWidget,
|
||||
)
|
||||
from skrf import plotting as rf_plt
|
||||
from vna import Charon
|
||||
|
||||
from charon_vna.gui_helpers import FlowLayout
|
||||
from charon_vna.util import db20, s2vswr
|
||||
|
||||
# from vna import Charon
|
||||
|
||||
# %%
|
||||
DEFAULT_CONFIG = dict(
|
||||
frequency=np.arange(1e9, 2e9, 11), # Hz
|
||||
|
|
|
@ -141,8 +141,9 @@ class Charon:
|
|||
self.set_output_power(power)
|
||||
self.sdr.tx_lo = int(frequency - self.FREQUENCY_OFFSET)
|
||||
self.sdr.tx_cyclic_buffer = True
|
||||
# self.sdr.tx(generate_tone(f=self.FREQUENCY_OFFSET, fs=self.sdr.sample_rate))
|
||||
self.sdr.dds_single_tone(self.FREQUENCY_OFFSET, scale=0.9, channel=0)
|
||||
# For some reason the pluto's DDS has truly horrendous phase noise to the point where it looks modulated
|
||||
self.sdr.tx(generate_tone(f=self.FREQUENCY_OFFSET, fs=self.sdr.sample_rate))
|
||||
# self.sdr.dds_single_tone(self.FREQUENCY_OFFSET, scale=0.9, channel=0)
|
||||
|
||||
def _rx(self, count: int = 1, fc: float | None = None) -> npt.ArrayLike:
|
||||
if count < 1:
|
||||
|
|
Loading…
Reference in New Issue
Block a user