Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG-RAN
Commits
7f22f1e5
Commit
7f22f1e5
authored
May 17, 2022
by
Arash Sahbafard
Committed by
laurent
Aug 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read offset (* nbTx) antennas in past
parent
b68057ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
targets/ARCH/rfsimulator/apply_channelmod.c
targets/ARCH/rfsimulator/apply_channelmod.c
+5
-5
No files found.
targets/ARCH/rfsimulator/apply_channelmod.c
View file @
7f22f1e5
...
...
@@ -68,13 +68,11 @@ void rxAddInput( const c16_t *input_sig,
// Energy in one sample to calibrate input noise
// the normalized OAI value seems to be 256 as average amplitude (numerical amplification = 1)
const
double
noise_per_sample
=
pow
(
10
,
channelDesc
->
noise_power_dB
/
10
.
0
)
*
256
;
// Fixme: we don't fill the offset length samples at begining ?
// anyway, in today code, channel_offset=0
const
int
dd
=
abs
(
channelDesc
->
channel_offset
);
const
int
nbTx
=
channelDesc
->
nb_tx
;
for
(
int
i
=
0
;
i
<
((
int
)
nbSamples
-
dd
)
;
i
++
)
{
c16_t
*
out_ptr
=
after_channel_sig
+
dd
+
i
;
for
(
int
i
=
0
;
i
<
nbSamples
;
i
++
)
{
struct
complex16
*
out_ptr
=
after_channel_sig
+
i
;
struct
complexd
rx_tmp
=
{
0
};
for
(
int
txAnt
=
0
;
txAnt
<
nbTx
;
txAnt
++
)
{
...
...
@@ -88,7 +86,9 @@ void rxAddInput( const c16_t *input_sig,
// but it is not very usefull
// it would be better to split out each antenna in a separate flow
// that will allow to mix ru antennas freely
c16_t
tx16
=
input_sig
[((
TS
+
i
-
l
)
*
nbTx
+
txAnt
)
%
CirSize
];
// (X + cirSize) % cirSize to ensure that index is positive
const
int
idx
=
((
TS
+
i
-
l
-
dd
)
*
nbTx
+
txAnt
+
CirSize
)
%
CirSize
;
const
struct
complex16
tx16
=
input_sig
[
idx
];
rx_tmp
.
r
+=
tx16
.
r
*
channelModel
[
l
].
r
-
tx16
.
i
*
channelModel
[
l
].
i
;
rx_tmp
.
i
+=
tx16
.
i
*
channelModel
[
l
].
r
+
tx16
.
r
*
channelModel
[
l
].
i
;
}
//l
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment