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
Michael Black
OpenXG-RAN
Commits
e0314d8b
Commit
e0314d8b
authored
Nov 21, 2016
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to timing drift compensation in rfdevice
parent
958c66c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+2
-2
No files found.
targets/RT/USER/lte-enb.c
View file @
e0314d8b
...
@@ -895,8 +895,8 @@ void rx_rf(PHY_VARS_eNB *eNB,int *frame,int *subframe) {
...
@@ -895,8 +895,8 @@ void rx_rf(PHY_VARS_eNB *eNB,int *frame,int *subframe) {
eNB
->
ts_offset
=
proc
->
timestamp_rx
;
eNB
->
ts_offset
=
proc
->
timestamp_rx
;
else
{
else
{
if
(
proc
->
timestamp_rx
-
old_ts
!=
fp
->
samples_per_tti
)
{
if
(
proc
->
timestamp_rx
-
old_ts
!=
fp
->
samples_per_tti
)
{
LOG_I
(
PHY
,
"rx_rf: rfdevice timing drift of %d samples
\n
"
,
proc
->
timestamp_rx
-
old_ts
);
LOG_I
(
PHY
,
"rx_rf: rfdevice timing drift of %d samples
\n
"
,
proc
->
timestamp_rx
-
old_ts
-
fp
->
samples_per_tti
);
eNB
->
ts_offset
+=
(
proc
->
timestamp_rx
-
old_ts
);
eNB
->
ts_offset
+=
(
proc
->
timestamp_rx
-
old_ts
-
fp
->
samples_per_tti
);
}
}
}
}
proc
->
frame_rx
=
((
proc
->
timestamp_rx
-
eNB
->
ts_offset
)
/
(
fp
->
samples_per_tti
*
10
))
&
1023
;
proc
->
frame_rx
=
((
proc
->
timestamp_rx
-
eNB
->
ts_offset
)
/
(
fp
->
samples_per_tti
*
10
))
&
1023
;
...
...
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