Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
qtcpp_demo
提交
8036b7b5
qtcpp_demo
项目概览
colorEagleStdio
/
qtcpp_demo
通知
466
Star
24
Fork
12
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
qtcpp_demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8036b7b5
编写于
1月 21, 2021
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add bandwidth option
上级
c278a17f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
41 addition
and
8 deletion
+41
-8
uhd_cpp/uhd_spectrum/specwidget.cpp
uhd_cpp/uhd_spectrum/specwidget.cpp
+12
-1
uhd_cpp/uhd_spectrum/specwidget.h
uhd_cpp/uhd_spectrum/specwidget.h
+2
-0
uhd_cpp/uhd_spectrum/specwidget.ui
uhd_cpp/uhd_spectrum/specwidget.ui
+27
-7
未找到文件。
uhd_cpp/uhd_spectrum/specwidget.cpp
浏览文件 @
8036b7b5
...
...
@@ -8,7 +8,7 @@
#include <QFileDialog>
specWidget
::
specWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
),
ui
(
new
Ui
::
specWidget
),
ui
(
new
Ui
::
specWidget
),
m_attenMod
(
new
QStandardItemModel
(
this
)),
m_runth
(
new
uhd_io_thread
(
this
)),
m_saveth
(
new
uhd_io_thread
(
this
)),
...
...
@@ -613,3 +613,14 @@ void specWidget::on_checkBox_save_stateChanged(int arg1)
{
m_bSaveToFile
=
arg1
==
0
?
false
:
true
;
}
void
specWidget
::
on_spinBox_bw_valueChanged
(
int
arg1
)
{
double
bw
=
arg1
*
1000
;
if
(
bw
>
ui
->
plotter
->
getSampleRate
())
bw
=
ui
->
plotter
->
getSampleRate
();
if
(
bw
<
200000
)
bw
=
200000
;
if
(
usrp
)
usrp
->
set_rx_bandwidth
(
bw
,
m_channel
);
}
uhd_cpp/uhd_spectrum/specwidget.h
浏览文件 @
8036b7b5
...
...
@@ -111,6 +111,8 @@ private slots:
void
on_checkBox_save_stateChanged
(
int
arg1
);
void
on_spinBox_bw_valueChanged
(
int
arg1
);
private:
void
loadSettings
();
void
saveSettings
();
...
...
uhd_cpp/uhd_spectrum/specwidget.ui
浏览文件 @
8036b7b5
...
...
@@ -6,7 +6,7 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
7
87
</width>
<width>
7
93
</width>
<height>
466
</height>
</rect>
</property>
...
...
@@ -237,8 +237,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
3
1
0
</width>
<height>
3
48
</height>
<width>
3
2
0
</width>
<height>
3
70
</height>
</rect>
</property>
<attribute
name=
"label"
>
...
...
@@ -352,6 +352,26 @@
</property>
</widget>
</item>
<item
row=
"6"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_12"
>
<property
name=
"text"
>
<string>
BW(Khz)
</string>
</property>
</widget>
</item>
<item
row=
"6"
column=
"1"
>
<widget
class=
"QSpinBox"
name=
"spinBox_bw"
>
<property
name=
"minimum"
>
<number>
2
</number>
</property>
<property
name=
"maximum"
>
<number>
200000
</number>
</property>
<property
name=
"singleStep"
>
<number>
1
</number>
</property>
</widget>
</item>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"page_view"
>
...
...
@@ -359,8 +379,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
166
</width>
<height>
164
</height>
<width>
320
</width>
<height>
370
</height>
</rect>
</property>
<attribute
name=
"label"
>
...
...
@@ -523,8 +543,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
3
1
0
</width>
<height>
3
48
</height>
<width>
3
2
0
</width>
<height>
3
70
</height>
</rect>
</property>
<attribute
name=
"label"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录