mirror of https://github.com/PentHertz/srsLTE.git
srslte_chest_dl_set_smooth_filter3_coeff() forces filter of length 3
This commit is contained in:
parent
90ee1ba73b
commit
8431873661
|
@ -279,11 +279,10 @@ void srslte_chest_dl_set_smooth_filter(srslte_chest_dl_t *q, float *filter, uint
|
||||||
|
|
||||||
void srslte_chest_dl_set_smooth_filter3_coeff(srslte_chest_dl_t* q, float w)
|
void srslte_chest_dl_set_smooth_filter3_coeff(srslte_chest_dl_t* q, float w)
|
||||||
{
|
{
|
||||||
if (q->smooth_filter_len == 3) {
|
q->smooth_filter_len = 3;
|
||||||
q->smooth_filter[0] = w;
|
q->smooth_filter[0] = w;
|
||||||
q->smooth_filter[2] = w;
|
q->smooth_filter[2] = w;
|
||||||
q->smooth_filter[1] = 1-2*w;
|
q->smooth_filter[1] = 1-2*w;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void average_pilots(srslte_chest_dl_t *q, cf_t *input, cf_t *output, uint32_t port_id) {
|
static void average_pilots(srslte_chest_dl_t *q, cf_t *input, cf_t *output, uint32_t port_id) {
|
||||||
|
|
Loading…
Reference in New Issue