Skip to content

Commit

Permalink
firpfbchr/autotest: adjusting frequency test bounds
Browse files Browse the repository at this point in the history
  * tests were occasionally failing
  * PSD after channelizer has slight roll-off at band edges
  * this is expected behavior
  * change in test region makes autotest more reliable
  • Loading branch information
jgaeddert committed May 25, 2024
1 parent 4bbba4b commit cbc5c54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/multichannel/tests/firpfbchr_crcf_autotest.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,18 @@ void autotest_firpfbchr_crcf()

// verify results: channel 2
autotest_psd_s regions_2[] = {
{.fmin=-0.50f, .fmax= 0.05f, .pmin=-65, .pmax=-55, .test_lo=1, .test_hi=1},
{.fmin=-0.47f, .fmax= 0.05f, .pmin=-65, .pmax=-55, .test_lo=1, .test_hi=1},
{.fmin= 0.08f, .fmax= 0.12f, .pmin=-35, .pmax=-25, .test_lo=1, .test_hi=1},
{.fmin= 0.15f, .fmax= 0.50f, .pmin=-65, .pmax=-55, .test_lo=1, .test_hi=1},
{.fmin= 0.15f, .fmax= 0.47f, .pmin=-65, .pmax=-55, .test_lo=1, .test_hi=1},
};
liquid_autotest_validate_psd_spgramcf(c1, regions_2, 3,
liquid_autotest_verbose ? "autotest/logs/firpfbchr_crcf_c1.m" : NULL);

// verify results: channel 3
autotest_psd_s regions_3[] = {
{.fmin=-0.50f, .fmax=-0.28f, .pmin=-65, .pmax=-55, .test_lo=1, .test_hi=1},
{.fmin=-0.47f, .fmax=-0.28f, .pmin=-65, .pmax=-55, .test_lo=1, .test_hi=1},
{.fmin=-0.15f, .fmax=+0.15f, .pmin=-25, .pmax=-15, .test_lo=1, .test_hi=1},
{.fmin= 0.28f, .fmax=+0.50f, .pmin=-65, .pmax=-55, .test_lo=1, .test_hi=1},
{.fmin= 0.28f, .fmax=+0.47f, .pmin=-65, .pmax=-55, .test_lo=1, .test_hi=1},
};
liquid_autotest_validate_psd_spgramcf(c3, regions_3, 3,
liquid_autotest_verbose ? "autotest/logs/firpfbchr_crcf_c3.m" : NULL);
Expand Down

0 comments on commit cbc5c54

Please sign in to comment.