Sets PUCCH decode threshold as macro

This commit is contained in:
Xavier Arteaga 2020-02-11 13:04:19 +01:00 committed by Xavier Arteaga
parent bc10943a2b
commit 5dbc96458a
3 changed files with 4 additions and 1 deletions

View File

@ -53,6 +53,8 @@
#define SRSLTE_PUCCH_FORMAT3_MAX_CARRIERS 5
#define SRSLTE_PUCCH_CS_MAX_NOF_ALLOC 4
#define SRSLTE_PUCCH_DEFAULT_THRESHOLD_FORMAT1 (0.1f)
typedef struct {
srslte_sequence_t seq_f2[SRSLTE_NOF_SF_X_FRAME];
uint32_t cell_id;

View File

@ -252,6 +252,7 @@ void cc_worker::set_config_dedicated(uint16_t rnti, const srslte::phy_cfg_t& ded
if (ue_db.count(rnti)) {
ue_db[rnti]->ul_cfg = dedicated.ul_cfg;
ue_db[rnti]->ul_cfg.pucch.threshold_format1 = SRSLTE_PUCCH_DEFAULT_THRESHOLD_FORMAT1;
ue_db[rnti]->ul_cfg.pucch.rnti = rnti;
ue_db[rnti]->ul_cfg.pusch.rnti = rnti;
ue_db[rnti]->dl_cfg = dedicated.dl_cfg;

View File

@ -96,7 +96,7 @@ void phy::parse_config(const phy_cfg_t& cfg)
workers_common.ul_cfg_com.pucch.N_cs = cfg.pucch_cnfg.ncs_an;
workers_common.ul_cfg_com.pucch.n_rb_2 = cfg.pucch_cnfg.nrb_cqi;
workers_common.ul_cfg_com.pucch.N_pucch_1 = cfg.pucch_cnfg.n1_pucch_an;
workers_common.ul_cfg_com.pucch.threshold_format1 = 0.8;
workers_common.ul_cfg_com.pucch.threshold_format1 = SRSLTE_PUCCH_DEFAULT_THRESHOLD_FORMAT1;
// PDSCH configuration
workers_common.dl_cfg_com.tm = SRSLTE_TM1;