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
4a900910
Commit
4a900910
authored
Nov 13, 2021
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix init_timeshift_rotation()
parent
baa2e925
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
openair1/PHY/MODULATION/nr_modulation.c
openair1/PHY/MODULATION/nr_modulation.c
+2
-1
No files found.
openair1/PHY/MODULATION/nr_modulation.c
View file @
4a900910
...
...
@@ -747,8 +747,9 @@ void init_symbol_rotation(NR_DL_FRAME_PARMS *fp) {
void
init_timeshift_rotation
(
NR_DL_FRAME_PARMS
*
fp
)
{
const
int
sample_offset
=
fp
->
nb_prefix_samples
/
fp
->
ofdm_offset_divisor
;
for
(
int
i
=
0
;
i
<
fp
->
ofdm_symbol_size
;
i
++
)
{
double
poff
=
-
i
*
2
.
0
*
M_PI
*
144
.
0
/
2048
.
0
/
fp
->
ofdm_offset_divisor
;
double
poff
=
-
i
*
2
.
0
*
M_PI
*
sample_offset
/
fp
->
ofdm_symbol_size
;
double
exp_re
=
cos
(
poff
);
double
exp_im
=
sin
(
-
poff
);
fp
->
timeshift_symbol_rotation
[
i
*
2
]
=
(
int16_t
)
round
(
exp_re
*
32767
);
...
...
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