- call sgtarcker stats
This commit is contained in:
+14
-1
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user