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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
56970390
Commit
56970390
authored
Oct 30, 2025
by
Bartosz Podrygajlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RFsim: handle additional channel offset from CLI
Handle extra channel offset coming from CLI parameter prop_delay.
parent
d6bd2d29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
radio/rfsimulator/simulator.cpp
radio/rfsimulator/simulator.cpp
+6
-3
No files found.
radio/rfsimulator/simulator.cpp
View file @
56970390
...
...
@@ -1267,14 +1267,14 @@ static void rfsimulator_read_internal(rfsimulator_state_t *t,
}
else
{
if
(
is_first_beam
&&
is_first_peer
&&
(
ptr
->
nbAnt
==
1
||
nbAnt
==
1
))
{
// optimization: The buffer is uninitialized so samples can be written directly in the buffer
combine_received_beams
(
t
,
ptr
->
received_packets
,
timestamp
,
1
,
nsamps
,
rx_beam_id
,
samples
);
combine_received_beams
(
t
,
ptr
->
received_packets
,
timestamp
-
t
->
chan_offset
,
1
,
nsamps
,
rx_beam_id
,
samples
);
}
else
{
std
::
vector
<
std
::
vector
<
c16_t
>>
ant_buffers
(
ptr
->
nbAnt
,
std
::
vector
<
c16_t
>
(
nsamps
,
{
0
,
0
}));
c16_t
*
input
[
ant_buffers
.
size
()];
for
(
uint
aatx
=
0
;
aatx
<
ant_buffers
.
size
();
aatx
++
)
{
input
[
aatx
]
=
ant_buffers
[
aatx
].
data
();
}
combine_received_beams
(
t
,
ptr
->
received_packets
,
timestamp
,
ptr
->
nbAnt
,
nsamps
,
rx_beam_id
,
input
);
combine_received_beams
(
t
,
ptr
->
received_packets
,
timestamp
-
t
->
chan_offset
,
ptr
->
nbAnt
,
nsamps
,
rx_beam_id
,
input
);
for
(
int
aarx
=
0
;
aarx
<
nbAnt
;
aarx
++
)
{
double
H_awgn_mimo_coeff
[
ant_buffers
.
size
()];
for
(
int
aatx
=
0
;
aatx
<
(
int
)
ant_buffers
.
size
();
aatx
++
)
{
...
...
@@ -1455,7 +1455,10 @@ static int rfsimulator_read_beams(openair0_device *device,
if
(
ptr
->
conn_sock
!=
-
1
&&
!
ptr
->
received_packets
.
empty
())
{
openair0_timestamp
timestamp_to_free
=
t
->
nextRxTstamp
-
1
;
if
(
ptr
->
channel_model
)
{
timestamp_to_free
-=
(
ptr
->
channel_model
->
channel_length
-
1
)
+
ptr
->
channel_model
->
channel_offset
;
timestamp_to_free
-=
(
ptr
->
channel_model
->
channel_length
-
1
)
+
std
::
max
(
ptr
->
channel_model
->
channel_offset
,
t
->
chan_offset
);
}
else
{
timestamp_to_free
-=
t
->
chan_offset
;
}
clear_old_packets
(
ptr
->
received_packets
,
timestamp_to_free
);
}
...
...
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