From 5cf2089a8c3b4c474b8ab0be79b6be191e6f81ad Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Mon, 13 Jul 2020 19:27:59 +0200 Subject: [PATCH] srsLTE: increased SRS test TA us threshold --- lib/src/phy/ch_estimation/test/chest_test_srs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/phy/ch_estimation/test/chest_test_srs.c b/lib/src/phy/ch_estimation/test/chest_test_srs.c index 5a7269374..9d82e2ef7 100644 --- a/lib/src/phy/ch_estimation/test/chest_test_srs.c +++ b/lib/src/phy/ch_estimation/test/chest_test_srs.c @@ -45,6 +45,7 @@ static float n0_dbm = 30.0f - 20.0f; static srslte_channel_awgn_t channel = {}; #define CHEST_TEST_SRS_SNR_DB_TOLERANCE 10.0f +#define CHEST_TEST_SRS_TA_US_TOLERANCE 0.5f void usage(char* prog) { @@ -160,7 +161,7 @@ int srs_test_context_run(srs_test_context_t* q) // Assert SRS measurements TESTASSERT(fabsf(q->chest_ul_res.snr_db - snr_db) < CHEST_TEST_SRS_SNR_DB_TOLERANCE); TESTASSERT(fabsf(q->chest_ul_res.noise_estimate_dbm - n0_dbm) < CHEST_TEST_SRS_SNR_DB_TOLERANCE); - TESTASSERT(fabsf(q->chest_ul_res.ta_us) < 0.1f); + TESTASSERT(fabsf(q->chest_ul_res.ta_us) < CHEST_TEST_SRS_TA_US_TOLERANCE); } return SRSLTE_SUCCESS;