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
lizhongxiao
OpenXG-RAN
Commits
2d96262d
Commit
2d96262d
authored
May 18, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix channel estimation based on CSI-RS
parent
e5c4e0f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
31 deletions
+2
-31
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+2
-31
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
2d96262d
...
...
@@ -150,34 +150,6 @@ int nr_get_csi_rs_signal(PHY_VARS_NR_UE *ue,
return
0
;
}
int
get_wf
(
int
kp
,
int
s
)
{
int
wf
=
0
;
if
(
kp
==
0
)
{
wf
=
1
;
}
else
{
wf
=
-
2
*
(
s
%
2
)
+
1
;
}
return
wf
;
}
int
get_wt
(
int
lp
,
int
s
)
{
int
wt
=
0
;
if
(
s
<
2
)
{
wt
=
1
;
}
else
if
(
s
<
4
)
{
wt
=
-
2
*
(
lp
%
2
)
+
1
;
}
else
if
(
s
<
6
)
{
wt
=
-
2
*
(
lp
/
2
)
+
1
;
}
else
{
if
((
lp
==
0
)
||
(
lp
==
3
))
{
wt
=
1
;
}
else
{
wt
=
-
1
;
}
}
return
wt
;
}
uint32_t
calc_power_csirs
(
uint16_t
*
x
,
fapi_nr_dl_config_csirs_pdu_rel15_t
*
csirs_config_pdu
)
{
uint64_t
sum_x
=
0
;
uint64_t
sum_x2
=
0
;
...
...
@@ -245,9 +217,8 @@ int nr_csi_rs_channel_estimation(PHY_VARS_NR_UE *ue,
// This is not just the LS estimation for each (k,l), but also the sum of the different contributions
// for the sake of optimizing the memory used.
int
w
=
get_wf
(
kp
,
s
)
*
get_wt
(
lp
,
s
);
csi_rs_ls_estimated_channel
[
kinit
<<
1
]
+=
w
*
csi_rs_ls_estimated_channel_re
;
csi_rs_ls_estimated_channel
[(
kinit
<<
1
)
+
1
]
+=
w
*
csi_rs_ls_estimated_channel_im
;
csi_rs_ls_estimated_channel
[
kinit
<<
1
]
+=
csi_rs_ls_estimated_channel_re
;
csi_rs_ls_estimated_channel
[(
kinit
<<
1
)
+
1
]
+=
csi_rs_ls_estimated_channel_im
;
}
}
}
...
...
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