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
ff206dba
Commit
ff206dba
authored
Aug 25, 2022
by
Marwan Hammouda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PUCCH plots removed as no data available
parent
a3913afb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
48 deletions
+10
-48
openair1/PHY/TOOLS/nr_phy_qt_scope.cpp
openair1/PHY/TOOLS/nr_phy_qt_scope.cpp
+10
-47
openair1/PHY/TOOLS/nr_phy_qt_scope.h
openair1/PHY/TOOLS/nr_phy_qt_scope.h
+0
-1
No files found.
openair1/PHY/TOOLS/nr_phy_qt_scope.cpp
View file @
ff206dba
...
@@ -46,8 +46,8 @@ KPIListSelectgNB::KPIListSelectgNB(QWidget *parent) : QComboBox(parent)
...
@@ -46,8 +46,8 @@ KPIListSelectgNB::KPIListSelectgNB(QWidget *parent) : QComboBox(parent)
this
->
addItem
(
"I/Q PUSCH"
,
0
);
this
->
addItem
(
"I/Q PUSCH"
,
0
);
this
->
addItem
(
"LLR PUSCH"
,
1
);
this
->
addItem
(
"LLR PUSCH"
,
1
);
this
->
addItem
(
"Channel Response"
,
2
);
this
->
addItem
(
"Channel Response"
,
2
);
this
->
addItem
(
"
I/Q PUCCH
"
,
3
);
this
->
addItem
(
"
KPI4
"
,
3
);
this
->
addItem
(
"
LLR PUCCH
"
,
4
);
this
->
addItem
(
"
KPI5
"
,
4
);
this
->
addItem
(
"KPI6"
,
5
);
this
->
addItem
(
"KPI6"
,
5
);
}
}
KPIListSelectgNB
::~
KPIListSelectgNB
()
KPIListSelectgNB
::~
KPIListSelectgNB
()
...
@@ -100,10 +100,6 @@ void PainterWidgetgNB::makeConnections()
...
@@ -100,10 +100,6 @@ void PainterWidgetgNB::makeConnections()
{
{
connect
(
timer
,
&
QTimer
::
timeout
,
this
,
&
PainterWidgetgNB
::
KPI_ChannelResponse
);
connect
(
timer
,
&
QTimer
::
timeout
,
this
,
&
PainterWidgetgNB
::
KPI_ChannelResponse
);
}
}
else
if
(
this
->
indexToPlot
==
4
)
{
connect
(
timer
,
&
QTimer
::
timeout
,
this
,
&
PainterWidgetgNB
::
KPI_PucchLLR
);
}
timer
->
start
(
100
);
// paintPixmap_xx every 100ms
timer
->
start
(
100
);
// paintPixmap_xx every 100ms
...
@@ -273,44 +269,6 @@ void PainterWidgetgNB::KPI_ChannelResponse()
...
@@ -273,44 +269,6 @@ void PainterWidgetgNB::KPI_ChannelResponse()
update
();
update
();
}
}
void
PainterWidgetgNB
::
KPI_PucchLLR
()
{
// erase the previous paint
this
->
pix
->
fill
(
QColor
(
240
,
240
,
240
));
//paint the axis and I/Q samples
scopeData_t
*
tmp
=
(
scopeData_t
*
)
this
->
p
->
gNB
->
scopeData
;
scopeGraphData_t
**
data
=
(
scopeGraphData_t
**
)
tmp
->
liveData
;
const
int
sz
=
data
[
pucchllr
]
->
colSz
*
data
[
pucchllr
]
->
lineSz
;
int16_t
*
pucch_llr
=
(
int16_t
*
)
(
data
[
pucchllr
]
+
1
);
float
*
llr
,
*
bit
;
/*
float llrBuffer[sz] = { 0 }, bitBuffer[sz] = { 0 };
llr = llrBuffer;
bit = bitBuffer;
for (int i=0; i<sz; i++)
{
llr[i] = (float) pucch_llr[i];
bit[i] = (float) i;
}
QColor MarkerColor(0, 255, 255);
const QString xLabel = QString("Symbol Index");
const QString yLabel = QString("LLR");
createPixMap(bit, llr, sz, MarkerColor, xLabel, yLabel, false);
*/
update
();
}
void
PainterWidgetgNB
::
createPixMap
(
float
*
xData
,
float
*
yData
,
int
len
,
QColor
MarkerColor
,
void
PainterWidgetgNB
::
createPixMap
(
float
*
xData
,
float
*
yData
,
int
len
,
QColor
MarkerColor
,
const
QString
xLabel
,
const
QString
yLabel
,
bool
scaleX
)
const
QString
xLabel
,
const
QString
yLabel
,
bool
scaleX
)
{
{
...
@@ -1459,7 +1417,9 @@ void *nrgNBQtscopeThread(void *arg)
...
@@ -1459,7 +1417,9 @@ void *nrgNBQtscopeThread(void *arg)
PainterWidgetgNB
pwidgetgnbCombo1
(
combo1
,
p
);
// I/Q PUSCH
PainterWidgetgNB
pwidgetgnbCombo1
(
combo1
,
p
);
// I/Q PUSCH
PainterWidgetgNB
pwidgetgnbCombo2
(
combo2
,
p
);
// LLR PUSCH
PainterWidgetgNB
pwidgetgnbCombo2
(
combo2
,
p
);
// LLR PUSCH
PainterWidgetgNB
pwidgetgnbCombo3
(
combo3
,
p
);
// Channel Response
PainterWidgetgNB
pwidgetgnbCombo3
(
combo3
,
p
);
// Channel Response
PainterWidgetgNB
pwidgetgnbCombo5
(
combo5
,
p
);
// LLR PUCCH
PainterWidgetgNB
pwidgetgnbCombo4
(
combo4
,
p
);
//
PainterWidgetgNB
pwidgetgnbCombo5
(
combo5
,
p
);
//
PainterWidgetgNB
pwidgetgnbCombo6
(
combo6
,
p
);
//
while
(
true
)
while
(
true
)
...
@@ -1489,11 +1449,11 @@ void *nrgNBQtscopeThread(void *arg)
...
@@ -1489,11 +1449,11 @@ void *nrgNBQtscopeThread(void *arg)
RightLayout
->
addStretch
();
// space for later plots
RightLayout
->
addStretch
();
// space for later plots
RightLayout
->
addWidget
(
combo4
);
RightLayout
->
addWidget
(
combo4
);
//
RightLayout->addWidget(&pwidgetgnbCombo4,20);
RightLayout
->
addWidget
(
&
pwidgetgnbCombo4
,
20
);
RightLayout
->
addStretch
();
// space for later plots
RightLayout
->
addStretch
();
// space for later plots
RightLayout
->
addWidget
(
combo6
);
//
RightLayout
->
addWidget
(
combo6
);
//
//RightLayout->addWidget(&pwidgetuePdcchLLR
,20);
RightLayout
->
addWidget
(
&
pwidgetgnbCombo6
,
20
);
RightLayout
->
addStretch
();
// space for later plots
RightLayout
->
addStretch
();
// space for later plots
...
@@ -1507,6 +1467,9 @@ void *nrgNBQtscopeThread(void *arg)
...
@@ -1507,6 +1467,9 @@ void *nrgNBQtscopeThread(void *arg)
pwidgetgnbCombo1
.
makeConnections
();
pwidgetgnbCombo1
.
makeConnections
();
pwidgetgnbCombo2
.
makeConnections
();
pwidgetgnbCombo2
.
makeConnections
();
pwidgetgnbCombo3
.
makeConnections
();
pwidgetgnbCombo3
.
makeConnections
();
pwidgetgnbCombo4
.
makeConnections
();
pwidgetgnbCombo5
.
makeConnections
();
pwidgetgnbCombo6
.
makeConnections
();
// display the main window
// display the main window
window
->
show
();
window
->
show
();
...
...
openair1/PHY/TOOLS/nr_phy_qt_scope.h
View file @
ff206dba
...
@@ -157,7 +157,6 @@ public slots:
...
@@ -157,7 +157,6 @@ public slots:
void
KPI_PuschIQ
();
void
KPI_PuschIQ
();
void
KPI_PuschLLR
();
void
KPI_PuschLLR
();
void
KPI_ChannelResponse
();
void
KPI_ChannelResponse
();
void
KPI_PucchLLR
();
private:
private:
scopeData_t
*
p
;
scopeData_t
*
p
;
...
...
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