mirror of https://github.com/PentHertz/srsLTE.git
Use SNR as out-of-sync threshold in addition to RSRP
This commit is contained in:
parent
a4e55b8f88
commit
36358fa34b
|
@ -367,7 +367,7 @@ void phch_worker::work_imp()
|
||||||
update_measurements();
|
update_measurements();
|
||||||
|
|
||||||
if (chest_ok) {
|
if (chest_ok) {
|
||||||
if (phy->avg_rsrp_dbm > -124.0) {
|
if (phy->avg_rsrp_dbm > -124.0 && 10*log10(srslte_chest_dl_get_snr(&ue_dl.chest)) > -30.0) {
|
||||||
log_h->debug("SNR=%.1f dB, RSRP=%.1f dBm sync=in-sync from channel estimator\n",
|
log_h->debug("SNR=%.1f dB, RSRP=%.1f dBm sync=in-sync from channel estimator\n",
|
||||||
10*log10(srslte_chest_dl_get_snr(&ue_dl.chest)), phy->avg_rsrp_dbm);
|
10*log10(srslte_chest_dl_get_snr(&ue_dl.chest)), phy->avg_rsrp_dbm);
|
||||||
chest_loop->in_sync();
|
chest_loop->in_sync();
|
||||||
|
|
Loading…
Reference in New Issue