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
canghaiwuhen
OpenXG-RAN
Commits
cea1cfcd
Commit
cea1cfcd
authored
Jan 02, 2017
by
Xiwen JIANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce beamforming weights normalisation shift value
parent
453b2fd2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
openair1/PHY/MODULATION/compute_bf_weights.c
openair1/PHY/MODULATION/compute_bf_weights.c
+9
-8
No files found.
openair1/PHY/MODULATION/compute_bf_weights.c
View file @
cea1cfcd
...
@@ -19,11 +19,11 @@ int read_calibration_matrix(int32_t **tdd_calib_coeffs, char *calibF_fname, LTE_
...
@@ -19,11 +19,11 @@ int read_calibration_matrix(int32_t **tdd_calib_coeffs, char *calibF_fname, LTE_
exit
(
1
);
exit
(
1
);
}
}
sprintf
(
calibF_file_name
,
"%s/targets/PROJECTS/TDDREC/result
s
/%s"
,
openair_dir
,
calibF_fname
);
sprintf
(
calibF_file_name
,
"%s/targets/PROJECTS/TDDREC/result/%s"
,
openair_dir
,
calibF_fname
);
calibF_fd
=
fopen
(
calibF_file_name
,
"r"
)
;
calibF_fd
=
fopen
(
calibF_file_name
,
"r"
)
;
if
(
calibF_fd
==
NULL
)
{
if
(
calibF_fd
==
NULL
)
{
printf
(
"Warning: %s not found, running with defaults
\n
"
,
calibF_fname
);
printf
(
"Warning: %s not found, running with defaults
\n
"
,
calibF_f
ile_
name
);
return
(
1
);
return
(
1
);
}
}
...
@@ -72,14 +72,15 @@ void compute_BF_weights(int32_t **beam_weights, int32_t **calib_dl_ch_estimates,
...
@@ -72,14 +72,15 @@ void compute_BF_weights(int32_t **beam_weights, int32_t **calib_dl_ch_estimates,
case
MRT
:
case
MRT
:
for
(
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_tx
;
aa
++
)
{
for
(
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_tx
;
aa
++
)
{
for
(
re
=
0
;
re
<
frame_parms
->
N_RB_DL
*
6
;
re
++
)
{
for
(
re
=
0
;
re
<
frame_parms
->
N_RB_DL
*
6
;
re
++
)
{
((
int16_t
*
)(
&
beam_weights
[
aa
][
frame_parms
->
first_carrier_offset
+
re
]))[
0
]
=
((
int16_t
*
)(
&
calib_dl_ch_estimates
[
aa
][
re
]))[
0
]
<<
6
;
//normalisation simplied by a constent shift
((
int16_t
*
)(
&
beam_weights
[
aa
][
frame_parms
->
first_carrier_offset
+
re
]))[
1
]
=
-
((
int16_t
*
)(
&
calib_dl_ch_estimates
[
aa
][
re
]))[
1
]
<<
6
;
((
int16_t
*
)(
&
beam_weights
[
aa
][
frame_parms
->
first_carrier_offset
+
re
]))[
0
]
=
((
int16_t
*
)(
&
calib_dl_ch_estimates
[
aa
][
re
]))[
0
]
<<
4
;
//Normalisation not implemented
((
int16_t
*
)(
&
beam_weights
[
aa
][
frame_parms
->
first_carrier_offset
+
re
]))[
1
]
=
-
((
int16_t
*
)(
&
calib_dl_ch_estimates
[
aa
][
re
]))[
1
]
<<
4
;
}
}
for
(
re
=
frame_parms
->
N_RB_DL
*
6
;
re
<
frame_parms
->
N_RB_DL
*
12
;
re
++
)
{
for
(
re
=
frame_parms
->
N_RB_DL
*
6
;
re
<
frame_parms
->
N_RB_DL
*
12
;
re
++
)
{
((
int16_t
*
)(
&
beam_weights
[
aa
][
re
-
frame_parms
->
N_RB_DL
*
6
+
1
]))[
0
]
=
((
int16_t
*
)(
&
calib_dl_ch_estimates
[
aa
][
re
]))[
0
]
<<
6
;
//normalisation simplied by a constent shift
((
int16_t
*
)(
&
beam_weights
[
aa
][
re
-
frame_parms
->
N_RB_DL
*
6
+
1
]))[
1
]
=
-
((
int16_t
*
)(
&
calib_dl_ch_estimates
[
aa
][
re
]))[
1
]
<<
6
;
((
int16_t
*
)(
&
beam_weights
[
aa
][
re
-
frame_parms
->
N_RB_DL
*
6
+
1
]))[
0
]
=
((
int16_t
*
)(
&
calib_dl_ch_estimates
[
aa
][
re
]))[
0
]
<<
4
;
//Normalisation not implemented
((
int16_t
*
)(
&
beam_weights
[
aa
][
re
-
frame_parms
->
N_RB_DL
*
6
+
1
]))[
1
]
=
-
((
int16_t
*
)(
&
calib_dl_ch_estimates
[
aa
][
re
]))[
1
]
<<
4
;
}
}
}
}
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