srsLTE: increased SRS test TA us threshold

This commit is contained in:
Xavier Arteaga 2020-07-13 19:27:59 +02:00 committed by Xavier Arteaga
parent 794f969e1a
commit 5cf2089a8c
1 changed files with 2 additions and 1 deletions

View File

@ -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;