Sets PUCCH decode threshold as macro

master
Xavier Arteaga 5 years ago committed by Xavier Arteaga
parent bc10943a2b
commit 5dbc96458a

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

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

@ -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_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_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.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 // PDSCH configuration
workers_common.dl_cfg_com.tm = SRSLTE_TM1; workers_common.dl_cfg_com.tm = SRSLTE_TM1;

Loading…
Cancel
Save