提交 5987151e 编写于 作者: M manjaro

Sloved Board Selecion

上级 9e0ce205
......@@ -37,9 +37,9 @@ void sigint_handler(int code){
struct tag_channelOptions{
std::string type = "sc16"; //样点类型,为上位机上类型: fc64, fc32, or sc16
std::string ant = "TX/RX"; //天线选取,B210 有 TX/RX 或者 RX2两个
std::string subdev; //子设备,本例子没有配置
std::string subdev="A:B"; //子设备,本例子默认第一块子板 A:A, A:B是第二块
std::string wirefmt; //内部类型 (sc8 or sc16),是片上处理的类型
size_t channel = 0; //通道号,可以是0(左侧)或者1(右侧)
size_t channel = 0; //通道号
size_t spb = 10000; //缓冲大小,太小会丢包,太大会超时
double rate = 61.44e6/2; //采样率,单位Hz
double freq = 1.0e9; //射频频率,单位Hz
......@@ -146,7 +146,6 @@ int UHD_SAFE_MAIN(int /*argc*/, char* /*argv*/[])
//3.配置发射
tag_channelOptions tx_op;
tx_op.channel = 0;
tx_op.freq = 89e6;
tx_op.bw = 400e3;
tx_op.gain=70;
......@@ -181,7 +180,6 @@ int UHD_SAFE_MAIN(int /*argc*/, char* /*argv*/[])
//4.配置接收
tag_channelOptions rx_op;
rx_op.ant = "RX2";
rx_op.channel = 0;
rx_op.bw = 400e3;
rx_op.freq = 107.7e6;
rx_op.gain = 50;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册