添加了测量界面,并完成功能
This commit is contained in:
@@ -57,9 +57,9 @@ CommandButton:pressed[state="2"] {
|
||||
}
|
||||
|
||||
.QTabBar::tab{
|
||||
max-width: 75px;
|
||||
min-width: 75px;
|
||||
min-height: 40px;
|
||||
max-width: 55px;
|
||||
min-width: 55px;
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
.QTabBar::tab:!selected {
|
||||
|
||||
@@ -57,6 +57,8 @@ public slots:
|
||||
|
||||
void clearTable();
|
||||
|
||||
|
||||
|
||||
protected slots:
|
||||
void closeEvent(QCloseEvent *event);
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
|
||||
@@ -18,19 +18,22 @@ INCLUDEPATH += $$PWD/../ComponentUI/Confirm
|
||||
|
||||
FORMS += \
|
||||
$$PWD/MissionUI.ui \
|
||||
$$PWD/propertyui.ui
|
||||
$$PWD/propertyui.ui \
|
||||
$$PWD/ruledialog.ui
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/CustomButton.h \
|
||||
$$PWD/JsonHelper.h \
|
||||
$$PWD/MissionUI.h \
|
||||
$$PWD/propertyui.h
|
||||
$$PWD/propertyui.h \
|
||||
$$PWD/ruledialog.h
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/CustomButton.cpp \
|
||||
$$PWD/JsonHelper.cc \
|
||||
$$PWD/MissionUI.cpp \
|
||||
$$PWD/propertyui.cpp
|
||||
$$PWD/propertyui.cpp \
|
||||
$$PWD/ruledialog.cpp
|
||||
|
||||
RESOURCES += \
|
||||
$$PWD/MissionUIres.qrc
|
||||
|
||||
@@ -280,6 +280,7 @@ propertyui::propertyui(QWidget *parent) :
|
||||
}
|
||||
|
||||
|
||||
|
||||
void propertyui::clearLayout(QLayout *layout)
|
||||
{
|
||||
QLayoutItem *item;
|
||||
@@ -1055,6 +1056,12 @@ propertyui::~propertyui()
|
||||
table->deleteLater();
|
||||
}
|
||||
|
||||
if(ruler)
|
||||
{
|
||||
ruler->deleteLater();
|
||||
}
|
||||
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
||||
@@ -2227,7 +2234,39 @@ void propertyui::measureState(bool flag)
|
||||
|
||||
void propertyui::on_pushButton_Ruler_clicked()
|
||||
{
|
||||
emit ruler_clicked();
|
||||
if(ruler)
|
||||
{
|
||||
ruler->deleteLater();
|
||||
ruler = nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
ruler = new RuleDialog();
|
||||
ruler->show();
|
||||
ruler->showNormal();
|
||||
ruler->activateWindow();
|
||||
|
||||
|
||||
connect(ruler,&RuleDialog::exitRuler,
|
||||
this,&propertyui::exitRuler);
|
||||
|
||||
connect(this,&propertyui::mousePosition,
|
||||
ruler,&RuleDialog::ShowMousePos);
|
||||
|
||||
connect(this,&propertyui::MeasurePosition,
|
||||
ruler,&RuleDialog::RulePoint);
|
||||
|
||||
connect(this,&propertyui::Lineinfo,
|
||||
ruler,&RuleDialog::Lineinfo);
|
||||
|
||||
connect(ruler,&RuleDialog::valuechanged,
|
||||
this,&propertyui::valuechanged);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void propertyui::on_pushButton_Table_clicked()
|
||||
@@ -2235,6 +2274,9 @@ void propertyui::on_pushButton_Table_clicked()
|
||||
if(table->isHidden())
|
||||
{
|
||||
table->show();
|
||||
table->showNormal();
|
||||
table->activateWindow();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "QtQmlDepends"
|
||||
|
||||
#include "MissionUI.h"
|
||||
#include "ruledialog.h"
|
||||
|
||||
|
||||
#ifdef QtopmapWidget
|
||||
@@ -260,7 +261,7 @@ Q_SIGNALS:
|
||||
|
||||
void getAllPoints(int group);
|
||||
|
||||
void ruler_clicked();
|
||||
// void ruler_clicked();
|
||||
|
||||
|
||||
void createFenceCircle(int,qreal radius, bool inclusion, qreal lat, qreal lng);
|
||||
@@ -283,6 +284,17 @@ Q_SIGNALS:
|
||||
|
||||
void clearTable();
|
||||
|
||||
|
||||
void GetPoint(quint8);
|
||||
void exitRuler();
|
||||
|
||||
void mousePosition(qreal lat,qreal lng);
|
||||
|
||||
void MeasurePosition(int num,qreal lat,qreal lng);
|
||||
|
||||
void Lineinfo(qreal dis,qreal bearing);
|
||||
void valuechanged(int num,qreal value);
|
||||
|
||||
private slots:
|
||||
|
||||
void GroupChanged(int value);
|
||||
@@ -405,7 +417,8 @@ private:
|
||||
|
||||
Ui::propertyui *ui;
|
||||
|
||||
MissionUI *table;
|
||||
MissionUI *table = nullptr;
|
||||
RuleDialog *ruler = nullptr;
|
||||
|
||||
|
||||
QByteArray allBytes;
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
#include "ruledialog.h"
|
||||
#include "ui_ruledialog.h"
|
||||
#include "qmessagebox.h"
|
||||
|
||||
RuleDialog::RuleDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::RuleDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setWindowFlags(Qt::WindowStaysOnTopHint);
|
||||
CurrentPoint = 1;
|
||||
|
||||
|
||||
ui->MouseLatitude->setReadOnly(true);
|
||||
ui->MouseLongitude->setReadOnly(true);
|
||||
|
||||
|
||||
ui->ConformButton->setEnabled(false);
|
||||
|
||||
ui->FirstPointLatitude->setEnabled(false);
|
||||
ui->FirstPointLongitude->setEnabled(false);
|
||||
ui->SecondPointLatitude->setEnabled(false);
|
||||
ui->SecondPointLongitude->setEnabled(false);
|
||||
|
||||
ui->TwoPointDistance->setEnabled(false);
|
||||
ui->TwoPointAngle->setEnabled(false);
|
||||
|
||||
}
|
||||
|
||||
RuleDialog::~RuleDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void RuleDialog::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
event->ignore();
|
||||
//退出测量
|
||||
emit exitRuler();
|
||||
|
||||
//event->accept();
|
||||
}
|
||||
|
||||
|
||||
|
||||
double RuleDialog::GetDiatance(qreal lat1,qreal lng1,qreal lat2 ,qreal lng2)
|
||||
{
|
||||
double EarthRadiusKm = 6378.137;
|
||||
|
||||
double dLat1InRad = lat1 * (M_PI / 180);
|
||||
double dLong1InRad = lng1 * (M_PI / 180);
|
||||
double dLat2InRad = lat2 * (M_PI / 180);
|
||||
double dLong2InRad = lng2 * (M_PI / 180);
|
||||
double dLongitude = dLong2InRad - dLong1InRad;
|
||||
double dLatitude = dLat2InRad - dLat1InRad;
|
||||
double a = pow(sin(dLatitude / 2), 2) + cos(dLat1InRad) * cos(dLat2InRad) * pow(sin(dLongitude / 2), 2);
|
||||
double c = 2 * atan2(sqrt(a), sqrt(1 - a));
|
||||
double dDistance = EarthRadiusKm * c;
|
||||
|
||||
return dDistance;
|
||||
}
|
||||
|
||||
double RuleDialog::GetHeading(qreal lat1,qreal lng1,qreal lat2 ,qreal lng2)
|
||||
{
|
||||
double temp;
|
||||
double mLat = lat2 - lat1;
|
||||
double mLon = (lng2 - lng1)* cos(((lat2 + lat1)/2)* 0.0174532925);
|
||||
temp = 90.0 + atan2(-mLat, mLon) * 57.2957795;
|
||||
if(temp < 0)temp += 360.0;
|
||||
return temp;
|
||||
}
|
||||
|
||||
void RuleDialog::RulePoint(int num,qreal lat,qreal lng)
|
||||
{
|
||||
switch(num) {
|
||||
case 1:{
|
||||
Point1.lat = lat;
|
||||
Point1.lng = lng;
|
||||
ui->FirstPointLatitude->setText(QString::number(lat,'f',8));
|
||||
ui->FirstPointLongitude->setText(QString::number(lng,'f',8));
|
||||
} break;
|
||||
case 2:{
|
||||
Point2.lat = lat;
|
||||
Point2.lng = lng;
|
||||
ui->SecondPointLatitude->setText(QString::number(lat,'f',8));
|
||||
ui->SecondPointLongitude->setText(QString::number(lng,'f',8));
|
||||
|
||||
on_ConformButton_clicked();
|
||||
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void RuleDialog::ShowMousePos(qreal lat,qreal lng)
|
||||
{
|
||||
ui->MouseLatitude->setText(QString::number(lat,'f',8));
|
||||
ui->MouseLongitude->setText(QString::number(lng,'f',8));
|
||||
}
|
||||
|
||||
|
||||
void RuleDialog::Lineinfo(qreal dis,qreal bearing)
|
||||
{
|
||||
ui->ConformButton->setEnabled(true);
|
||||
|
||||
ui->FirstPointLatitude->setEnabled(true);
|
||||
ui->FirstPointLongitude->setEnabled(true);
|
||||
ui->SecondPointLatitude->setEnabled(true);
|
||||
ui->SecondPointLongitude->setEnabled(true);
|
||||
|
||||
ui->TwoPointDistance->setEnabled(true);
|
||||
ui->TwoPointAngle->setEnabled(true);
|
||||
|
||||
ui->TwoPointDistance->setText(QString::number(dis * 0.001,'f',3) + "km");
|
||||
ui->TwoPointAngle->setText(QString::number(bearing * 57.3,'f',1) + "°");
|
||||
}
|
||||
|
||||
|
||||
void RuleDialog::on_ConformButton_clicked()
|
||||
{
|
||||
bool flag = false;
|
||||
qreal value = ui->FirstPointLatitude->text().toDouble(&flag);
|
||||
if(flag)
|
||||
{
|
||||
Point1.lat = value;
|
||||
emit valuechanged(1,value);
|
||||
}
|
||||
|
||||
flag = false;
|
||||
value = ui->FirstPointLongitude->text().toDouble(&flag);
|
||||
if(flag)
|
||||
{
|
||||
Point1.lat = value;
|
||||
emit valuechanged(2,value);
|
||||
}
|
||||
|
||||
flag = false;
|
||||
value = ui->SecondPointLatitude->text().toDouble(&flag);
|
||||
if(flag)
|
||||
{
|
||||
Point1.lat = value;
|
||||
emit valuechanged(3,value);
|
||||
}
|
||||
|
||||
flag = false;
|
||||
value = ui->SecondPointLongitude->text().toDouble(&flag);
|
||||
if(flag)
|
||||
{
|
||||
Point1.lat = value;
|
||||
emit valuechanged(4,value);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
#ifndef RULEDIALOG_H
|
||||
#define RULEDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QtMath>
|
||||
#include "QCloseEvent"
|
||||
|
||||
namespace Ui {
|
||||
class RuleDialog;
|
||||
}
|
||||
|
||||
class RuleDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
typedef struct
|
||||
{
|
||||
qreal lat = 0;
|
||||
qreal lng = 0;
|
||||
}point_t;
|
||||
|
||||
explicit RuleDialog(QWidget *parent = 0);
|
||||
~RuleDialog();
|
||||
|
||||
signals:
|
||||
void isWindowClose(char);
|
||||
|
||||
void exitRuler();
|
||||
|
||||
|
||||
void valuechanged(int num,qreal value);
|
||||
|
||||
public slots:
|
||||
double GetDiatance(qreal lat1,qreal lng1,qreal lat2 ,qreal lng2);
|
||||
double GetHeading(qreal lat1,qreal lng1,qreal lat2 ,qreal lng2);
|
||||
|
||||
void RulePoint(int num, qreal lat, qreal lng);
|
||||
void ShowMousePos(qreal lat,qreal lng);
|
||||
|
||||
void Lineinfo(qreal dis,qreal bearing);
|
||||
|
||||
protected:
|
||||
|
||||
void closeEvent(QCloseEvent *event);
|
||||
|
||||
private slots:
|
||||
|
||||
void on_ConformButton_clicked();
|
||||
|
||||
|
||||
private:
|
||||
Ui::RuleDialog *ui;
|
||||
point_t Point1;
|
||||
point_t Point2;
|
||||
|
||||
|
||||
quint8 CurrentPoint;
|
||||
|
||||
};
|
||||
|
||||
#endif // RULEDIALOG_H
|
||||
@@ -148,36 +148,6 @@
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||
<item>
|
||||
<widget class="QPushButton" name="SelectFirstPointButton">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>微软雅黑</family>
|
||||
<pointsize>11</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>选取第一点</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="SelectSecondPointButton">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>微软雅黑</family>
|
||||
<pointsize>11</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>选取第二点</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="ConformButton">
|
||||
<property name="font">
|
||||
@@ -15,6 +15,9 @@ StatusUI::StatusUI(QWidget *parent) :
|
||||
this->setStyleSheet(stylesheet);
|
||||
file.close();
|
||||
|
||||
setFixedWidth(465);
|
||||
|
||||
|
||||
/*
|
||||
ui->label_Warning_1_1->hide();
|
||||
ui->label_Warning_1_2->hide();
|
||||
|
||||
+675
-651
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>469</width>
|
||||
<height>811</height>
|
||||
<width>573</width>
|
||||
<height>754</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -16,56 +16,7 @@
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="verticalSpacing">
|
||||
<number>9</number>
|
||||
</property>
|
||||
<item row="31" column="1">
|
||||
<widget class="QLabel" name="label_temp_up">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_66">
|
||||
<property name="text">
|
||||
<string>飞行模式</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="26" column="0" colspan="3">
|
||||
<widget class="QSplitter" name="splitter_6">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_engine">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Adobe 黑体 Std R</family>
|
||||
<pointsize>12</pointsize>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>发动机</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_navMode">
|
||||
<property name="text">
|
||||
<string>纵/横向模态</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="3">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_mode">
|
||||
<property name="font">
|
||||
<font>
|
||||
@@ -77,85 +28,10 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QLabel" name="label_HorizonMode">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_66">
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0">
|
||||
<widget class="QLabel" name="label_28">
|
||||
<property name="text">
|
||||
<string>航迹角[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="21" column="2">
|
||||
<widget class="QLabel" name="label_ra_target">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="23" column="0">
|
||||
<widget class="QLabel" name="label_40">
|
||||
<property name="text">
|
||||
<string>右升降[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="35" column="0">
|
||||
<widget class="QLabel" name="label_52">
|
||||
<property name="text">
|
||||
<string>舵机电源[V/A]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="20" column="0">
|
||||
<widget class="QLabel" name="label_43">
|
||||
<property name="text">
|
||||
<string>左副翼[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="23" column="2">
|
||||
<widget class="QLabel" name="label_rv_target">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="29" column="1">
|
||||
<widget class="QLabel" name="label_1_FuelLevel">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
<string>飞行模式</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -172,7 +48,176 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="1">
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_navMode">
|
||||
<property name="text">
|
||||
<string>纵/横向模态</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="label_VerticalMode">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QLabel" name="label_HorizonMode">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_base">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Adobe 黑体 Std R</family>
|
||||
<pointsize>12</pointsize>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>基本信息</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>纵向过载[m/s2]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLabel" name="label_1_Atteck">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>侧向过载[m/s2]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QLabel" name="label_1_Slide">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="label_49">
|
||||
<property name="text">
|
||||
<string>滚转角[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QLabel" name="label_1_rol">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="2">
|
||||
<widget class="QLabel" name="label_2_rol">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="label_48">
|
||||
<property name="text">
|
||||
<string>俯仰角[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QLabel" name="label_1_pit">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="2">
|
||||
<widget class="QLabel" name="label_2_pit">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="label_28">
|
||||
<property name="text">
|
||||
<string>航迹角[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<widget class="QLabel" name="label_1_heading">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
@@ -185,27 +230,7 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="17" column="0" colspan="3">
|
||||
<widget class="Line" name="line_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="15" column="1">
|
||||
<widget class="QLabel" name="label_1_ma">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="2">
|
||||
<item row="9" column="2">
|
||||
<widget class="QLabel" name="label_2_heading">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
@@ -231,121 +256,14 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="0">
|
||||
<widget class="QLabel" name="label_27">
|
||||
<item row="10" column="0">
|
||||
<widget class="QLabel" name="label_22">
|
||||
<property name="text">
|
||||
<string>表速[m/s]</string>
|
||||
<string>海拔[m]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="35" column="2">
|
||||
<widget class="QLabel" name="label_56_A">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="29" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>剩余油量[kg]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="2">
|
||||
<widget class="QLabel" name="label_2_pit">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="3">
|
||||
<widget class="QLabel" name="label_base">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Adobe 黑体 Std R</family>
|
||||
<pointsize>12</pointsize>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>基本信息</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="35" column="1">
|
||||
<widget class="QLabel" name="label_56_V">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="22" column="1">
|
||||
<widget class="QLabel" name="label_lv_real">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="29" column="2">
|
||||
<widget class="QLabel" name="label_2_FuelLevel">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="24" column="1">
|
||||
<widget class="QLabel" name="label_rud_real">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1">
|
||||
<item row="10" column="1">
|
||||
<widget class="QLabel" name="label_1_alt">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
@@ -358,8 +276,29 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QLabel" name="label_1_Atteck">
|
||||
<item row="10" column="2">
|
||||
<widget class="QLabel" name="label_2_alt">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="QLabel" name="label_27">
|
||||
<property name="text">
|
||||
<string>表速[m/s]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1">
|
||||
<widget class="QLabel" name="label_1_cas">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
@@ -371,8 +310,29 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="38" column="2">
|
||||
<widget class="QLabel" name="label_ssr">
|
||||
<item row="11" column="2">
|
||||
<widget class="QLabel" name="label_2_cas">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="0">
|
||||
<widget class="QLabel" name="label_63">
|
||||
<property name="text">
|
||||
<string>真空速[m/s]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="1">
|
||||
<widget class="QLabel" name="label_1_tas">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
@@ -384,33 +344,7 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="14" column="1">
|
||||
<widget class="QLabel" name="label_1_gs">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="21" column="1">
|
||||
<widget class="QLabel" name="label_ra_real">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="2">
|
||||
<item row="12" column="2">
|
||||
<widget class="QLabel" name="label_2_tas">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
@@ -424,8 +358,15 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="0">
|
||||
<widget class="QLabel" name="label_64">
|
||||
<property name="text">
|
||||
<string>地速[m/s]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="1">
|
||||
<widget class="QLabel" name="label_1_tas">
|
||||
<widget class="QLabel" name="label_1_gs">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
@@ -437,40 +378,59 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="31" column="0">
|
||||
<widget class="QLabel" name="label_61">
|
||||
<item row="14" column="0">
|
||||
<widget class="QLabel" name="label_30">
|
||||
<property name="text">
|
||||
<string>舱温上/右[℃]</string>
|
||||
<string>马赫数[Ma]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="24" column="0">
|
||||
<widget class="QLabel" name="label_34">
|
||||
<item row="14" column="1">
|
||||
<widget class="QLabel" name="label_1_ma">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>方向舵[°]</string>
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="28" column="0">
|
||||
<widget class="QLabel" name="label_58">
|
||||
<item row="15" column="0">
|
||||
<widget class="QLabel" name="label_33">
|
||||
<property name="text">
|
||||
<string>油门[%/rpm]</string>
|
||||
<string>爬升率[m/s]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="21" column="0">
|
||||
<widget class="QLabel" name="label_46">
|
||||
<item row="15" column="1">
|
||||
<widget class="QLabel" name="label_1_rate">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>右副翼[°]</string>
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="33" column="0" colspan="3">
|
||||
<widget class="QSplitter" name="splitter_5">
|
||||
<item row="16" column="0" colspan="3">
|
||||
<widget class="Line" name="line_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_battery">
|
||||
</widget>
|
||||
</item>
|
||||
<item row="17" column="0">
|
||||
<widget class="QSplitter" name="splitter_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_servo">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Adobe 黑体 Std R</family>
|
||||
@@ -479,13 +439,32 @@ color: rgb(0, 128, 0);</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>电池</string>
|
||||
<string>舵面状态</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<widget class="QLabel" name="label_1_pit">
|
||||
<item row="18" column="0">
|
||||
<widget class="QLabel" name="label_43">
|
||||
<property name="text">
|
||||
<string>左副翼[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="18" column="1">
|
||||
<widget class="QLabel" name="label_la_real">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
@@ -497,48 +476,7 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QLabel" name="label_1_Slide">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>纵向过载[m/s2]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="15" column="0">
|
||||
<widget class="QLabel" name="label_30">
|
||||
<property name="text">
|
||||
<string>马赫数[Ma]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="30" column="0">
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="text">
|
||||
<string>油箱压力[kPa]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="34" column="0">
|
||||
<widget class="QLabel" name="label_50">
|
||||
<property name="text">
|
||||
<string>机载电源[V/A]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="20" column="2">
|
||||
<item row="18" column="2">
|
||||
<widget class="QLabel" name="label_la_target">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
@@ -564,8 +502,28 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="24" column="2">
|
||||
<widget class="QLabel" name="label_rud_target">
|
||||
<item row="19" column="0">
|
||||
<widget class="QLabel" name="label_46">
|
||||
<property name="text">
|
||||
<string>右副翼[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="19" column="1">
|
||||
<widget class="QLabel" name="label_ra_real">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="19" column="2">
|
||||
<widget class="QLabel" name="label_ra_target">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
@@ -578,7 +536,27 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="22" column="2">
|
||||
<item row="20" column="0">
|
||||
<widget class="QLabel" name="label_37">
|
||||
<property name="text">
|
||||
<string>左升降[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="20" column="1">
|
||||
<widget class="QLabel" name="label_lv_real">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="20" column="2">
|
||||
<widget class="QLabel" name="label_lv_target">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
@@ -592,232 +570,14 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="0">
|
||||
<widget class="QLabel" name="label_63">
|
||||
<item row="21" column="0">
|
||||
<widget class="QLabel" name="label_40">
|
||||
<property name="text">
|
||||
<string>真空速[m/s]</string>
|
||||
<string>右升降[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QLabel" name="label_1_rol">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="16" column="0">
|
||||
<widget class="QLabel" name="label_33">
|
||||
<property name="text">
|
||||
<string>爬升率[m/s]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="20" column="1">
|
||||
<widget class="QLabel" name="label_la_real">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="16" column="1">
|
||||
<widget class="QLabel" name="label_1_rate">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="18" column="0" colspan="3">
|
||||
<widget class="QSplitter" name="splitter_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_servo">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Adobe 黑体 Std R</family>
|
||||
<pointsize>12</pointsize>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>舵面状态</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="36" column="0" colspan="3">
|
||||
<widget class="Line" name="line_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="QLabel" name="label_22">
|
||||
<property name="text">
|
||||
<string>海拔[m]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="34" column="2">
|
||||
<widget class="QLabel" name="label_28_A">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="label_49">
|
||||
<property name="text">
|
||||
<string>滚转角[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="37" column="0" colspan="3">
|
||||
<widget class="QSplitter" name="splitter_7">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_dlink">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Adobe 黑体 Std R</family>
|
||||
<pointsize>12</pointsize>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>数据链</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="38" column="1">
|
||||
<widget class="QLabel" name="label_ssp">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="38" column="0">
|
||||
<widget class="QLabel" name="label_54">
|
||||
<property name="text">
|
||||
<string>信号[%-B/s]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="32" column="0" colspan="3">
|
||||
<widget class="Line" name="line_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="2">
|
||||
<widget class="QLabel" name="label_2_alt">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>侧向过载[m/s2]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="28" column="2">
|
||||
<widget class="QLabel" name="label_rpm">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="30" column="1">
|
||||
<widget class="QLabel" name="label_fuelPressure">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="2">
|
||||
<widget class="QLabel" name="label_2_rol">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="23" column="1">
|
||||
<item row="21" column="1">
|
||||
<widget class="QLabel" name="label_rv_real">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
@@ -830,8 +590,29 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="label_VerticalMode">
|
||||
<item row="21" column="2">
|
||||
<widget class="QLabel" name="label_rv_target">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="22" column="0">
|
||||
<widget class="QLabel" name="label_34">
|
||||
<property name="text">
|
||||
<string>方向舵[°]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="22" column="1">
|
||||
<widget class="QLabel" name="label_rud_real">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
@@ -843,7 +624,156 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="31" column="2">
|
||||
<item row="22" column="2">
|
||||
<widget class="QLabel" name="label_rud_target">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="23" column="0" colspan="3">
|
||||
<widget class="Line" name="line_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="24" column="0">
|
||||
<widget class="QSplitter" name="splitter_6">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_engine">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Adobe 黑体 Std R</family>
|
||||
<pointsize>12</pointsize>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>发动机</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="25" column="0">
|
||||
<widget class="QLabel" name="label_58">
|
||||
<property name="text">
|
||||
<string>油门[%/rpm]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="25" column="1">
|
||||
<widget class="QProgressBar" name="label_thr">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(168, 168, 168);</string>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="format">
|
||||
<string>%v</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="25" column="2">
|
||||
<widget class="QLabel" name="label_rpm">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="26" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>剩余油量[kg]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="26" column="1">
|
||||
<widget class="QLabel" name="label_1_FuelLevel">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="26" column="2">
|
||||
<widget class="QLabel" name="label_2_FuelLevel">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="27" column="0">
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="text">
|
||||
<string>油箱压力[kPa]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="27" column="1">
|
||||
<widget class="QLabel" name="label_fuelPressure">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="28" column="0">
|
||||
<widget class="QLabel" name="label_61">
|
||||
<property name="text">
|
||||
<string>舱温上/右[℃]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="28" column="1">
|
||||
<widget class="QLabel" name="label_temp_up">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="28" column="2">
|
||||
<widget class="QLabel" name="label_temp_right">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
@@ -856,41 +786,40 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="22" column="0">
|
||||
<widget class="QLabel" name="label_37">
|
||||
<property name="text">
|
||||
<string>左升降[°]</string>
|
||||
<item row="29" column="0" colspan="3">
|
||||
<widget class="Line" name="line_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="label_48">
|
||||
<item row="30" column="0">
|
||||
<widget class="QSplitter" name="splitter_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_battery">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Adobe 黑体 Std R</family>
|
||||
<pointsize>12</pointsize>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>电池</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="31" column="0">
|
||||
<widget class="QLabel" name="label_50">
|
||||
<property name="text">
|
||||
<string>俯仰角[°]</string>
|
||||
<string>机载电源[V/A]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="14" column="0">
|
||||
<widget class="QLabel" name="label_64">
|
||||
<property name="text">
|
||||
<string>地速[m/s]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="1">
|
||||
<widget class="QLabel" name="label_1_cas">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="34" column="1">
|
||||
<item row="31" column="1">
|
||||
<widget class="QLabel" name="label_28_V">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
@@ -915,34 +844,10 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="25" column="0" colspan="3">
|
||||
<widget class="Line" name="line_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="28" column="1">
|
||||
<widget class="QProgressBar" name="label_thr">
|
||||
<item row="31" column="2">
|
||||
<widget class="QLabel" name="label_28_A">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(168, 168, 168);</string>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="format">
|
||||
<string>%v</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="2">
|
||||
<widget class="QLabel" name="label_2_cas">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);
|
||||
color: rgb(0, 128, 0);</string>
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
@@ -952,21 +857,140 @@ color: rgb(0, 128, 0);</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="32" column="0">
|
||||
<widget class="QLabel" name="label_52">
|
||||
<property name="text">
|
||||
<string>舵机电源[V/A]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="32" column="1">
|
||||
<widget class="QLabel" name="label_56_V">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="32" column="2">
|
||||
<widget class="QLabel" name="label_56_A">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="33" column="0" colspan="3">
|
||||
<widget class="Line" name="line_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="34" column="0">
|
||||
<widget class="QSplitter" name="splitter_7">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_dlink">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Adobe 黑体 Std R</family>
|
||||
<pointsize>12</pointsize>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>数据链</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="35" column="0">
|
||||
<widget class="QLabel" name="label_54">
|
||||
<property name="text">
|
||||
<string>信号[%-B/s]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="35" column="1">
|
||||
<widget class="QLabel" name="label_ssp">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="35" column="2">
|
||||
<widget class="QLabel" name="label_ssr">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(189, 189, 189);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>当前值</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="2">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>目标值</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="17" column="2">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>目标值</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="17" column="1">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>当前值</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
|
||||
+22
-3
@@ -434,15 +434,22 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
connect(map,SIGNAL(settableGroup(int)),
|
||||
missionUI,SIGNAL(settableGroup(int)));
|
||||
|
||||
connect(missionUI,SIGNAL(ruler_clicked()),
|
||||
map,SLOT(ruler_clicked()));
|
||||
|
||||
connect(map,SIGNAL(measureState(bool)),
|
||||
missionUI,SLOT(measureState(bool)));
|
||||
|
||||
connect(map,SIGNAL(settableClicked()),
|
||||
missionUI,SLOT(on_pushButton_Table_clicked()));
|
||||
|
||||
connect(map,SIGNAL(setrulerClicked()),
|
||||
missionUI,SLOT(on_pushButton_Ruler_clicked()));
|
||||
|
||||
|
||||
connect(map,SIGNAL(mousePosition(qreal,qreal)),
|
||||
missionUI,SIGNAL(mousePosition(qreal,qreal)));
|
||||
|
||||
connect(missionUI,SIGNAL(exitRuler()),
|
||||
map,SLOT(ruler_clicked()));
|
||||
|
||||
|
||||
connect(map,SIGNAL(createFenceCircle(int,qreal,bool,qreal,qreal)),
|
||||
missionUI,SIGNAL(createFenceCircle(int,qreal,bool,qreal,qreal)));
|
||||
@@ -489,6 +496,18 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
missionUI,SLOT(clearTable()),Qt::DirectConnection);
|
||||
|
||||
|
||||
connect(map,SIGNAL(MeasurePosition(int,qreal,qreal)),
|
||||
missionUI,SIGNAL(MeasurePosition(int,qreal,qreal)),Qt::DirectConnection);
|
||||
|
||||
connect(map,SIGNAL(Lineinfo(qreal,qreal)),
|
||||
missionUI,SIGNAL(Lineinfo(qreal,qreal)),Qt::DirectConnection);
|
||||
|
||||
|
||||
connect(missionUI,SIGNAL(valuechanged(int,qreal)),
|
||||
map,SLOT(MeasureValueChanged(int,qreal)));
|
||||
|
||||
|
||||
|
||||
//dlink ----- map
|
||||
connect(map,SIGNAL(signal_WPDownload(uint8_t,uint8_t,int)),
|
||||
dlink->mavlinknode->Mission,SLOT(ReadCmd(uint8_t,uint8_t,int)),Qt::DirectConnection);
|
||||
|
||||
+4
-4
@@ -2101,13 +2101,13 @@ void Cockpit::drawYawScale(QPainter *painter)
|
||||
painter->rotate(-m_State.yaw);
|
||||
|
||||
static const QPointF Npoints[3] = {
|
||||
QPointF(-70,0),
|
||||
QPointF(-35,0),
|
||||
QPointF( 0,-300),
|
||||
QPointF( 70,0)};
|
||||
QPointF( 35,0)};
|
||||
static const QPointF Spoints[3] = {
|
||||
QPointF(-70,0),
|
||||
QPointF(-35,0),
|
||||
QPointF( 0,300),
|
||||
QPointF( 70,0)};
|
||||
QPointF( 35,0)};
|
||||
|
||||
painter->setPen(Qt::NoPen);
|
||||
painter->setBrush(QColor("#FF0000"));
|
||||
|
||||
@@ -207,6 +207,7 @@ void PureProjection::FromCartesianTGeodetic(const double &X, const double &Y, co
|
||||
}
|
||||
double PureProjection::courseBetweenLatLng(PointLatLng const & p1, PointLatLng const & p2)
|
||||
{
|
||||
|
||||
double lon1 = p1.Lng() * (M_PI / 180);
|
||||
double lat1 = p1.Lat() * (M_PI / 180);
|
||||
double lon2 = p2.Lng() * (M_PI / 180);
|
||||
@@ -230,6 +231,7 @@ double PureProjection::DistanceBetweenLatLng(PointLatLng const & p1, PointLatLng
|
||||
double d = R * c;
|
||||
|
||||
return d;
|
||||
|
||||
}
|
||||
|
||||
void PureProjection::offSetFromLatLngs(PointLatLng p1, PointLatLng p2, double &distance, double &bearing)
|
||||
|
||||
@@ -107,6 +107,33 @@ void MeasureLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *optio
|
||||
font.setFamily("黑体");//非衬线
|
||||
painter->setFont(font);
|
||||
painter->drawText(line().p2().x(),line().p2().y() - 5,QString("%1km %2°").arg(QString::number(distance * 0.001,'f',3)).arg(QString::number(bearing * 57.3,'f',1)));
|
||||
|
||||
|
||||
|
||||
painter->save();
|
||||
painter->setOpacity(0.8);
|
||||
painter->setPen(Qt::NoPen);
|
||||
painter->setBrush(QColor("#FFFFFF"));
|
||||
painter->drawEllipse(line().p1(),5,5);
|
||||
painter->drawEllipse(line().p2(),5,5);
|
||||
painter->restore();
|
||||
|
||||
//画字
|
||||
painter->save();
|
||||
painter->setOpacity(1);
|
||||
font.setWeight(QFont::ExtraBold);
|
||||
font.setFamily("Arial");//非衬线
|
||||
font.setPixelSize(8);
|
||||
painter->setFont(font);
|
||||
|
||||
myPen.setWidth(1);
|
||||
myPen.setColor(QColor("#000000"));
|
||||
painter->setPen(myPen);
|
||||
painter->drawText(QRect(line().p1().x() - 20,line().p1().y()-5,40,10),Qt::AlignCenter,QString::number(1));
|
||||
painter->drawText(QRect(line().p2().x() - 20,line().p2().y()-5,40,10),Qt::AlignCenter,QString::number(2));
|
||||
painter->restore();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -152,6 +179,8 @@ void MeasureLine::setFrom(internals::PointLatLng p)
|
||||
|
||||
my_map->Projection()->offSetFromLatLngs(source,destination,distance,bearing);
|
||||
|
||||
emit Lineinfo(distance,bearing);
|
||||
|
||||
refreshLocations();
|
||||
|
||||
update();
|
||||
@@ -164,8 +193,9 @@ void MeasureLine::setTo(internals::PointLatLng p)
|
||||
|
||||
my_map->Projection()->offSetFromLatLngs(source,destination,distance,bearing);
|
||||
|
||||
refreshLocations();
|
||||
emit Lineinfo(distance,bearing);
|
||||
|
||||
refreshLocations();
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
@@ -85,6 +85,10 @@ private:
|
||||
double bearing;
|
||||
|
||||
|
||||
signals:
|
||||
|
||||
void Lineinfo(qreal dis,qreal bearing);
|
||||
|
||||
protected:
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
public slots:
|
||||
|
||||
@@ -171,6 +171,12 @@ OPMapWidget::OPMapWidget(QWidget *parent, Configuration *config) : QGraphicsView
|
||||
measureline->hide();
|
||||
|
||||
|
||||
connect(measureline,SIGNAL(Lineinfo(qreal,qreal)),
|
||||
this,SIGNAL(Lineinfo(qreal,qreal)));
|
||||
|
||||
|
||||
|
||||
|
||||
NoOperationTimer = new QTimer(this);
|
||||
connect(NoOperationTimer,SIGNAL(timeout()),
|
||||
this,SLOT(NOPTimeout()));
|
||||
@@ -223,6 +229,9 @@ void OPMapWidget::UAVTip_clicked(bool flag)
|
||||
|
||||
void OPMapWidget::ruler_clicked(void)
|
||||
{
|
||||
|
||||
emit setrulerClicked();
|
||||
|
||||
if(isMeasure)
|
||||
{
|
||||
isMeasure = false;
|
||||
@@ -279,20 +288,6 @@ void OPMapWidget::ruler_clicked(void)
|
||||
void OPMapWidget::table_clicked(void)
|
||||
{
|
||||
emit settableClicked();
|
||||
|
||||
/*
|
||||
if(missiontable)
|
||||
{
|
||||
if(missiontable->isHidden())
|
||||
{
|
||||
missiontable->show();
|
||||
}
|
||||
else
|
||||
{
|
||||
missiontable->hide();
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
@@ -704,12 +699,14 @@ void OPMapWidget::mouseMoveEvent(QMouseEvent *event)
|
||||
QPointF p = event->pos();
|
||||
p = map->mapFromParent(p);
|
||||
point_end = map->FromLocalToLatLng(p.x(), p.y());
|
||||
//measurenumber = 1;
|
||||
|
||||
emit mousePosition(point_end.Lat(),point_end.Lng());
|
||||
|
||||
if(measureline)
|
||||
{
|
||||
if(measurenumber == 2)//取了第一个点后
|
||||
{
|
||||
emit MeasurePosition(measurenumber,point_end.Lat(),point_end.Lng());
|
||||
measureline->setTo(point_end);
|
||||
}
|
||||
}
|
||||
@@ -765,19 +762,24 @@ void OPMapWidget::mousePressEvent(QMouseEvent *event)
|
||||
QPointF p = event->pos();
|
||||
p = map->mapFromParent(p);
|
||||
point_begin = map->FromLocalToLatLng(p.x(), p.y());
|
||||
|
||||
|
||||
emit MeasurePosition(measurenumber,point_begin.Lat(),point_begin.Lng());
|
||||
measurenumber ++;
|
||||
|
||||
if(measureline)
|
||||
{
|
||||
measureline->setFrom(point_begin);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
QPointF p = event->pos();
|
||||
p = map->mapFromParent(p);
|
||||
point_end = map->FromLocalToLatLng(p.x(), p.y());
|
||||
|
||||
|
||||
emit MeasurePosition(measurenumber,point_end.Lat(),point_end.Lng());
|
||||
measurenumber = 1;
|
||||
|
||||
if(measureline)
|
||||
@@ -814,14 +816,19 @@ void OPMapWidget::mouseReleaseEvent(QMouseEvent *event)
|
||||
emit MouseReleaseEvent(event);
|
||||
|
||||
|
||||
|
||||
if(event->button() == Qt::RightButton)
|
||||
/*
|
||||
if(isMeasure)
|
||||
{
|
||||
if(isMeasure)
|
||||
if(event->button() == Qt::RightButton)
|
||||
{
|
||||
ruler_clicked();
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void OPMapWidget::mouseDoubleClickEvent(QMouseEvent *event)
|
||||
@@ -902,7 +909,32 @@ void OPMapWidget::mouseDoubleClickEvent(QMouseEvent *event)
|
||||
emit MouseDoubleClickEvent(event);
|
||||
}
|
||||
|
||||
|
||||
void OPMapWidget::MeasureValueChanged(int num,qreal value)
|
||||
{
|
||||
if(measureline)
|
||||
{
|
||||
switch (num) {
|
||||
case 1:
|
||||
point_begin.SetLat(value);
|
||||
measureline->setFrom(point_begin);
|
||||
break;
|
||||
case 2:
|
||||
point_begin.SetLng(value);
|
||||
measureline->setFrom(point_begin);
|
||||
break;
|
||||
case 3:
|
||||
point_end.SetLat(value);
|
||||
measureline->setTo(point_end);
|
||||
break;
|
||||
case 4:
|
||||
point_end.SetLng(value);
|
||||
measureline->setTo(point_end);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
////////////////WAYPOINT////////////////////////
|
||||
|
||||
@@ -543,6 +543,7 @@ signals:
|
||||
void ripfinished();
|
||||
|
||||
void settableClicked(void);
|
||||
void setrulerClicked(void);
|
||||
|
||||
void showMessage(const QString &message,int TimeOut = 0);
|
||||
|
||||
@@ -680,6 +681,13 @@ signals:
|
||||
void clearTable();
|
||||
|
||||
|
||||
|
||||
void mousePosition(qreal lat,qreal lng);
|
||||
void MeasurePosition(int num,qreal lat,qreal lng);
|
||||
|
||||
|
||||
void Lineinfo(qreal dis,qreal bearing);
|
||||
|
||||
public slots:
|
||||
|
||||
void getAllPoints(int group);
|
||||
@@ -796,6 +804,11 @@ public slots:
|
||||
|
||||
void userRipMap(bool start,qreal lat_l,qreal lng_l,qreal lat_r,qreal lng_r,qint8 zoom);
|
||||
|
||||
|
||||
void MeasureValueChanged(int num,qreal value);
|
||||
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
#endif // OPMAPWIDGET_H
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
#include "ruledialog.h"
|
||||
#include "ui_ruledialog.h"
|
||||
#include "qmessagebox.h"
|
||||
|
||||
RuleDialog::RuleDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::RuleDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setWindowFlags(Qt::WindowStaysOnTopHint);
|
||||
setUrlFactory = new core::UrlFactory;
|
||||
CurrentPoint = 1;
|
||||
}
|
||||
|
||||
RuleDialog::~RuleDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
double RuleDialog::GetDiatance(internals::PointLatLng P1,internals::PointLatLng P2)
|
||||
{
|
||||
double EarthRadiusKm = 6378.137;
|
||||
|
||||
double dLat1InRad = P1.Lat() * (M_PI / 180);
|
||||
double dLong1InRad = P1.Lng() * (M_PI / 180);
|
||||
double dLat2InRad = P2.Lat() * (M_PI / 180);
|
||||
double dLong2InRad = P2.Lng() * (M_PI / 180);
|
||||
double dLongitude = dLong2InRad - dLong1InRad;
|
||||
double dLatitude = dLat2InRad - dLat1InRad;
|
||||
double a = pow(sin(dLatitude / 2), 2) + cos(dLat1InRad) * cos(dLat2InRad) * pow(sin(dLongitude / 2), 2);
|
||||
double c = 2 * atan2(sqrt(a), sqrt(1 - a));
|
||||
double dDistance = EarthRadiusKm * c;
|
||||
|
||||
return dDistance;
|
||||
}
|
||||
|
||||
double RuleDialog::GetHeading(internals::PointLatLng P1,internals::PointLatLng P2)
|
||||
{
|
||||
double temp;
|
||||
double mLat = P2.Lat() - P1.Lat();
|
||||
double mLon = (P2.Lng() - P1.Lng())* cos(((P2.Lat() + P1.Lat())/2)* 0.0174532925);
|
||||
temp = 90.0 + atan2(-mLat, mLon) * 57.2957795;
|
||||
if(temp < 0)temp += 360.0;
|
||||
return temp;
|
||||
}
|
||||
|
||||
void RuleDialog::RulePoint(internals::PointLatLng LatLng)
|
||||
{
|
||||
switch(CurrentPoint) {
|
||||
case 1:{
|
||||
Point1.SetLat(LatLng.Lat());
|
||||
Point1.SetLng(LatLng.Lng());
|
||||
ui->FirstPointLatitude->setText(QString::number(LatLng.Lat(),'f',8));
|
||||
ui->FirstPointLongitude->setText(QString::number(LatLng.Lng(),'f',8));
|
||||
CurrentPoint = 2;
|
||||
} break;
|
||||
case 2:{
|
||||
Point2.SetLat(LatLng.Lat());
|
||||
Point2.SetLng(LatLng.Lng());
|
||||
ui->SecondPointLatitude->setText(QString::number(LatLng.Lat(),'f',8));
|
||||
ui->SecondPointLongitude->setText(QString::number(LatLng.Lng(),'f',8));
|
||||
} break;
|
||||
default: LatLng = LatLng;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void RuleDialog::ShowMousePos(internals::PointLatLng LatLng)
|
||||
{
|
||||
ui->MouseLatitude->setText(QString::number(LatLng.Lat(),'f',8));
|
||||
ui->MouseLongitude->setText(QString::number(LatLng.Lng(),'f',8));
|
||||
}
|
||||
|
||||
|
||||
void RuleDialog::on_SelectFirstPointButton_clicked()
|
||||
{
|
||||
CurrentPoint = 1;
|
||||
emit GetPoint(1);
|
||||
}
|
||||
|
||||
void RuleDialog::on_SelectSecondPointButton_clicked()
|
||||
{
|
||||
CurrentPoint = 2;
|
||||
emit GetPoint(2);
|
||||
}
|
||||
|
||||
void RuleDialog::on_ConformButton_clicked()
|
||||
{
|
||||
double Distance;
|
||||
Distance = GetDiatance(Point1,Point2);
|
||||
ui->TwoPointDistance->setText(QString::number(Distance,'f',6) + "km");
|
||||
|
||||
double Heading;
|
||||
Heading = GetHeading(Point1,Point2);
|
||||
ui->TwoPointAngle->setText(QString::number(Heading,'f',2) + "°");
|
||||
|
||||
CurrentPoint = 1;//获取结束后从新选择第一点
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
#ifndef RULEDIALOG_H
|
||||
#define RULEDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "urlfactory.h"
|
||||
#include "opmapwidget.h"
|
||||
#include "qmessagebox.h"
|
||||
|
||||
namespace Ui {
|
||||
class RuleDialog;
|
||||
}
|
||||
|
||||
|
||||
#ifdef QtopmapWidget
|
||||
#include <mapwidgetglobal.h>
|
||||
class OPMAPWIDGETSHARED_EXPORT RuleDialog : public QDialog {
|
||||
#else
|
||||
class RuleDialog : public QDialog
|
||||
{
|
||||
#endif
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum WindowsId{ ID = 5 };
|
||||
|
||||
explicit RuleDialog(QWidget *parent = 0);
|
||||
~RuleDialog();
|
||||
|
||||
signals:
|
||||
void isWindowClose(char);
|
||||
void GetPoint(quint8);
|
||||
|
||||
|
||||
private slots:
|
||||
double GetDiatance(internals::PointLatLng P1,internals::PointLatLng P2);
|
||||
double GetHeading(internals::PointLatLng P1,internals::PointLatLng P2);
|
||||
|
||||
void RulePoint(internals::PointLatLng LatLng);
|
||||
void ShowMousePos(internals::PointLatLng LatLng);
|
||||
|
||||
void on_SelectFirstPointButton_clicked();
|
||||
|
||||
void on_SelectSecondPointButton_clicked();
|
||||
|
||||
void on_ConformButton_clicked();
|
||||
|
||||
|
||||
private:
|
||||
Ui::RuleDialog *ui;
|
||||
|
||||
core::UrlFactory *setUrlFactory;
|
||||
|
||||
internals::PointLatLng Point1;
|
||||
internals::PointLatLng Point2;
|
||||
|
||||
quint8 CurrentPoint;
|
||||
|
||||
QMessageBox *Box1;
|
||||
|
||||
};
|
||||
|
||||
#endif // RULEDIALOG_H
|
||||
Reference in New Issue
Block a user