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
zzha zzha
OpenXG-RAN
Commits
d988214e
Commit
d988214e
authored
Mar 01, 2016
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug info for power control
parent
0022ccf7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
openair1/PHY/LTE_TRANSPORT/power_control.c
openair1/PHY/LTE_TRANSPORT/power_control.c
+5
-5
No files found.
openair1/PHY/LTE_TRANSPORT/power_control.c
View file @
d988214e
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "PHY/defs.h"
#include "PHY/defs.h"
#include "PHY/impl_defs_lte.h"
#include "PHY/impl_defs_lte.h"
//
#define DEBUG_PC 1
#define DEBUG_PC 1
/*
/*
double ratioPB[2][4]={{ 1.0,4.0/5.0,3.0/5.0,2.0/5.0},
double ratioPB[2][4]={{ 1.0,4.0/5.0,3.0/5.0,2.0/5.0},
...
@@ -64,7 +64,7 @@ double computeRhoA_eNB(PDSCH_CONFIG_DEDICATED *pdsch_config_dedicated,
...
@@ -64,7 +64,7 @@ double computeRhoA_eNB(PDSCH_CONFIG_DEDICATED *pdsch_config_dedicated,
dlsch_eNB
->
sqrt_rho_a
=
(
short
)
(
sqrt_rho_a_lin
*
pow
(
2
,
13
));
dlsch_eNB
->
sqrt_rho_a
=
(
short
)
(
sqrt_rho_a_lin
*
pow
(
2
,
13
));
#ifdef DEBUG_PC
#ifdef DEBUG_PC
printf
(
"
sqrt_rho_a(eNB):%d
\n
"
,
dlsch_eNB
->
sqrt_rho_a
);
printf
(
"
eNB: p_a=%d, value=%f, sqrt_rho_a=%d
\n
"
,
pdsch_config_dedicated
->
p_a
,
pa_values
[
pdsch_config_dedicated
->
p_a
]
,
dlsch_eNB
->
sqrt_rho_a
);
#endif
#endif
return
(
rho_a_dB
);
return
(
rho_a_dB
);
...
@@ -92,7 +92,7 @@ double computeRhoB_eNB(PDSCH_CONFIG_DEDICATED *pdsch_config_dedicated,
...
@@ -92,7 +92,7 @@ double computeRhoB_eNB(PDSCH_CONFIG_DEDICATED *pdsch_config_dedicated,
dlsch_eNB
->
sqrt_rho_b
=
(
short
)
(
sqrt_rho_b_lin
*
pow
(
2
,
13
));
dlsch_eNB
->
sqrt_rho_b
=
(
short
)
(
sqrt_rho_b_lin
*
pow
(
2
,
13
));
#ifdef DEBUG_PC
#ifdef DEBUG_PC
printf
(
"
sqrt_rho_b(eNB):%d
\n
"
,
dlsch_eNB
->
sqrt_rho_b
);
printf
(
"
eNB: n_ant=%d, p_b=%d -> rho_b/rho_a=%f -> sqrt_rho_b=%d
\n
"
,
n_antenna_port
,
pdsch_config_common
->
p_b
,
ratioPB
[
1
][
pdsch_config_common
->
p_b
]
,
dlsch_eNB
->
sqrt_rho_b
);
#endif
#endif
return
(
rho_b_dB
);
return
(
rho_b_dB
);
}
}
...
@@ -121,7 +121,7 @@ double computeRhoA_UE(PDSCH_CONFIG_DEDICATED *pdsch_config_dedicated,
...
@@ -121,7 +121,7 @@ double computeRhoA_UE(PDSCH_CONFIG_DEDICATED *pdsch_config_dedicated,
dlsch_ue
->
sqrt_rho_a
=
(
short
)
(
sqrt_rho_a_lin
*
pow
(
2
,
13
));
dlsch_ue
->
sqrt_rho_a
=
(
short
)
(
sqrt_rho_a_lin
*
pow
(
2
,
13
));
#ifdef DEBUG_PC
#ifdef DEBUG_PC
printf
(
"
sqrt_rho_a(ue):%d
\n
"
,
dlsch_ue
->
sqrt_rho_a
);
printf
(
"
UE: p_a=%d, value=%f, dl_power_off=%d, sqrt_rho_a=%d
\n
"
,
pdsch_config_dedicated
->
p_a
,
pa_values
[
pdsch_config_dedicated
->
p_a
],
dl_power_off
,
dlsch_ue
->
sqrt_rho_a
);
#endif
#endif
return
(
rho_a_dB
);
return
(
rho_a_dB
);
...
@@ -149,7 +149,7 @@ double computeRhoB_UE(PDSCH_CONFIG_DEDICATED *pdsch_config_dedicated,
...
@@ -149,7 +149,7 @@ double computeRhoB_UE(PDSCH_CONFIG_DEDICATED *pdsch_config_dedicated,
dlsch_ue
->
sqrt_rho_b
=
(
short
)
(
sqrt_rho_b_lin
*
pow
(
2
,
13
));
dlsch_ue
->
sqrt_rho_b
=
(
short
)
(
sqrt_rho_b_lin
*
pow
(
2
,
13
));
#ifdef DEBUG_PC
#ifdef DEBUG_PC
printf
(
"
sqrt_rho_b(ue):%d
\n
"
,
dlsch_ue
->
sqrt_rho_b
);
printf
(
"
UE: p_b=%d, n_ant=%d -> ratio=%f -> sqrt_rho_b=%d
\n
"
,
pdsch_config_common
->
p_b
,
n_antenna_port
,
ratioPB
[
1
][
pdsch_config_common
->
p_b
]
,
dlsch_ue
->
sqrt_rho_b
);
#endif
#endif
return
(
rho_b_dB
);
return
(
rho_b_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