Commit d765d1f2 authored by lukashov's avatar lukashov

Fixing previous commit

parent 9695420f
......@@ -340,7 +340,7 @@ void freq_channel(channel_desc_t *desc,uint16_t nb_rb,int16_t n_samples) {
if (desc->nb_taps==1)
delay = desc->delays[l];
else
delay = desc->delays[l]+NB_SAMPLES_CHANNEL_OFFSET/desc->BW;
delay = desc->delays[l]+NB_SAMPLES_CHANNEL_OFFSET/desc->sampling_rate;
desc->chF[aarx+(aatx*desc->nb_rx)][f+n_samples/2].x+=(desc->a[l][aarx+(aatx*desc->nb_rx)].x*cos(2*M_PI*freq*delay)+
desc->a[l][aarx+(aatx*desc->nb_rx)].y*sin(2*M_PI*freq*delay));
desc->chF[aarx+(aatx*desc->nb_rx)][f+n_samples/2].y+=(-desc->a[l][aarx+(aatx*desc->nb_rx)].x*sin(2*M_PI*freq*delay)+
......
......@@ -82,7 +82,6 @@ void fill_channel_desc(channel_desc_t *chan_desc,
}
else
chan_desc->delays = delays;
chan_desc->Td = Td;
chan_desc->sampling_rate = sampling_rate;
chan_desc->channel_bandwidth = channel_bandwidth;
......@@ -548,7 +547,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
NULL,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -575,7 +574,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
NULL,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -602,7 +601,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
NULL,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -629,7 +628,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
NULL,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -665,7 +664,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
R_sqrt_ptr2,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -701,7 +700,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
R_sqrt_ptr2,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -728,7 +727,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
NULL,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -755,7 +754,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
NULL,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -784,7 +783,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
NULL,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -822,7 +821,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
R_sqrt_ptr2,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -858,7 +857,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
R_sqrt_ptr2,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -892,7 +891,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
R_sqrt_ptr2,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -926,7 +925,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
R_sqrt_ptr2,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -960,7 +959,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
R_sqrt_ptr2,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -997,7 +996,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
R_sqrt_ptr2,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......@@ -1032,7 +1031,7 @@ channel_desc_t *new_channel_desc_scm(uint8_t nb_tx,
R_sqrt_ptr2,
Td,
sampling_rate,
BW,
channel_bandwidth,
ricean_factor,
aoa,
forgetting_factor,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment