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
8f5868dc
Commit
8f5868dc
authored
Sep 08, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/fix_calc_power_csirs' into integration_2022_wk36b
parents
2b69a717
0cffcedd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+7
-6
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
8f5868dc
...
...
@@ -261,19 +261,20 @@ int nr_get_csi_rs_signal(const PHY_VARS_NR_UE *ue,
return
0
;
}
uint32_t
calc_power_csirs
(
const
uint16_t
*
x
,
const
fapi_nr_dl_config_csirs_pdu_rel15_t
*
csirs_config_pdu
)
{
uint32_t
calc_power_csirs
(
const
uint16_t
*
x
,
const
fapi_nr_dl_config_csirs_pdu_rel15_t
*
csirs_config_pdu
)
{
uint64_t
sum_x
=
0
;
uint64_t
sum_x2
=
0
;
uint16_t
size
=
0
;
for
(
int
rb
=
csirs_config_pdu
->
start_rb
;
rb
<
(
csirs_config_pdu
->
start_rb
+
csirs_config_pdu
->
nr_of_rbs
)
;
rb
++
)
{
if
(
csirs_config_pdu
->
freq_density
<=
1
&&
csirs_config_pdu
->
freq_density
!=
(
rb
%
2
))
{
for
(
int
rb
=
0
;
rb
<
csirs_config_pdu
->
nr_of_rbs
;
rb
++
)
{
if
(
csirs_config_pdu
->
freq_density
<=
1
&&
csirs_config_pdu
->
freq_density
!=
(
(
rb
+
csirs_config_pdu
->
start_rb
)
%
2
))
{
continue
;
}
sum_x
=
sum_x
+
x
[
rb
-
csirs_config_pdu
->
start_rb
];
sum_x2
=
sum_x2
+
x
[
rb
]
*
x
[
rb
-
csirs_config_pdu
->
start_
rb
];
sum_x
=
sum_x
+
x
[
rb
];
sum_x2
=
sum_x2
+
x
[
rb
]
*
x
[
rb
];
size
++
;
}
return
sum_x2
/
size
-
(
sum_x
/
size
)
*
(
sum_x
/
size
);
return
sum_x2
/
size
-
(
sum_x
/
size
)
*
(
sum_x
/
size
);
}
int
nr_csi_rs_channel_estimation
(
const
PHY_VARS_NR_UE
*
ue
,
...
...
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