dc block + lowpass

This commit is contained in:
2026-06-15 21:41:18 +02:00
parent e1c7ba7865
commit 1513fd694d
4 changed files with 105 additions and 6 deletions

View File

@ -1,11 +1,13 @@
use crate::iq_reader::FileSource;
use crate::pipeline::DspPipelineExt;
use crate::pipeline::{AfterDemodPiplineExt, DspPipelineExt};
use std::error::Error;
mod agc;
mod dc_blocker;
mod fir;
mod fm_demod;
mod iq_reader;
mod low_pass;
mod pipeline;
mod utils;
@ -18,11 +20,13 @@ fn main() -> Result<(), Box<dyn Error>> {
let pipeline = source
.agc(20_000_000.0, 1.0, 0.001, 100.0)
.fir::<64>(taps, 4)
.demodulate();
.demodulate()
.dc_block(0.995)
.lowpass(0.75);
for phase_r in pipeline {
let phase = phase_r?;
// println!("phase : {}", phase);
for s_r in pipeline {
let s = s_r?;
println!("phase : {}", s);
}
Ok(())