- added AGC reset button
This commit is contained in:
+13
-2
@@ -27,6 +27,8 @@ const radio_float_t STR_GAIN_LAG_AQU = (radio_float_t)0.50E-6; // 5E-7
|
||||
const radio_float_t STR_GAIN_LEAD_TRK = (radio_float_t)8.00E-5; // 8E-4
|
||||
const radio_float_t STR_GAIN_LAG_TRK = (radio_float_t)1.00E-7; // 1E-6
|
||||
|
||||
const radio_float_t AGC_MIN_VALUE = (radio_float_t)1.0;
|
||||
const radio_float_t AGC_MAX_VALUE = (radio_float_t)4.0;
|
||||
const radio_float_t AGC_INITIAL_VALUE = (radio_float_t)2.0;
|
||||
const radio_float_t AGC_ADAPTION_RATE_ACQ = (radio_float_t)0.01;
|
||||
const radio_float_t AGC_ADAPTION_RATE_TRK = (radio_float_t)0.0001;
|
||||
@@ -204,7 +206,9 @@ void Receiver::init()
|
||||
initSymbolMapper();
|
||||
|
||||
// AGC
|
||||
AGC_Init(&agcBlind, EQ_UPD_INTERVAL, AGC_INITIAL_VALUE);
|
||||
AGC_Init(&agcBlind, EQ_UPD_INTERVAL, AGC_MIN_VALUE, AGC_MAX_VALUE);
|
||||
AGC_reset(&agcBlind, AGC_INITIAL_VALUE);
|
||||
|
||||
|
||||
// Channel estimation filter
|
||||
m_cma2.init(2*EQ_DFE_K+1);
|
||||
@@ -900,7 +904,7 @@ void Receiver::test()
|
||||
cout << "Var: " << m_timingGenerator.getMuVar() << endl;
|
||||
|
||||
m_ReceiverEnable = false;
|
||||
m_is_slip = 1;
|
||||
m_is_slip = 0;
|
||||
m_ReceiverEnable = true;
|
||||
}
|
||||
|
||||
@@ -911,6 +915,13 @@ void Receiver::statisticsReset()
|
||||
m_statusListeners.call(&ReceiverStatusListener::receiverStatusChanged, this);
|
||||
}
|
||||
|
||||
void Receiver::agcReset()
|
||||
{
|
||||
AGC_reset(&agcBlind, radio_float_t(1));
|
||||
m_tracker.reset();
|
||||
m_statusListeners.call(&ReceiverStatusListener::receiverStatusChanged, this);
|
||||
}
|
||||
|
||||
void Receiver::strReset()
|
||||
{
|
||||
m_timingGenerator.reset();
|
||||
|
||||
Reference in New Issue
Block a user