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
42c698fd
Commit
42c698fd
authored
Aug 21, 2019
by
Bo Zhao
Committed by
cig
Feb 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix: preamble energy and delay used in the peak detection should be scalar instead of array
parent
21bb011b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
openair1/SIMULATION/NR_PHY/prachsim.c
openair1/SIMULATION/NR_PHY/prachsim.c
+6
-6
No files found.
openair1/SIMULATION/NR_PHY/prachsim.c
View file @
42c698fd
...
@@ -112,7 +112,7 @@ int main(int argc, char **argv)
...
@@ -112,7 +112,7 @@ int main(int argc, char **argv)
int
N_RB_UL
=
273
;
int
N_RB_UL
=
273
;
uint32_t
prach_errors
=
0
;
uint32_t
prach_errors
=
0
;
uint8_t
subframe
=
9
;
uint8_t
subframe
=
9
;
uint16_t
preamble_energy
_list
[
64
],
preamble_tx
=
50
,
preamble_delay_list
[
64
]
;
uint16_t
preamble_energy
,
preamble_tx
=
50
,
preamble_delay
;
uint16_t
preamble_max
,
preamble_energy_max
;
uint16_t
preamble_max
,
preamble_energy_max
;
PRACH_RESOURCES_t
prach_resources
;
PRACH_RESOURCES_t
prach_resources
;
//uint8_t prach_fmt;
//uint8_t prach_fmt;
...
@@ -599,17 +599,17 @@ int main(int argc, char **argv)
...
@@ -599,17 +599,17 @@ int main(int argc, char **argv)
0
,
0
,
subframe
,
subframe
,
&
preamble_rx
,
&
preamble_rx
,
preamble_energy_list
,
&
preamble_energy
,
preamble_delay_list
);
&
preamble_delay
);
printf
(
"preamble_rx %d
\n
"
,
preamble_rx
);
if
(
preamble_rx
!=
preamble_tx
)
if
(
preamble_rx
!=
preamble_tx
)
prach_errors
++
;
prach_errors
++
;
else
{
else
{
delay_avg
+=
(
double
)
preamble_delay
_list
[
preamble_tx
]
;
delay_avg
+=
(
double
)
preamble_delay
;
}
}
if
(
n_frames
==
1
)
{
if
(
n_frames
==
1
)
{
printf
(
"preamble %d (tx %d) : energy %d, delay %d
\n
"
,
preamble_rx
,
preamble_tx
,
preamble_energy
_list
[
0
],
preamble_delay_list
[
0
]
);
printf
(
"preamble %d (tx %d) : energy %d, delay %d
\n
"
,
preamble_rx
,
preamble_tx
,
preamble_energy
,
preamble_delay
);
LOG_M
(
"prach0.m"
,
"prach0"
,
&
txdata
[
0
][
subframe
*
frame_parms
->
samples_per_slot
<<
1
],
frame_parms
->
samples_per_slot
<<
1
,
1
,
1
);
LOG_M
(
"prach0.m"
,
"prach0"
,
&
txdata
[
0
][
subframe
*
frame_parms
->
samples_per_slot
<<
1
],
frame_parms
->
samples_per_slot
<<
1
,
1
,
1
);
...
...
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