Skip to content

Commit

Permalink
disable FLEX protocol from pager module since it's not implemented an…
Browse files Browse the repository at this point in the history
…d add setBaudrate function
  • Loading branch information
AlexandreRouma committed Apr 5, 2024
1 parent 8eaa987 commit 17f6985
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion decoder_modules/pager_decoder/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PagerDecoderModule : public ModuleManager::Instance {

// 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);
Expand Down
11 changes: 8 additions & 3 deletions decoder_modules/pager_decoder/src/pocsag/dsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class POCSAGDSP : public dsp::Processor<dsp::complex_t, uint8_t> {

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);
Expand All @@ -44,8 +44,12 @@ class POCSAGDSP : public dsp::Processor<dsp::complex_t, uint8_t> {
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() {
Expand All @@ -68,4 +72,5 @@ class POCSAGDSP : public dsp::Processor<dsp::complex_t, uint8_t> {
dsp::filter::FIR<float, float> fir;
dsp::clock_recovery::MM<float> recov;

double _samplerate;
};

0 comments on commit 17f6985

Please sign in to comment.