Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
m0_63117999
taskbus
提交
cdadc36d
taskbus
项目概览
m0_63117999
/
taskbus
与 Fork 源项目一致
Fork自
colorEagleStdio / taskbus
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
taskbus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
cdadc36d
编写于
10月 11, 2022
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整策略,在连续发射时,要向外输出水位,以便及时准备数据
上级
767ce4ff
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
35 addition
and
32 deletion
+35
-32
modules/uhd/uhd_usrp_continous/uhd_io_continous.cpp
modules/uhd/uhd_usrp_continous/uhd_io_continous.cpp
+16
-16
modules/uhd/uhd_usrp_io/uhd_io.cpp
modules/uhd/uhd_usrp_io/uhd_io.cpp
+19
-16
未找到文件。
modules/uhd/uhd_usrp_continous/uhd_io_continous.cpp
浏览文件 @
cdadc36d
...
...
@@ -477,6 +477,22 @@ int do_iio(const cmdlineParser & args)
try
{
while
(
!
stop_signal_called
)
{
if
(
i_txWaterMark
>
0
)
{
qint64
watM
=
stdin_pos
[
0
]
-
tx_pos
;
if
(
tx_channel_count
>
1
)
{
qint64
wat2
=
stdin_pos
[
1
]
-
tx_pos
;
if
(
wat2
<
watM
)
watM
=
wat2
;
}
TASKBUS
::
push_subject
(
i_txWaterMark
,
instance
,
sizeof
(
qint64
),
(
unsigned
char
*
)
&
watM
);
}
bool
can_send
=
true
;
for
(
int
ch
=
0
;
ch
<
tx_channel_count
&&
can_send
;
++
ch
)
{
...
...
@@ -510,22 +526,6 @@ int do_iio(const cmdlineParser & args)
(
const
void
**
)
tx_buff_ptr
.
data
(),
tx_sps_buff
,
&
tx_meta
,
0.1
,
&
num_sps_sent
));
tx_pos
+=
num_sps_sent
;
if
(
i_txWaterMark
>
0
)
{
qint64
watM
=
stdin_pos
[
0
]
-
tx_pos
;
if
(
tx_channel_count
>
1
)
{
qint64
wat2
=
stdin_pos
[
1
]
-
tx_pos
;
if
(
wat2
<
watM
)
watM
=
wat2
;
}
TASKBUS
::
push_subject
(
i_txWaterMark
,
instance
,
sizeof
(
qint64
),
(
unsigned
char
*
)
&
watM
);
}
}
}
}
...
...
modules/uhd/uhd_usrp_io/uhd_io.cpp
浏览文件 @
cdadc36d
...
...
@@ -587,6 +587,25 @@ int do_iio(const cmdlineParser & args)
QThread
::
msleep
(
1
);
continue
;
}
else
if
(
total_points_left
<
0
)
{
if
(
i_txWaterMark
>
0
)
{
qint64
watM
=
stdin_pos
[
0
]
-
tx_pos
[
0
];
if
(
tx_channel_count
>
1
)
{
qint64
wat2
=
stdin_pos
[
1
]
-
tx_pos
[
1
];
if
(
wat2
<
watM
)
watM
=
wat2
;
}
TASKBUS
::
push_subject
(
i_txWaterMark
,
instance
,
sizeof
(
qint64
),
(
unsigned
char
*
)
&
watM
);
}
}
for
(
int
ch
=
0
;
ch
<
tx_channel_count
&&
can_send
;
++
ch
)
{
SPTYPE
*
buf_tx_ptr
=
buf_tx_array
[
ch
].
data
();
...
...
@@ -633,22 +652,6 @@ int do_iio(const cmdlineParser & args)
//tx_meta->tx_metadata_ctmstmppp.start_of_burst = false;
for
(
int
ch
=
0
;
ch
<
tx_channel_count
;
++
ch
)
tx_pos
[
ch
]
+=
num_sps_sent
;
if
(
i_txWaterMark
>
0
)
{
qint64
watM
=
stdin_pos
[
0
]
-
tx_pos
[
0
];
if
(
tx_channel_count
>
1
)
{
qint64
wat2
=
stdin_pos
[
1
]
-
tx_pos
[
1
];
if
(
wat2
<
watM
)
watM
=
wat2
;
}
TASKBUS
::
push_subject
(
i_txWaterMark
,
instance
,
sizeof
(
qint64
),
(
unsigned
char
*
)
&
watM
);
}
}
//Burst
else
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录