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

This commit is contained in:
AlexandreRouma 2024-04-05 19:50:14 +02:00
parent 8eaa987d90
commit 17f698577f
2 changed files with 9 additions and 4 deletions

View File

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

View File

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