SRSUE: Enable AGC

master
Xavier Arteaga 6 years ago committed by Andre Puschmann
parent e8d6236975
commit fd3671a7e5

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

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

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

Loading…
Cancel
Save