utils/uhd-pinger: Fix scaling when applying RRC
Due to the oversampling only 1/sps sample has data, other are 0. To keep the same power, we need to scale the filter taps. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
c551d5f1d6
commit
2c6a5e0409
|
@ -141,7 +141,7 @@ burst_gen(struct app_state *app)
|
||||||
pulse->flags = CXVEC_FLG_REAL_ONLY;
|
pulse->flags = CXVEC_FLG_REAL_ONLY;
|
||||||
|
|
||||||
for (int i=0; i<pulse->len; i++)
|
for (int i=0; i<pulse->len; i++)
|
||||||
pulse->data[i] = rrc_taps[i];
|
pulse->data[i] = rrc_taps[i] * sps;
|
||||||
|
|
||||||
osmo_cxvec_convolve(pulse, burst, CONV_NO_DELAY, burst);
|
osmo_cxvec_convolve(pulse, burst, CONV_NO_DELAY, burst);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue