better tx tone
All checks were successful
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 40s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped

This commit is contained in:
Brendan Haines 2025-01-15 23:01:10 -07:00
parent c034cdcb95
commit 18a1b2faa3
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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: