Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Balaji Kolla
openairinterface5G
Commits
980d20c8
Commit
980d20c8
authored
Mar 07, 2019
by
Francesco Mani
Browse files
i_ssb detection message added in pbchsim
parent
6ce8c374
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
980d20c8
...
...
@@ -412,7 +412,6 @@ int main(int argc, char **argv)
// computation of integer and fractional FO to compare with estimation results
int
IFO
;
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
));
if
(
eps
>
0
)
IFO
=
(
int
)(
eps
+
0
.
5
);
...
...
@@ -644,11 +643,11 @@ int main(int argc, char **argv)
if
(
ret
!=
0
)
n_errors
++
;
}
}
//noise trials
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
))
{
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
;
}
...
...
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