attemt at a CI build with new DSP

This commit is contained in:
AlexandreRouma
2022-06-17 17:34:23 +02:00
parent d1318d3a0f
commit 36adc102ee
38 changed files with 259 additions and 92 deletions

View File

@ -20,7 +20,7 @@ namespace demod {
this->name = name;
// Define structure
demod.init(input, dsp::demod::AM::AGCMode::CARRIER, 200000.0 / getIFSampleRate());
demod.init(input, dsp::demod::AM::AGCMode::CARRIER, 24.0 / getIFSampleRate());
m2s.init(&demod.out);
}

View File

@ -34,7 +34,7 @@ namespace demod {
// Define structure
xlator.init(input, tone, getIFSampleRate());
c2r.init(&xlator.out);
agc.init(&c2r.out, 1.0, 200000.0 / getIFSampleRate());
agc.init(&c2r.out, 1.0, 24.0 / getIFSampleRate(), 10e6, 10.0);
m2s.init(&agc.out);
}

View File

@ -20,7 +20,7 @@ namespace demod {
this->name = name;
// Define structure
demod.init(input, dsp::demod::SSB::Mode::DSB, bandwidth, getIFSampleRate(), 200000.0 / getIFSampleRate());
demod.init(input, dsp::demod::SSB::Mode::DSB, bandwidth, getIFSampleRate(), 24.0 / getIFSampleRate());
m2s.init(&demod.out);
}

View File

@ -20,7 +20,7 @@ namespace demod {
this->name = name;
// Define structure
demod.init(input, dsp::demod::SSB::Mode::LSB, bandwidth, getIFSampleRate(), 200000.0 / getIFSampleRate());
demod.init(input, dsp::demod::SSB::Mode::LSB, bandwidth, getIFSampleRate(), 24.0 / getIFSampleRate());
m2s.init(&demod.out);
}

View File

@ -20,7 +20,7 @@ namespace demod {
this->name = name;
// Define structure
demod.init(input, dsp::demod::SSB::Mode::USB, bandwidth, getIFSampleRate(), 200000.0 / getIFSampleRate());
demod.init(input, dsp::demod::SSB::Mode::USB, bandwidth, getIFSampleRate(), 24.0 / getIFSampleRate());
m2s.init(&demod.out);
}

View File

@ -47,6 +47,9 @@ namespace demod {
_config->conf[name][getName()]["stereo"] = _stereo;
_config->release(true);
}
if (ImGui::Checkbox(("Low Pass##_radio_wfm_lowpass_" + name).c_str(), &_lowPass)) {
demod.setLowPass(_lowPass);
}
}
void setBandwidth(double bandwidth) {
@ -93,6 +96,7 @@ namespace demod {
ConfigManager* _config = NULL;
bool _stereo = false;
bool _lowPass = true;
std::string name;
EventHandler<dsp::stream<dsp::stereo_t>*> outputChangeHandler;