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
lizhongxiao
OpenXG-RAN
Commits
7d86bb5f
Commit
7d86bb5f
authored
Oct 12, 2023
by
Marwan Hammouda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating ta command again enabled
parent
c6ce6b79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+5
-4
No files found.
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
7d86bb5f
...
...
@@ -237,9 +237,10 @@ static uint64_t idx = 0;
static
int
lastFrame
;
void
ue_ta_procedures
(
PHY_VARS_NR_UE
*
ue
,
int
slot_tx
,
int
frame_tx
)
{
if
(
(
frame_tx
==
ue
->
ta_frame
&&
slot_tx
==
ue
->
ta_slot
&&
idx
==
0
)
||
(
frame_tx
==
ue
->
ta_frame
&&
slot_tx
==
ue
->
ta_slot
&&
(
frame_tx
-
lastFrame
)
==
100
)
)
{
//if ( (frame_tx == ue->ta_frame && slot_tx == ue->ta_slot && idx == 0) ||
//(frame_tx == ue->ta_frame && slot_tx == ue->ta_slot && (frame_tx - lastFrame) == 100) ) {
if
(
frame_tx
==
ue
->
ta_frame
&&
slot_tx
==
ue
->
ta_slot
){
lastFrame
=
frame_tx
;
idx
=
1
;
...
...
@@ -253,7 +254,7 @@ void ue_ta_procedures(PHY_VARS_NR_UE *ue, int slot_tx, int frame_tx)
// = 16 * ofdm_symbol_size / 2048
uint16_t
bw_scaling
=
16
*
ofdm_symbol_size
/
2048
;
//
ue->timing_advance += (ue->ta_command - 31) * bw_scaling;
ue
->
timing_advance
+=
(
ue
->
ta_command
-
31
)
*
bw_scaling
;
LOG_I
(
PHY
,
"In %s: [UE %d] [%d.%d] Got timing advance command %u from MAC, new value is %d
\n
"
,
__FUNCTION__
,
...
...
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