disable FLEX protocol from pager module since it's not implemented and add setBaudrate function

pull/1385/head
AlexandreRouma 2024-04-05 19:50:14 +02:00
rodzic 8eaa987d90
commit 17f698577f
2 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -36,7 +36,7 @@ public:
// Define protocols // Define protocols
protocols.define("POCSAG", PROTOCOL_POCSAG); protocols.define("POCSAG", PROTOCOL_POCSAG);
protocols.define("FLEX", PROTOCOL_FLEX); //protocols.define("FLEX", PROTOCOL_FLEX);
// Initialize VFO with default values // Initialize VFO with default values
vfo = sigpath::vfoManager.createVFO(name, ImGui::WaterfallVFO::REF_CENTER, 0, 12500, 24000, 12500, 12500, true); vfo = sigpath::vfoManager.createVFO(name, ImGui::WaterfallVFO::REF_CENTER, 0, 12500, 24000, 12500, 12500, true);

Wyświetl plik

@ -19,7 +19,7 @@ public:
void init(dsp::stream<dsp::complex_t>* in, double samplerate, double baudrate) { void init(dsp::stream<dsp::complex_t>* in, double samplerate, double baudrate) {
// Save settings // Save settings
// TODO _samplerate = samplerate;
// Configure blocks // Configure blocks
demod.init(NULL, -4500.0, samplerate); demod.init(NULL, -4500.0, samplerate);
@ -44,8 +44,12 @@ public:
return count; return count;
} }
void detune() { void setBaudrate(double baudrate) {
recov.setOmega(9.99); assert(base_type::_block_init);
std::lock_guard<std::recursive_mutex> lck(base_type::ctrlMtx);
base_type::tempStop();
base_type::tempStart();
} }
int run() { int run() {
@ -68,4 +72,5 @@ private:
dsp::filter::FIR<float, float> fir; dsp::filter::FIR<float, float> fir;
dsp::clock_recovery::MM<float> recov; dsp::clock_recovery::MM<float> recov;
double _samplerate;
}; };