dc block + lowpass
This commit is contained in:
14
src/main.rs
14
src/main.rs
@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user