fix range
This commit is contained in:
@ -2880,15 +2880,17 @@ def run_pyqtgraph(args) -> None:
|
|||||||
sec_ch1 = secondary_payload.get("ch1")
|
sec_ch1 = secondary_payload.get("ch1")
|
||||||
sec_ch2 = secondary_payload.get("ch2")
|
sec_ch2 = secondary_payload.get("ch2")
|
||||||
if sec_ch1 is not None:
|
if sec_ch1 is not None:
|
||||||
runtime.full_secondary_ch1 = np.asarray(
|
sec_ch1_calibrated = np.asarray(
|
||||||
calibrate_freqs({"F": base_freqs, "I": sec_ch1})["I"],
|
calibrate_freqs({"F": base_freqs, "I": sec_ch1})["I"],
|
||||||
dtype=np.float32,
|
dtype=np.float32,
|
||||||
)
|
)
|
||||||
|
runtime.full_secondary_ch1 = convert_tty_i16_to_voltage(sec_ch1_calibrated, tty_range_v)
|
||||||
if sec_ch2 is not None:
|
if sec_ch2 is not None:
|
||||||
runtime.full_secondary_ch2 = np.asarray(
|
sec_ch2_calibrated = np.asarray(
|
||||||
calibrate_freqs({"F": base_freqs, "I": sec_ch2})["I"],
|
calibrate_freqs({"F": base_freqs, "I": sec_ch2})["I"],
|
||||||
dtype=np.float32,
|
dtype=np.float32,
|
||||||
)
|
)
|
||||||
|
runtime.full_secondary_ch2 = convert_tty_i16_to_voltage(sec_ch2_calibrated, tty_range_v)
|
||||||
refresh_current_window(push_to_ring=True)
|
refresh_current_window(push_to_ring=True)
|
||||||
processed_frames += 1
|
processed_frames += 1
|
||||||
last_packet_processed_at = time.time()
|
last_packet_processed_at = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user