添加复飞状态
This commit is contained in:
@@ -252,6 +252,10 @@ StatusUI::StatusUI(QWidget *parent) :
|
||||
QMap<QVariant, StateWidget::state>{{"在安控区内",StateWidget::state::green},
|
||||
{"超出安控区",StateWidget::state::red}});
|
||||
|
||||
install(statu3,0,"复飞状态",0,
|
||||
QMap<QVariant, StateWidget::state>{{"不复飞",StateWidget::state::green},
|
||||
{"复飞",StateWidget::state::red}});
|
||||
|
||||
|
||||
|
||||
QMap<int,StateGroup *> column;
|
||||
|
||||
+2
-1
@@ -2006,7 +2006,8 @@ void MainWindow::updateVehicle(MavLinkNode::_vehicle vehicle)//事件驱动式
|
||||
statusui->setValue(1,2,3,getBit(health,3)?("使用SBG"):("使用320"));//导航源
|
||||
|
||||
statusui->setValue(1,3,0,getBit(health,9)?("在安控区内"):("超出安控区"));
|
||||
statusui->setValue(0,2,10,getBit(health,10)?("使用采集油量"):("使用模型油量"));
|
||||
statusui->setValue(1,3,0,getBit(health,10)?("复飞"):("不复飞"));
|
||||
statusui->setValue(0,2,10,getBit(health,11)?("使用采集油量"):("使用模型油量"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -637,7 +637,7 @@ void OPMapWidget::resizeEvent(QResizeEvent *event)
|
||||
|
||||
|
||||
if(mouseInfo) {
|
||||
mouseInfo->setPos(this->width() - 200,this->height() - 100);
|
||||
mouseInfo->setPos(this->width() - 120,this->height() - 50);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user