diff --git a/.vscode/settings.json b/.vscode/settings.json index e9b7c2a..82faa5e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,6 +13,64 @@ "memory": "cpp", "random": "cpp", "optional": "cpp", - "math.h": "c" + "math.h": "c", + "ratio": "cpp", + "system_error": "cpp", + "array": "cpp", + "functional": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "utility": "cpp", + "variant": "cpp", + "iostream": "cpp", + "cctype": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "csignal": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "atomic": "cpp", + "bit": "cpp", + "chrono": "cpp", + "cinttypes": "cpp", + "compare": "cpp", + "concepts": "cpp", + "condition_variable": "cpp", + "cstdint": "cpp", + "deque": "cpp", + "forward_list": "cpp", + "list": "cpp", + "map": "cpp", + "set": "cpp", + "unordered_set": "cpp", + "vector": "cpp", + "exception": "cpp", + "algorithm": "cpp", + "iterator": "cpp", + "memory_resource": "cpp", + "string": "cpp", + "string_view": "cpp", + "initializer_list": "cpp", + "iomanip": "cpp", + "iosfwd": "cpp", + "limits": "cpp", + "mutex": "cpp", + "new": "cpp", + "numbers": "cpp", + "ranges": "cpp", + "stdexcept": "cpp", + "stop_token": "cpp", + "streambuf": "cpp", + "thread": "cpp", + "cfenv": "cpp", + "typeindex": "cpp", + "typeinfo": "cpp", + "semaphore": "cpp" } } \ No newline at end of file diff --git a/Source/Receiver.cpp b/Source/Receiver.cpp index 2cf50ab..9ddd849 100644 --- a/Source/Receiver.cpp +++ b/Source/Receiver.cpp @@ -19,7 +19,7 @@ const uint32_t RCF_NUM_PHASES = 256; // RCF_TYPE_POLYPHASE_DISCRETE: const radio_float_t CPR_GAIN_LEAD_AQU = (radio_float_t)5.00E-5; // 3E-5 const radio_float_t CPR_GAIN_LAG_AQU = (radio_float_t)0.40E-6; // 1E-6 -const radio_float_t CPR_GAIN_LEAD_TRK = (radio_float_t)2.00E-6; // 1E-5 +const radio_float_t CPR_GAIN_LEAD_TRK = (radio_float_t)2.00E-5; // 1E-5 const radio_float_t CPR_GAIN_LAG_TRK = (radio_float_t)1.00E-9; // 5E-7 const radio_float_t STR_GAIN_LEAD_AQU = (radio_float_t)4.00E-4; // 2E-3 @@ -54,6 +54,7 @@ Receiver::Receiver(LogHandler *pLogHandler) , m_pSymMapper(0) , m_tracker(1.0 - 5.0/EQ_UPD_INTERVAL) , m_is_slip(0) + , m_slow_timer_counter(0) { m_params.numBitsPerSymbol = 2; m_params.samplerate = 48000; @@ -349,6 +350,18 @@ void Receiver::timerCallback() m_statusListeners.call(&ReceiverStatusListener::receiverStatusChanged, this); } + slowTimerCallback(); + +} + +void Receiver::slowTimerCallback() +{ + if (++m_slow_timer_counter == 10) + { + m_slow_timer_counter = 0; + cout << "------------------------------------------------------" << endl; + m_tracker.status_print(); + } } void Receiver::processPassband(RVec const &rf, size_t len) diff --git a/Source/Receiver.hpp b/Source/Receiver.hpp index 78de064..14d14cf 100644 --- a/Source/Receiver.hpp +++ b/Source/Receiver.hpp @@ -360,6 +360,10 @@ private: // Noise noise_gen_t m_noise; + // Slow timer + size_t m_slow_timer_counter; + + void slowTimerCallback(); void timerCallback(); void processBaseband(CVec const &iq, size_t len); void minMaxInit(minmax_t *pObj, radio_float_t min_initial, radio_float_t max_initial)