高程去airmap网站的api读取
This commit is contained in:
+2
-79
@@ -67,8 +67,6 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
map->setFocus();
|
||||
map->setMouseTracking(true);
|
||||
|
||||
|
||||
|
||||
map->setGeometry(0,
|
||||
0,
|
||||
this->width(),
|
||||
@@ -211,6 +209,8 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
map,SLOT(WPSetCurrent(int)),Qt::DirectConnection);
|
||||
|
||||
|
||||
menuBarUI->showMessage(tr("存在bug,连接界面udp数字输入的.可以超过3个,不合理"));
|
||||
|
||||
|
||||
qDebug() << "main window start";
|
||||
|
||||
@@ -433,29 +433,6 @@ bool MainWindow::event(QEvent *event)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void MainWindow::subui(QString arg)//子界面管理
|
||||
{
|
||||
if(arg == tr("SerialPort"))
|
||||
{
|
||||
dlink_triggered();
|
||||
}
|
||||
else if(arg == tr("UDP"))
|
||||
{
|
||||
client_triggered();
|
||||
}
|
||||
else if(arg == tr("Mavlink"))
|
||||
{
|
||||
//dlink->mavlinknode->mavlinkinspector->show();
|
||||
}
|
||||
else if(arg == tr("Parameter"))
|
||||
{
|
||||
//dlink->mavlinknode->Parameter->paramInspect->show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::onTabIndexChanged(const int &index)//界面选择管理
|
||||
{
|
||||
//设置
|
||||
@@ -508,60 +485,6 @@ void MainWindow::onTabIndexChanged(const int &index)//界面选择管理
|
||||
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::dlink_triggered()
|
||||
{
|
||||
|
||||
/*
|
||||
if(dlink->statesPort())
|
||||
{
|
||||
disconnectdialog dlg(this);
|
||||
|
||||
dlg.setWindowTitle(tr("SerialPort"));
|
||||
dlg.setWindowIcon(QIcon("qrc:/images/LinkUI/SerialPort.ico"));
|
||||
|
||||
int ret = dlg.exec();
|
||||
if (QDialog::Accepted == ret)
|
||||
{
|
||||
dlink->stopPort();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ConnectDialog dlg(this);
|
||||
|
||||
dlg.setWindowTitle(tr("SerialPort"));
|
||||
dlg.setWindowIcon(QIcon("qrc:/images/LinkUI/SerialPort.ico"));
|
||||
|
||||
dlg.baudrate = 115200;
|
||||
dlg.parity = QSerialPort::NoParity;
|
||||
int ret = dlg.exec();
|
||||
if (QDialog::Accepted == ret)
|
||||
{
|
||||
dlink->setupPort(dlg.port, dlg.baudrate,dlg.parity);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::client_triggered()
|
||||
{
|
||||
/*
|
||||
ClientLinkDialog dlg(this);
|
||||
|
||||
dlg.setWindowTitle(tr("ClientLink"));
|
||||
dlg.setWindowIcon(QIcon(":/images/LinkUI/Client.ico"));
|
||||
|
||||
int ret = dlg.exec();
|
||||
if (QDialog::Accepted == ret)
|
||||
{
|
||||
dlink->setupClient(dlg.remote_addr,dlg.remote_port,dlg.local_port);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::updateUI()//事件驱动式更新数据
|
||||
{
|
||||
copk->setAttitude(dlink->mavlinknode->vehicle.attitude.pitch * 57.3,
|
||||
|
||||
Reference in New Issue
Block a user