From ce9b36fa41174a8eddbfbd7c0e0c63a4b8fcaaa8 Mon Sep 17 00:00:00 2001 From: Albin Chaboissier Date: Mon, 20 Oct 2025 21:40:26 +0200 Subject: [PATCH] 1200 bauds ? --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index efbdf95..9bf327c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,7 +51,7 @@ use eframe::egui::{self, CentralPanel, Color32, RichText}; use tokio::sync::RwLock; use tokio::sync::mpsc::{Receiver, Sender, channel}; -const BAUD_RATE: u32 = 1000; +const BAUD_RATE: u32 = 1200; const SAMPLE_RATE: u32 = 48000; // Modulation parameters @@ -150,7 +150,7 @@ impl FSKReceiver { // Frame reconstruction let dphi = self .phase_lowpass - .next_real((self.last_sample.conj() * iq).arg()); + .next_real((self.last_sample * iq.conj()).arg()); self.last_sample = iq; if let Some((bit_sample, eye)) = self.elg.next_eye(dphi) { let _ = self.eye_sender.send(eye).await;