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
zzha zzha
OpenXG-RAN
Commits
6e4bbe8f
Commit
6e4bbe8f
authored
Apr 06, 2022
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PMI computation for rank=2 case
parent
66b3fffb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+8
-6
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
6e4bbe8f
...
...
@@ -484,7 +484,7 @@ int nr_csi_rs_pmi_estimation(PHY_VARS_NR_UE *ue,
return
0
;
}
if
(
rank_indicator
==
0
)
{
if
(
rank_indicator
==
0
||
rank_indicator
==
1
)
{
uint32_t
metric
[
4
]
=
{
0
};
uint16_t
shift
=
nr_csi_rs_info
->
log2_maxh
+
log2_approx
(
frame_parms
->
nb_antennas_rx
)
+
log2_approx
(
csirs_config_pdu
->
nr_of_rbs
)
-
1
;
...
...
@@ -518,14 +518,16 @@ int nr_csi_rs_pmi_estimation(PHY_VARS_NR_UE *ue,
}
}
for
(
int
tested_i2
=
0
;
tested_i2
<
4
;
tested_i2
++
)
{
if
(
metric
[
tested_i2
]
>
metric
[
i2
[
0
]])
{
i2
[
0
]
=
tested_i2
;
if
(
rank_indicator
==
0
)
{
for
(
int
tested_i2
=
0
;
tested_i2
<
4
;
tested_i2
++
)
{
if
(
metric
[
tested_i2
]
>
metric
[
i2
[
0
]])
{
i2
[
0
]
=
tested_i2
;
}
}
}
else
{
i2
[
0
]
=
metric
[
0
]
+
metric
[
2
]
>
metric
[
1
]
+
metric
[
3
]
?
0
:
1
;
}
}
else
if
(
rank_indicator
==
1
)
{
}
else
{
LOG_W
(
NR_PHY
,
"PMI computation is not implemented for rank indicator %i
\n
"
,
rank_indicator
);
}
...
...
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