SRSUE: Enable AGC

This commit is contained in:
Xavier Arteaga 2019-06-06 11:56:11 +02:00 committed by Andre Puschmann
parent e8d6236975
commit fd3671a7e5
3 changed files with 6 additions and 0 deletions

View File

@ -737,6 +737,7 @@ typedef struct {
int cqi_fixed;
float snr_ema_coeff;
std::string snr_estim_alg;
bool agc_enable;
bool cfo_is_doppler;
bool cfo_integer_enabled;
float cfo_correct_tol_hz;

View File

@ -113,6 +113,10 @@ void sync::init(radio_interface_phy* _radio,
reset();
running = true;
// Enable AGC
set_agc_enable(worker_com->args->agc_enable);
// Start main thread
if (sync_cpu_affinity < 0) {
start(prio);

View File

@ -152,6 +152,7 @@ int ue::parse_args(const all_args_t& args_)
// replicate some RF parameter to make them available to PHY
args.phy.nof_rx_ant = args.rf.nof_rx_ant;
args.phy.ue_category = args.stack.rrc.ue_category;
args.phy.agc_enable = args.rf.rx_gain < 0.0f;
// Calculate number of carriers available in all radios
args.phy.nof_radios = args.rf.nof_radios;