添加复飞状态

This commit is contained in:
hm
2022-11-14 11:09:17 +08:00
parent 872d08090d
commit 9ae3e3723a
3 changed files with 7 additions and 2 deletions
+4
View File
@@ -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
View File
@@ -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)?("使用采集油量"):("使用模型油量"));
}
+1 -1
View File
@@ -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);
}