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
alex037yang
OpenXG-RAN
Commits
980d20c8
Commit
980d20c8
authored
Mar 07, 2019
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i_ssb detection message added in pbchsim
parent
6ce8c374
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
openair1/SIMULATION/NR_PHY/pbchsim.c
openair1/SIMULATION/NR_PHY/pbchsim.c
+1
-2
No files found.
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
980d20c8
...
@@ -412,7 +412,6 @@ int main(int argc, char **argv)
...
@@ -412,7 +412,6 @@ int main(int argc, char **argv)
// computation of integer and fractional FO to compare with estimation results
// computation of integer and fractional FO to compare with estimation results
int
IFO
;
int
IFO
;
if
(
eps
!=
0
.
0
){
if
(
eps
!=
0
.
0
){
UE
->
UE_fo_compensation
=
1
;
printf
(
"Introducing a CFO of %lf relative to SCS of %d kHz
\n
"
,
eps
,(
int
)(
scs
/
1000
));
printf
(
"Introducing a CFO of %lf relative to SCS of %d kHz
\n
"
,
eps
,(
int
)(
scs
/
1000
));
if
(
eps
>
0
)
if
(
eps
>
0
)
IFO
=
(
int
)(
eps
+
0
.
5
);
IFO
=
(
int
)(
eps
+
0
.
5
);
...
@@ -644,11 +643,11 @@ int main(int argc, char **argv)
...
@@ -644,11 +643,11 @@ int main(int argc, char **argv)
if
(
ret
!=
0
)
n_errors
++
;
if
(
ret
!=
0
)
n_errors
++
;
}
}
}
//noise trials
}
//noise trials
printf
(
"SNR %f: trials %d, n_errors_crc = %d, n_errors_payload %d
\n
"
,
SNR
,
n_trials
,
n_errors
,
n_errors_payload
);
printf
(
"SNR %f: trials %d, n_errors_crc = %d, n_errors_payload %d
\n
"
,
SNR
,
n_trials
,
n_errors
,
n_errors_payload
);
if
(((
float
)
n_errors
/
(
float
)
n_trials
<=
target_error_rate
)
&&
(
n_errors_payload
==
0
))
{
if
(((
float
)
n_errors
/
(
float
)
n_trials
<=
target_error_rate
)
&&
(
n_errors_payload
==
0
))
{
printf
(
"PBCH test OK
\n
"
);
printf
(
"PBCH test OK
\n
"
);
printf
(
"Synchronization obtained for i_ssb = %d
\n
"
,
UE
->
rx_ind
.
rx_indication_body
[
0
].
mib_pdu
.
ssb_index
);
break
;
break
;
}
}
...
...
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