test,sched: update TPC test to reflect changes in SNR estimatioN

master
Francisco 3 years ago committed by Francisco Paisana
parent 89406b07d6
commit 3b61df4b64

@ -28,7 +28,12 @@ int test_finite_target_snr()
tpc tpcfsm(nof_prbs, 15, 15, true);
// TEST: While no SNR info is provided, no TPC commands are sent
// TEST: While UL SNR ~ target, no TPC commands are sent
for (uint32_t i = 0; i < 100 and tpcfsm.get_ul_snr_estim(0) < 14; ++i) {
tpcfsm.set_snr(15, 0);
tpcfsm.set_snr(15, 1);
tpcfsm.new_tti();
}
for (uint32_t i = 0; i < 100; ++i) {
tpcfsm.new_tti();
TESTASSERT(decode_tpc(tpcfsm.encode_pucch_tpc()) == 0);

Loading…
Cancel
Save