Commit b38aae61 authored by francescomani's avatar francescomani

fixed amplitude for pucch at ue

parent 538c14a7
...@@ -61,7 +61,7 @@ int16_t get_nr_PL(uint8_t Mod_id, uint8_t CC_id, uint8_t gNB_index){ ...@@ -61,7 +61,7 @@ int16_t get_nr_PL(uint8_t Mod_id, uint8_t CC_id, uint8_t gNB_index){
long referenceSignalPower = ue->nrUE_config.ssb_config.ss_pbch_power; long referenceSignalPower = ue->nrUE_config.ssb_config.ss_pbch_power;
pathloss = (int16_t)(referenceSignalPower - 30 + ue->rx_total_gain_dB); pathloss = (int16_t)(referenceSignalPower - ue->measurements.rsrp_dBm[gNB_index]);
LOG_D(MAC, "In %s: pathloss %d dB, UE RX total gain %d dB, referenceSignalPower %ld dBm/RE (%f mW), RSRP %d dBm (%f mW)\n", LOG_D(MAC, "In %s: pathloss %d dB, UE RX total gain %d dB, referenceSignalPower %ld dBm/RE (%f mW), RSRP %d dBm (%f mW)\n",
__FUNCTION__, __FUNCTION__,
......
...@@ -341,11 +341,13 @@ void pucch_procedures_ue_nr(PHY_VARS_NR_UE *ue, ...@@ -341,11 +341,13 @@ void pucch_procedures_ue_nr(PHY_VARS_NR_UE *ue,
int tx_amp; int tx_amp;
/*
tx_amp = nr_get_tx_amp(pucch_tx_power, tx_amp = nr_get_tx_amp(pucch_tx_power,
ue->tx_power_max_dBm, ue->tx_power_max_dBm,
ue->frame_parms.N_RB_UL, ue->frame_parms.N_RB_UL,
nb_of_prbs); nb_of_prbs);
if (tx_amp == 0) if (tx_amp == 0)*/
// FIXME temporarly using fixed amplitude before pucch power control implementation revised
tx_amp = AMP; tx_amp = AMP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment