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
wangwenhui
OpenXG-RAN
Commits
f833d1d9
Commit
f833d1d9
authored
Dec 08, 2020
by
cig
Committed by
Thomas Schlichter
Dec 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug code for USRP Noise Figure in nr_ue_rrc_measurements
parent
fb4248fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
openair1/PHY/NR_UE_ESTIMATION/nr_ue_measurements.c
openair1/PHY/NR_UE_ESTIMATION/nr_ue_measurements.c
+6
-0
No files found.
openair1/PHY/NR_UE_ESTIMATION/nr_ue_measurements.c
View file @
f833d1d9
...
...
@@ -304,6 +304,12 @@ void nr_ue_rrc_measurements(PHY_VARS_NR_UE *ue,
}
ue
->
measurements
.
n0_power_tot_dB
=
(
unsigned
short
)
dB_fixed
(
ue
->
measurements
.
n0_power_tot
/
aarx
);
#ifdef DEBUG_MEAS_RRC
int
nf_usrp
=
ue
->
measurements
.
n0_power_tot_dB
+
30
-
((
int
)
openair0_cfg
[
0
].
rx_gain
[
0
]
-
(
int
)
openair0_cfg
[
0
].
rx_gain_offset
[
0
])
-
90
-
(
-
174
+
dB_fixed
(
30000
/*scs*/
)
+
dB_fixed
(
ue
->
frame_parms
.
ofdm_symbol_size
));
LOG_D
(
PHY
,
"In %s slot %d NF USRP %d dBm
\n
"
,
__FUNCTION__
,
nf_usrp
);
#endif
LOG_I
(
PHY
,
"In %s slot %d Noise Level %d ue->measurements.n0_power_tot_dB %d
\n
"
,
__FUNCTION__
,
slot
,
ue
->
measurements
.
n0_power_tot
,
ue
->
measurements
.
n0_power_tot_dB
);
}
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