• 大小: 0.31M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-04-13
  • 语言: C/C++
  • 标签: 毫米波  雷达  程序  

资源简介

TI毫米波雷达例子程序

资源截图

代码片段和文件信息

#include “dialogsettings.h“
#include “ui_dialogsettings.h“
#include 
#include 


QString dataComPortNum userComPortNum;

DialogSettings::DialogSettings(QWidget *parent) :
    QDialog(parent)
    ui(new Ui::DialogSettings)
{
    ui->setupUi(this);
    QString portName;
    QString portDescription;

    foreach (const QSerialPortInfo &serialPortInfo QSerialPortInfo::availablePorts())
        {
        portName = serialPortInfo.portName();
        portDescription = serialPortInfo.description();
            if (portDescription.contains(“User“ Qt::CaseInsensitive))
            {
                ui->comboBox_UserUART->addItem(serialPortInfo.portName());
            }

            if (portDescription.contains(“Data“ Qt::CaseInsensitive))
            {
                ui->comboBox_DataPort->addItem(serialPortInfo.portName());
            }
        }
}

DialogSettings::~DialogSettings()
{
    delete ui;
}

void DialogSettings::on_buttonBox_accepted()
{
     dataComPortNum = ui->comboBox_DataPort->currentText();
     userComPortNum = ui->comboBox_UserUART->currentText();
}


QString DialogSettings::getUserComPortNum()
{
  return ui->comboBox_UserUART->currentText();
}

QString DialogSettings::getDataComPortNum()
{
  return ui->comboBox_DataPort->currentText();
}

double DialogSettings::getHeartWfm_yAxisMax()
{
    return ui->doubleSpinBox_BreathWfm_yAxisMax->value();
}

double DialogSettings::getBreathWfm_yAxisMax()
{
    return ui->doubleSpinBox_BreathWfm_yAxisMax->value();
}


QString DialogSettings::setUserComPortNum(QString portNum)
{
    ui->comboBox_UserUART->addItem(portNum);
    return ui->comboBox_UserUART->currentText();
}

QString DialogSettings::setDataComPortNum(QString portNum)
{
  ui->comboBox_DataPort->addItem(portNum);
  return ui->comboBox_DataPort->currentText();
}


void DialogSettings::on_pushButton_Ok_clicked()
{

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......      1972  2019-05-29 11:44  gui_source\dialogsettings.cpp

    .......       743  2019-05-29 11:44  gui_source\dialogsettings.h

    .......      2582  2019-05-29 11:44  gui_source\dialogsettings.ui

    .......       103  2019-05-29 11:44  gui_source\logo.qrc

    .......       243  2019-05-29 11:44  gui_source\main.cpp

    .......     45560  2019-05-29 11:44  gui_source\mainwindow.cpp

    .......      2238  2019-05-29 11:44  gui_source\mainwindow.h

    .......     29470  2019-05-29 11:44  gui_source\mainwindow.ui

    .......     13282  2019-05-29 11:44  gui_source\matlabscripts\main_readGUISavedBinary.m

    .......      4768  2019-05-29 11:44  gui_source\matlabscripts\parseCfgFile.m

    .......   1132245  2019-05-29 11:44  gui_source\qcustomplot.cpp

    .......    270466  2019-05-29 11:44  gui_source\qcustomplot.h

    .......     73545  2019-05-29 11:44  gui_source\ti_logo_trimmed.PNG

    .......      1327  2019-05-29 11:44  gui_source\VitalSignsRadar_Demo.pro

     目录          0  2019-05-29 11:44  gui_source\matlabscripts

     目录          0  2019-05-29 11:44  gui_source

----------- ---------  ---------- -----  ----

              1578544                    16


评论

共有 条评论