ui界面有太多逻辑,ui会卡
This commit is contained in:
@@ -56,7 +56,7 @@ PowerSystem::PowerSystem(QWidget *parent) :
|
||||
setColor(ui->checkBox_20,state::success);
|
||||
setColor(ui->checkBox_21,state::success);
|
||||
|
||||
|
||||
/*
|
||||
ScopeRPM = new Scope(ui->frame_scope);
|
||||
ScopeTemp = new Scope(ui->frame_scope);
|
||||
ScopeAlt = new Scope(ui->frame_scope);
|
||||
@@ -75,6 +75,7 @@ PowerSystem::PowerSystem(QWidget *parent) :
|
||||
ScopeAlt->chartView->addSeries(tr("海拔"));
|
||||
|
||||
ScopeMa->chartView->addSeries(tr("马赫"));
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
@@ -86,10 +87,12 @@ PowerSystem::~PowerSystem()
|
||||
|
||||
void PowerSystem::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
/*
|
||||
ScopeRPM->setGeometry(0,0,ui->frame_scope->width(),ui->frame_scope->height()/4);
|
||||
ScopeTemp->setGeometry(0,ui->frame_scope->height()/4,ui->frame_scope->width(),ui->frame_scope->height()/4);
|
||||
ScopeAlt->setGeometry(0,ui->frame_scope->height()/2,ui->frame_scope->width(),ui->frame_scope->height()/4);
|
||||
ScopeMa->setGeometry(0,3*ui->frame_scope->height()/4,ui->frame_scope->width(),ui->frame_scope->height()/4);
|
||||
*/
|
||||
}
|
||||
|
||||
void PowerSystem::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
+2
-1
@@ -879,7 +879,7 @@ void MainWindow::updateUI()//事件驱动式更新数据
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
//经纬度大于正常值,将舍弃
|
||||
|
||||
@@ -1025,6 +1025,7 @@ void MainWindow::updateUI()//事件驱动式更新数据
|
||||
|
||||
statusui->setDlink(1,QString::number(dlink->mavlinknode->rssi,'f',0));
|
||||
statusui->setDlink(2,QString::number(dlink->mavlinknode->bitrate));
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -45,10 +45,10 @@
|
||||
|
||||
|
||||
| xxx | cmd | par1 | par2 | par3 | par4 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| ECU | 180 | 103 | 文档 |
|
||||
| BMU | 180 | 102 |(0/1)|
|
||||
| CCM | 180 | 104 | ch |(0/1)| time |
|
||||
| ---- | ---- | ---- | ---- | ---- | ---- |
|
||||
| ECU | 180 | 103 | doc | doc | doc |
|
||||
| BMU | 180 | 102 | bool | doc | doc |
|
||||
| CCM | 180 | 104 | ch | bool | time |
|
||||
|
||||
# 疑问
|
||||
|
||||
|
||||
Reference in New Issue
Block a user