曲线更新
This commit is contained in:
@@ -20,7 +20,12 @@ Chart::Chart(QChart *chart, QWidget *parent)
|
||||
chart->setAnimationOptions(QChart::SeriesAnimations);
|
||||
|
||||
|
||||
QFont font;
|
||||
font.setFamily("微软雅黑");
|
||||
font.setPointSize(9);
|
||||
|
||||
QValueAxis *axisX = new QValueAxis();
|
||||
axisX->setLabelsFont(font);
|
||||
axisX->setRange(0, 60);
|
||||
axisX->setTickCount(11);
|
||||
axisX->setLabelFormat("%.0f");
|
||||
@@ -28,6 +33,7 @@ Chart::Chart(QChart *chart, QWidget *parent)
|
||||
|
||||
|
||||
QValueAxis *axisY = new QValueAxis();
|
||||
axisY->setLabelsFont(font);
|
||||
axisY->setRange(-3, 3);
|
||||
axisY->setTickCount(7);
|
||||
axisY->setLabelFormat("%.2f");
|
||||
@@ -45,6 +51,11 @@ Chart::Chart(QChart *chart, QWidget *parent)
|
||||
//默认不使用,因为使用显卡加速图形会闪
|
||||
setUseOpenGL(true);
|
||||
|
||||
chart->layout()->setContentsMargins(2, 2, 2, 2);
|
||||
//chart->setContentsMargins(0, 0, 0, 0); //设置外边界全部为0
|
||||
chart->setMargins(QMargins(0, 0, 0, 0));//设置内边界全部为0
|
||||
chart->setBackgroundRoundness(0); //设置背景区域无圆角
|
||||
|
||||
if(!updateTimer)
|
||||
{
|
||||
updateTimer = new QTimer(this);
|
||||
@@ -65,8 +76,12 @@ Chart::Chart(QWidget *parent)
|
||||
//chart()->setPlotArea(this->geometry());
|
||||
chart()->setAnimationOptions(QChart::SeriesAnimations);
|
||||
|
||||
QFont font;
|
||||
font.setFamily("微软雅黑");
|
||||
font.setPointSize(9);
|
||||
|
||||
QValueAxis *axisX = new QValueAxis();
|
||||
axisX->setLabelsFont(font);
|
||||
axisX->setRange(0, 60);
|
||||
axisX->setTickCount(11);
|
||||
axisX->setLabelFormat("%.0f");
|
||||
@@ -74,6 +89,7 @@ Chart::Chart(QWidget *parent)
|
||||
|
||||
|
||||
QValueAxis *axisY = new QValueAxis();
|
||||
axisY->setLabelsFont(font);
|
||||
axisY->setRange(-1, 1);
|
||||
axisY->setTickCount(7);
|
||||
axisY->setLabelFormat("%.2f");
|
||||
@@ -87,6 +103,11 @@ Chart::Chart(QWidget *parent)
|
||||
//默认不使用,因为使用显卡加速图形会闪
|
||||
setUseOpenGL(true);
|
||||
|
||||
chart()->layout()->setContentsMargins(2, 2, 2, 2);
|
||||
//chart()->setContentsMargins(0, 0, 0, 0); //设置外边界全部为0
|
||||
chart()->setMargins(QMargins(0, 0, 0, 0));//设置内边界全部为0
|
||||
chart()->setBackgroundRoundness(0); //设置背景区域无圆角
|
||||
|
||||
if(!updateTimer)
|
||||
{
|
||||
updateTimer = new QTimer(this);
|
||||
@@ -110,32 +131,38 @@ Chart::~Chart()
|
||||
}
|
||||
}
|
||||
|
||||
void Chart::leaveEvent(QEvent *e)
|
||||
void Chart::enterEvent(QEvent *event)
|
||||
{
|
||||
//setCursor(Qt::SizeVerCursor);
|
||||
QChartView::leaveEvent(event);
|
||||
}
|
||||
|
||||
void Chart::leaveEvent(QEvent *event)
|
||||
{
|
||||
isPress = false;
|
||||
setCursor(Qt::ArrowCursor);
|
||||
QChartView::leaveEvent(e);
|
||||
QChartView::leaveEvent(event);
|
||||
}
|
||||
|
||||
void Chart::hideEvent(QHideEvent *e)
|
||||
void Chart::hideEvent(QHideEvent *event)
|
||||
{
|
||||
qDebug() << e;
|
||||
qDebug() << event;
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Chart::showEvent(QShowEvent *e)
|
||||
void Chart::showEvent(QShowEvent *event)
|
||||
{
|
||||
qDebug() << e;
|
||||
qDebug() << event;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Chart::mouseMoveEvent(QMouseEvent *e)
|
||||
void Chart::mouseMoveEvent(QMouseEvent *event)
|
||||
{
|
||||
if(isoperation)
|
||||
{
|
||||
const QPoint curPos = e->pos();
|
||||
const QPoint curPos = event->pos();
|
||||
if (isPress)
|
||||
{
|
||||
QPoint offset = curPos - lastPoint;
|
||||
@@ -146,7 +173,7 @@ void Chart::mouseMoveEvent(QMouseEvent *e)
|
||||
//QChartView::mouseMoveEvent(e);
|
||||
}
|
||||
|
||||
void Chart::mouseReleaseEvent(QMouseEvent *e)
|
||||
void Chart::mouseReleaseEvent(QMouseEvent *event)
|
||||
{
|
||||
if(isoperation)
|
||||
{
|
||||
@@ -156,38 +183,52 @@ void Chart::mouseReleaseEvent(QMouseEvent *e)
|
||||
//QChartView::mouseReleaseEvent(e);
|
||||
}
|
||||
|
||||
void Chart::mousePressEvent(QMouseEvent *e)
|
||||
void Chart::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
|
||||
|
||||
if(isoperation)
|
||||
{
|
||||
if (e->button() == Qt::RightButton)
|
||||
if (event->button() == Qt::RightButton)
|
||||
{
|
||||
lastPoint = e->pos();
|
||||
lastPoint = event->pos();
|
||||
isPress = true;
|
||||
setCursor(Qt::ClosedHandCursor);
|
||||
}
|
||||
}
|
||||
//QChartView::mousePressEvent(e);
|
||||
|
||||
if(Select())
|
||||
{
|
||||
setSelect(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
setSelect(true);
|
||||
}
|
||||
|
||||
emit select(Select());//被选中
|
||||
|
||||
}
|
||||
|
||||
void Chart::mouseDoubleClickEvent(QMouseEvent *e)
|
||||
void Chart::mouseDoubleClickEvent(QMouseEvent *event)
|
||||
{
|
||||
qDebug() << "Chart double clicked" << e;
|
||||
qDebug() << "Chart double clicked" << event;
|
||||
//双击生成一个标
|
||||
|
||||
|
||||
//QChartView::mouseDoubleClickEvent(e);
|
||||
}
|
||||
|
||||
void Chart::wheelEvent(QWheelEvent *e)
|
||||
void Chart::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
if(isoperation)
|
||||
{
|
||||
//以鼠标坐标为中心进行缩放
|
||||
QPointF curVal = chart()->mapToValue(QPointF(e->pos()));
|
||||
QPointF curVal = chart()->mapToValue(QPointF(event->pos()));
|
||||
//缩放比例
|
||||
const double factor = 1.5;
|
||||
switch(e->modifiers())
|
||||
switch(event->modifiers())
|
||||
{
|
||||
case Qt::ControlModifier://垂直缩放
|
||||
{
|
||||
@@ -198,7 +239,7 @@ void Chart::wheelEvent(QWheelEvent *e)
|
||||
|
||||
double bottomOffset;
|
||||
double topOffset;
|
||||
if (e->delta() > 0)
|
||||
if (event->delta() > 0)
|
||||
{//放大
|
||||
bottomOffset = 1.0 / factor * (Central - Min);
|
||||
topOffset = 1.0 / factor * (Max - Central);
|
||||
@@ -213,6 +254,7 @@ void Chart::wheelEvent(QWheelEvent *e)
|
||||
}break;
|
||||
case Qt::ShiftModifier://水平缩放
|
||||
{
|
||||
//setCursor(Qt::SizeVerCursor);
|
||||
QValueAxis *axis = dynamic_cast<QValueAxis*>(chart()->axisX());
|
||||
const double Min = axis->min();
|
||||
const double Max = axis->max();
|
||||
@@ -220,7 +262,7 @@ void Chart::wheelEvent(QWheelEvent *e)
|
||||
|
||||
double bottomOffset;
|
||||
double topOffset;
|
||||
if (e->delta() > 0)
|
||||
if (event->delta() > 0)
|
||||
{//放大
|
||||
bottomOffset = 1.0 / factor * (Central - Min);
|
||||
topOffset = 1.0 / factor * (Max - Central);
|
||||
@@ -236,11 +278,11 @@ void Chart::wheelEvent(QWheelEvent *e)
|
||||
{
|
||||
QValueAxis *axis = dynamic_cast<QValueAxis*>(chart()->axisX());
|
||||
qreal dwidth = chart()->plotArea().width()/(axis->tickCount()*2);
|
||||
if(e->delta() > 0)
|
||||
if(event->delta() > 0)
|
||||
{
|
||||
chart()->scroll(-dwidth,0);
|
||||
}
|
||||
else if(e->delta() < 0)
|
||||
else if(event->delta() < 0)
|
||||
{
|
||||
chart()->scroll(dwidth,0);
|
||||
}
|
||||
@@ -250,7 +292,7 @@ void Chart::wheelEvent(QWheelEvent *e)
|
||||
//QChartView::wheelEvent(e);
|
||||
}
|
||||
|
||||
void Chart::resizeEvent(QResizeEvent *e)
|
||||
void Chart::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
chart()->setPos(0,0);
|
||||
chart()->setGeometry(this->geometry());
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
#include <QMouseEvent>
|
||||
#include <QGraphicsSimpleTextItem>
|
||||
#include <QGraphicsLayout>
|
||||
|
||||
#include "QChart"
|
||||
#include <QChartView>
|
||||
@@ -74,19 +75,31 @@ public:
|
||||
}
|
||||
|
||||
|
||||
bool Select()
|
||||
{
|
||||
return isSelected;
|
||||
}
|
||||
|
||||
void setSelect(bool flag)
|
||||
{
|
||||
isSelected = flag;
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
void hideEvent(QHideEvent *e);
|
||||
void showEvent(QShowEvent *e);
|
||||
void leaveEvent(QEvent *e);
|
||||
void mouseMoveEvent(QMouseEvent *e);
|
||||
void mouseReleaseEvent(QMouseEvent *e);
|
||||
void mousePressEvent(QMouseEvent *e);
|
||||
void mouseDoubleClickEvent(QMouseEvent *e);
|
||||
void wheelEvent(QWheelEvent *e);
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
void hideEvent(QHideEvent *event);
|
||||
void showEvent(QShowEvent *event);
|
||||
void enterEvent(QEvent *event);
|
||||
void leaveEvent(QEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
||||
void wheelEvent(QWheelEvent *event);
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
|
||||
signals:
|
||||
|
||||
void select(bool);
|
||||
|
||||
public slots:
|
||||
void timeout(void);
|
||||
@@ -130,6 +143,8 @@ private:
|
||||
QMap<quint64,double> DataSeries;
|
||||
|
||||
|
||||
bool isSelected = false;
|
||||
|
||||
};
|
||||
|
||||
#endif // CHART_H
|
||||
|
||||
Binary file not shown.
+247
-252
@@ -2066,31 +2066,31 @@
|
||||
<translation type="vanished">参数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="862"/>
|
||||
<location filename="mainwindow.cpp" line="863"/>
|
||||
<location filename="mainwindow.cpp" line="864"/>
|
||||
<location filename="mainwindow.cpp" line="865"/>
|
||||
<source>Communication Lost</source>
|
||||
<translation>通讯丢失</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="917"/>
|
||||
<location filename="mainwindow.cpp" line="918"/>
|
||||
<location filename="mainwindow.cpp" line="919"/>
|
||||
<location filename="mainwindow.cpp" line="920"/>
|
||||
<source>Communication Regain</source>
|
||||
<translation>通讯已恢复</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1062"/>
|
||||
<location filename="mainwindow.cpp" line="1998"/>
|
||||
<location filename="mainwindow.cpp" line="2181"/>
|
||||
<location filename="mainwindow.cpp" line="1064"/>
|
||||
<location filename="mainwindow.cpp" line="2000"/>
|
||||
<location filename="mainwindow.cpp" line="2183"/>
|
||||
<source>未定位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1066"/>
|
||||
<location filename="mainwindow.cpp" line="1068"/>
|
||||
<source>%1D[%2颗]</source>
|
||||
<translation>%1D[%2颗]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1069"/>
|
||||
<location filename="mainwindow.cpp" line="1071"/>
|
||||
<source>fix[%1颗]</source>
|
||||
<oldsource>%1D Fix</oldsource>
|
||||
<translation>差分[%1颗]</translation>
|
||||
@@ -2108,370 +2108,370 @@
|
||||
<translation type="vanished">GPS错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1072"/>
|
||||
<location filename="mainwindow.cpp" line="1074"/>
|
||||
<source>float[%1颗]</source>
|
||||
<translation>浮点[%1颗]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1075"/>
|
||||
<location filename="mainwindow.cpp" line="1077"/>
|
||||
<source>err[%1颗]</source>
|
||||
<translation>错误[%1颗]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1128"/>
|
||||
<location filename="mainwindow.cpp" line="1130"/>
|
||||
<source>ARM</source>
|
||||
<translation>解锁</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1133"/>
|
||||
<location filename="mainwindow.cpp" line="1135"/>
|
||||
<source>DISARM</source>
|
||||
<translation>上锁</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1156"/>
|
||||
<location filename="mainwindow.cpp" line="1158"/>
|
||||
<source>MANUAL</source>
|
||||
<translation>手动</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1159"/>
|
||||
<location filename="mainwindow.cpp" line="1161"/>
|
||||
<source>ALTCTL</source>
|
||||
<translation>定高</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1162"/>
|
||||
<location filename="mainwindow.cpp" line="1164"/>
|
||||
<source>POSCTL</source>
|
||||
<translation>定点</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1165"/>
|
||||
<location filename="mainwindow.cpp" line="1167"/>
|
||||
<source>AUTO</source>
|
||||
<translation>自主</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1168"/>
|
||||
<location filename="mainwindow.cpp" line="1170"/>
|
||||
<source>ACRO</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1171"/>
|
||||
<location filename="mainwindow.cpp" line="1173"/>
|
||||
<source>OFFBOARD</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1174"/>
|
||||
<location filename="mainwindow.cpp" line="1176"/>
|
||||
<source>STABILIZED</source>
|
||||
<translation>增稳</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1177"/>
|
||||
<location filename="mainwindow.cpp" line="1179"/>
|
||||
<source>RATTITUDE</source>
|
||||
<translation>速率</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1180"/>
|
||||
<location filename="mainwindow.cpp" line="1182"/>
|
||||
<source>STANDBY</source>
|
||||
<translation>待机</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1183"/>
|
||||
<location filename="mainwindow.cpp" line="1185"/>
|
||||
<source>BIT</source>
|
||||
<translation>测试</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1186"/>
|
||||
<location filename="mainwindow.cpp" line="1188"/>
|
||||
<source>AUTO_READY</source>
|
||||
<translation>就绪</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1189"/>
|
||||
<location filename="mainwindow.cpp" line="1191"/>
|
||||
<source>AUTO_TAKEOFF</source>
|
||||
<translation>起飞</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1192"/>
|
||||
<location filename="mainwindow.cpp" line="1194"/>
|
||||
<source>AUTO_LOITER</source>
|
||||
<translation>盘旋</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1195"/>
|
||||
<location filename="mainwindow.cpp" line="1197"/>
|
||||
<source>AUTO_MISSION</source>
|
||||
<translation>任务</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1198"/>
|
||||
<location filename="mainwindow.cpp" line="1200"/>
|
||||
<source>AUTO_RTL</source>
|
||||
<translation>返航</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1201"/>
|
||||
<location filename="mainwindow.cpp" line="1203"/>
|
||||
<source>AUTO_LAND</source>
|
||||
<translation>着陆</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1204"/>
|
||||
<location filename="mainwindow.cpp" line="1206"/>
|
||||
<source>AUTO_RTGS</source>
|
||||
<translation>RTGS</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1207"/>
|
||||
<location filename="mainwindow.cpp" line="1209"/>
|
||||
<source>AUTO_FOLLOW_TARGET</source>
|
||||
<translation>目标跟随</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1455"/>
|
||||
<location filename="mainwindow.cpp" line="1457"/>
|
||||
<source>开加力</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1458"/>
|
||||
<location filename="mainwindow.cpp" line="1460"/>
|
||||
<source>半加力</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1461"/>
|
||||
<location filename="mainwindow.cpp" line="1463"/>
|
||||
<source>全加力</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1464"/>
|
||||
<location filename="mainwindow.cpp" line="1473"/>
|
||||
<location filename="mainwindow.cpp" line="1466"/>
|
||||
<location filename="mainwindow.cpp" line="1475"/>
|
||||
<source>关加力</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1480"/>
|
||||
<location filename="mainwindow.cpp" line="1482"/>
|
||||
<source>伞舱开</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1485"/>
|
||||
<location filename="mainwindow.cpp" line="1487"/>
|
||||
<source>伞舱关</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1496"/>
|
||||
<location filename="mainwindow.cpp" line="1498"/>
|
||||
<source>INS解算正常</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1501"/>
|
||||
<location filename="mainwindow.cpp" line="1503"/>
|
||||
<source>INS星数不足</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1506"/>
|
||||
<location filename="mainwindow.cpp" line="1508"/>
|
||||
<source>INS内部错误</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1511"/>
|
||||
<location filename="mainwindow.cpp" line="1513"/>
|
||||
<source>INS速度超限</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1520"/>
|
||||
<location filename="mainwindow.cpp" line="1522"/>
|
||||
<source>SBG解算正常</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1525"/>
|
||||
<location filename="mainwindow.cpp" line="1527"/>
|
||||
<source>SBG星数不足</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1530"/>
|
||||
<location filename="mainwindow.cpp" line="1532"/>
|
||||
<source>SBG内部错误</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1535"/>
|
||||
<location filename="mainwindow.cpp" line="1537"/>
|
||||
<source>SBG速度超限</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1631"/>
|
||||
<location filename="mainwindow.cpp" line="1637"/>
|
||||
<location filename="mainwindow.cpp" line="1633"/>
|
||||
<location filename="mainwindow.cpp" line="1639"/>
|
||||
<location filename="mainwindow.cpp" line="1641"/>
|
||||
<location filename="mainwindow.cpp" line="1643"/>
|
||||
<source> </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1813"/>
|
||||
<location filename="mainwindow.cpp" line="1815"/>
|
||||
<source>GPS Unlocated</source>
|
||||
<translation>未定位</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1817"/>
|
||||
<location filename="mainwindow.cpp" line="1819"/>
|
||||
<source>%1D</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1820"/>
|
||||
<location filename="mainwindow.cpp" line="1822"/>
|
||||
<source>fixed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1823"/>
|
||||
<location filename="mainwindow.cpp" line="1825"/>
|
||||
<source>float</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1826"/>
|
||||
<location filename="mainwindow.cpp" line="1828"/>
|
||||
<source>%1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1892"/>
|
||||
<location filename="mainwindow.cpp" line="2076"/>
|
||||
<location filename="mainwindow.cpp" line="1894"/>
|
||||
<location filename="mainwindow.cpp" line="2078"/>
|
||||
<source>未初始化</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1897"/>
|
||||
<location filename="mainwindow.cpp" line="2080"/>
|
||||
<location filename="mainwindow.cpp" line="1899"/>
|
||||
<location filename="mainwindow.cpp" line="2082"/>
|
||||
<source>垂直陀螺</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1901"/>
|
||||
<location filename="mainwindow.cpp" line="2084"/>
|
||||
<location filename="mainwindow.cpp" line="1903"/>
|
||||
<location filename="mainwindow.cpp" line="2086"/>
|
||||
<source>AHRS</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1905"/>
|
||||
<location filename="mainwindow.cpp" line="2088"/>
|
||||
<location filename="mainwindow.cpp" line="1907"/>
|
||||
<location filename="mainwindow.cpp" line="2090"/>
|
||||
<source>速度导航</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1909"/>
|
||||
<location filename="mainwindow.cpp" line="2092"/>
|
||||
<location filename="mainwindow.cpp" line="1911"/>
|
||||
<location filename="mainwindow.cpp" line="2094"/>
|
||||
<source>位置导航</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1916"/>
|
||||
<location filename="mainwindow.cpp" line="1925"/>
|
||||
<location filename="mainwindow.cpp" line="1934"/>
|
||||
<location filename="mainwindow.cpp" line="1943"/>
|
||||
<location filename="mainwindow.cpp" line="2099"/>
|
||||
<location filename="mainwindow.cpp" line="2108"/>
|
||||
<location filename="mainwindow.cpp" line="2117"/>
|
||||
<location filename="mainwindow.cpp" line="2126"/>
|
||||
<location filename="mainwindow.cpp" line="1918"/>
|
||||
<location filename="mainwindow.cpp" line="1927"/>
|
||||
<location filename="mainwindow.cpp" line="1936"/>
|
||||
<location filename="mainwindow.cpp" line="1945"/>
|
||||
<location filename="mainwindow.cpp" line="2101"/>
|
||||
<location filename="mainwindow.cpp" line="2110"/>
|
||||
<location filename="mainwindow.cpp" line="2119"/>
|
||||
<location filename="mainwindow.cpp" line="2128"/>
|
||||
<source>正常</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1919"/>
|
||||
<location filename="mainwindow.cpp" line="1928"/>
|
||||
<location filename="mainwindow.cpp" line="1937"/>
|
||||
<location filename="mainwindow.cpp" line="1946"/>
|
||||
<location filename="mainwindow.cpp" line="1978"/>
|
||||
<location filename="mainwindow.cpp" line="2102"/>
|
||||
<location filename="mainwindow.cpp" line="2111"/>
|
||||
<location filename="mainwindow.cpp" line="2120"/>
|
||||
<location filename="mainwindow.cpp" line="2129"/>
|
||||
<location filename="mainwindow.cpp" line="2161"/>
|
||||
<location filename="mainwindow.cpp" line="1921"/>
|
||||
<location filename="mainwindow.cpp" line="1930"/>
|
||||
<location filename="mainwindow.cpp" line="1939"/>
|
||||
<location filename="mainwindow.cpp" line="1948"/>
|
||||
<location filename="mainwindow.cpp" line="1980"/>
|
||||
<location filename="mainwindow.cpp" line="2104"/>
|
||||
<location filename="mainwindow.cpp" line="2113"/>
|
||||
<location filename="mainwindow.cpp" line="2122"/>
|
||||
<location filename="mainwindow.cpp" line="2131"/>
|
||||
<location filename="mainwindow.cpp" line="2163"/>
|
||||
<source>无效</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1956"/>
|
||||
<location filename="mainwindow.cpp" line="2139"/>
|
||||
<location filename="mainwindow.cpp" line="1958"/>
|
||||
<location filename="mainwindow.cpp" line="2141"/>
|
||||
<source>解算正常</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1960"/>
|
||||
<location filename="mainwindow.cpp" line="2143"/>
|
||||
<location filename="mainwindow.cpp" line="1962"/>
|
||||
<location filename="mainwindow.cpp" line="2145"/>
|
||||
<source>卫星数不足</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1964"/>
|
||||
<location filename="mainwindow.cpp" line="2147"/>
|
||||
<location filename="mainwindow.cpp" line="1966"/>
|
||||
<location filename="mainwindow.cpp" line="2149"/>
|
||||
<source>内部错误</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1968"/>
|
||||
<location filename="mainwindow.cpp" line="2151"/>
|
||||
<location filename="mainwindow.cpp" line="1970"/>
|
||||
<location filename="mainwindow.cpp" line="2153"/>
|
||||
<source>速度超限</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1982"/>
|
||||
<location filename="mainwindow.cpp" line="2000"/>
|
||||
<location filename="mainwindow.cpp" line="2165"/>
|
||||
<location filename="mainwindow.cpp" line="2183"/>
|
||||
<location filename="mainwindow.cpp" line="1984"/>
|
||||
<location filename="mainwindow.cpp" line="2002"/>
|
||||
<location filename="mainwindow.cpp" line="2167"/>
|
||||
<location filename="mainwindow.cpp" line="2185"/>
|
||||
<source>未知</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1986"/>
|
||||
<location filename="mainwindow.cpp" line="2169"/>
|
||||
<location filename="mainwindow.cpp" line="1988"/>
|
||||
<location filename="mainwindow.cpp" line="2171"/>
|
||||
<source>多普勒</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1990"/>
|
||||
<location filename="mainwindow.cpp" line="2173"/>
|
||||
<location filename="mainwindow.cpp" line="1992"/>
|
||||
<location filename="mainwindow.cpp" line="2175"/>
|
||||
<source>微分</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2003"/>
|
||||
<location filename="mainwindow.cpp" line="2186"/>
|
||||
<location filename="mainwindow.cpp" line="2005"/>
|
||||
<location filename="mainwindow.cpp" line="2188"/>
|
||||
<source>单点</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2006"/>
|
||||
<location filename="mainwindow.cpp" line="2189"/>
|
||||
<location filename="mainwindow.cpp" line="2008"/>
|
||||
<location filename="mainwindow.cpp" line="2191"/>
|
||||
<source>伪距差分</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2009"/>
|
||||
<location filename="mainwindow.cpp" line="2192"/>
|
||||
<location filename="mainwindow.cpp" line="2011"/>
|
||||
<location filename="mainwindow.cpp" line="2194"/>
|
||||
<source>SBAS广域差分</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2012"/>
|
||||
<location filename="mainwindow.cpp" line="2195"/>
|
||||
<location filename="mainwindow.cpp" line="2014"/>
|
||||
<location filename="mainwindow.cpp" line="2197"/>
|
||||
<source>广域差分</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2015"/>
|
||||
<location filename="mainwindow.cpp" line="2198"/>
|
||||
<location filename="mainwindow.cpp" line="2017"/>
|
||||
<location filename="mainwindow.cpp" line="2200"/>
|
||||
<source>RTK_FLOAT</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2018"/>
|
||||
<location filename="mainwindow.cpp" line="2201"/>
|
||||
<location filename="mainwindow.cpp" line="2020"/>
|
||||
<location filename="mainwindow.cpp" line="2203"/>
|
||||
<source>RTK_INT</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2021"/>
|
||||
<location filename="mainwindow.cpp" line="2204"/>
|
||||
<location filename="mainwindow.cpp" line="2023"/>
|
||||
<location filename="mainwindow.cpp" line="2206"/>
|
||||
<source>PPP_FLOAT</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2024"/>
|
||||
<location filename="mainwindow.cpp" line="2207"/>
|
||||
<location filename="mainwindow.cpp" line="2026"/>
|
||||
<location filename="mainwindow.cpp" line="2209"/>
|
||||
<source>PPP_INT</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2027"/>
|
||||
<location filename="mainwindow.cpp" line="2210"/>
|
||||
<location filename="mainwindow.cpp" line="2029"/>
|
||||
<location filename="mainwindow.cpp" line="2212"/>
|
||||
<source>FIXED</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@@ -2480,17 +2480,17 @@
|
||||
<translation type="vanished">未支持</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1225"/>
|
||||
<location filename="mainwindow.cpp" line="1227"/>
|
||||
<source>flight mode</source>
|
||||
<translation>飞行模式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1545"/>
|
||||
<location filename="mainwindow.cpp" line="1547"/>
|
||||
<source>连接内置惯导</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1545"/>
|
||||
<location filename="mainwindow.cpp" line="1547"/>
|
||||
<source>连接SBG</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
@@ -2725,18 +2725,23 @@
|
||||
<translation>无人机 %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Setting/Index1/ParameterInspector/ParameterInspector.cpp" line="739"/>
|
||||
<location filename="Setting/Index1/ParameterInspector/ParameterInspector.cpp" line="718"/>
|
||||
<source>修改参数 %1 %2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Setting/Index1/ParameterInspector/ParameterInspector.cpp" line="740"/>
|
||||
<source>Save Parameter File...</source>
|
||||
<translation>保存参数...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Setting/Index1/ParameterInspector/ParameterInspector.cpp" line="741"/>
|
||||
<location filename="Setting/Index1/ParameterInspector/ParameterInspector.cpp" line="755"/>
|
||||
<location filename="Setting/Index1/ParameterInspector/ParameterInspector.cpp" line="742"/>
|
||||
<location filename="Setting/Index1/ParameterInspector/ParameterInspector.cpp" line="756"/>
|
||||
<source>parameters file (*.params)</source>
|
||||
<translation>参数文件 (*.params)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Setting/Index1/ParameterInspector/ParameterInspector.cpp" line="753"/>
|
||||
<location filename="Setting/Index1/ParameterInspector/ParameterInspector.cpp" line="754"/>
|
||||
<source>Selete Parameter File...</source>
|
||||
<translation>选择参数...</translation>
|
||||
</message>
|
||||
@@ -3210,125 +3215,125 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="217"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="242"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="267"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="292"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="331"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="363"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="407"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="432"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="527"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="553"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="572"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="605"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="624"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="643"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="662"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="681"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="700"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="726"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="745"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="764"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="790"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="816"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="835"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="854"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="873"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="892"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="911"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="930"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="949"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="968"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="994"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1013"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1039"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1058"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1077"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1117"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1136"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1165"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1191"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1210"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1229"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1269"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1288"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1307"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1340"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1373"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1392"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1424"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1450"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1476"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1495"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1521"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1540"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1559"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="221"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="246"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="271"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="296"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="335"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="367"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="411"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="436"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="531"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="557"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="576"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="609"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="628"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="647"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="666"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="685"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="704"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="730"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="749"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="768"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="794"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="820"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="839"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="858"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="877"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="896"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="915"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="934"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="953"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="972"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="998"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1017"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1043"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1062"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1081"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1121"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1140"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1169"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1195"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1214"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1233"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1273"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1292"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1311"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1344"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1377"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1396"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1428"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1454"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1480"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1499"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1525"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1544"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1563"/>
|
||||
<source>0</source>
|
||||
<translation type="unfinished">0</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="774"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="778"/>
|
||||
<source>海拔[m]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1087"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1091"/>
|
||||
<source>GPS</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1101"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1105"/>
|
||||
<source>BIT</source>
|
||||
<translation type="unfinished">测试</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1239"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1243"/>
|
||||
<source>纬度[°]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1253"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1257"/>
|
||||
<source>速度状态</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1094"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1098"/>
|
||||
<source>p[°/s]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1023"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1027"/>
|
||||
<source>航向状态</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1357"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1361"/>
|
||||
<source>姿态状态</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="458"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="462"/>
|
||||
<source>外部大气机</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="800"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="804"/>
|
||||
<source>位置状态</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="378"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="382"/>
|
||||
<source>气压高度[m]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="309"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="313"/>
|
||||
<source>表速[m/s]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="302"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="306"/>
|
||||
<source>真空速[m/s]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@@ -3338,119 +3343,119 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="341"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="345"/>
|
||||
<source>动压[hPa]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="385"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="389"/>
|
||||
<source>静压[hPa]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="448"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="452"/>
|
||||
<source>内部大气机</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="484"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="488"/>
|
||||
<source>惯导状态</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="537"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="541"/>
|
||||
<source>COM</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="582"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="586"/>
|
||||
<source>卫星数</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="589"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="593"/>
|
||||
<source>r[°/s]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1146"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1150"/>
|
||||
<source>外部惯导</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1175"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1179"/>
|
||||
<source>System</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1246"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1250"/>
|
||||
<source>滚转角[°]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="508"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="512"/>
|
||||
<source>内部惯导</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1402"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1406"/>
|
||||
<source>q[°/s]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1350"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1354"/>
|
||||
<source>俯仰角[°]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="468"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="472"/>
|
||||
<source>马赫数</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1460"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1464"/>
|
||||
<source>ax[m/s2]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1317"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1321"/>
|
||||
<source>经度[°]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="978"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="982"/>
|
||||
<source>地速[m/s]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="710"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="714"/>
|
||||
<source>ay[m/s2]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1434"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1438"/>
|
||||
<source>航向角[°]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="173"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="177"/>
|
||||
<source>大气机状态</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1505"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1509"/>
|
||||
<source>航迹角[°]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1324"/>
|
||||
<location filename="ToolsUI/Senser/Senser.ui" line="1328"/>
|
||||
<source>az[m/s2]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/Senser/Senser.cpp" line="18"/>
|
||||
<source>sensor</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>传感器</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@@ -4020,65 +4025,65 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="684"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="702"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="803"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="832"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="862"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="890"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="917"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="975"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="687"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="705"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="806"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="837"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="869"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="899"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="928"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="986"/>
|
||||
<source>警告</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="685"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="703"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="688"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="706"/>
|
||||
<source>请选择测试项和测试点</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="804"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="807"/>
|
||||
<source>请设定给定转速</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="833"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="863"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="891"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="918"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="838"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="870"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="900"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="929"/>
|
||||
<source>请设定目标</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="965"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="976"/>
|
||||
<source>设定舵机 %1 %2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="976"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="987"/>
|
||||
<source>请设定</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="989"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1000"/>
|
||||
<source>设定舵机归零 %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="998"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1009"/>
|
||||
<source>%1 %2kg</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1020"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1027"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1047"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1053"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1059"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1065"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1096"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1031"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1038"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1058"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1064"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1070"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1076"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1107"/>
|
||||
<location filename="ToolsUI/ServoSystem/ServoSystem.cpp" line="1118"/>
|
||||
<source>设定 %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@@ -4428,33 +4433,23 @@
|
||||
<translation>日志</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="40"/>
|
||||
<source>welcome</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="41"/>
|
||||
<source>uav ground control system</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="101"/>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="96"/>
|
||||
<source>[%1] %2 >> %3</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="118"/>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="113"/>
|
||||
<source>[%1] %2 >> %3
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="135"/>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="130"/>
|
||||
<source>Selete Path of File...</source>
|
||||
<translation type="unfinished">选择文件路径...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="137"/>
|
||||
<location filename="ToolsUI/tools_Index1/tools_Index1.cpp" line="132"/>
|
||||
<source>log file (*.log)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
||||
@@ -102,6 +102,12 @@ PowerSystem::PowerSystem(QWidget *parent) :
|
||||
cmdList.insert(0xea,"加力点火快速阀");
|
||||
|
||||
|
||||
ui->frame_RPM->resize(590,176);
|
||||
ui->frame_Temp->resize(590,176);
|
||||
ui->frame_Alt->resize(590,176);
|
||||
ui->frame_Ma->resize(590,176);
|
||||
|
||||
|
||||
ScopeRPM = new Chart(ui->frame_RPM);
|
||||
ScopeTemp = new Chart(ui->frame_Temp);
|
||||
ScopeAlt = new Chart(ui->frame_Alt);
|
||||
@@ -148,6 +154,8 @@ void PowerSystem::resizeEvent(QResizeEvent *event)
|
||||
ScopeTemp->setGeometry(0,0,ui->frame_Temp->width(),ui->frame_Temp->height());
|
||||
ScopeAlt->setGeometry(0,0,ui->frame_Alt->width(),ui->frame_Alt->height());
|
||||
ScopeMa->setGeometry(0,0,ui->frame_Ma->width(),ui->frame_Ma->height());
|
||||
|
||||
//qDebug() << ui->frame_Ma->size();
|
||||
}
|
||||
|
||||
void PowerSystem::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
+163
-69
@@ -17,12 +17,14 @@ Senser::Senser(QWidget *parent) :
|
||||
|
||||
this->setWindowTitle(tr("sensor"));
|
||||
|
||||
//ui->frame_Attitude->resize(400,300);
|
||||
//ui->frame_Gyro->resize(400,300);
|
||||
//ui->frame_Accelerate->resize(400,300);
|
||||
//ui->frame_Servo->resize(400,300);
|
||||
//ui->frame_Altitude->resize(400,300);
|
||||
//ui->frame_Speed->resize(400,300);
|
||||
ui->frame_Attitude->resize(490,235);
|
||||
ui->frame_Gyro->resize(490,235);
|
||||
ui->frame_Accelerate->resize(490,235);
|
||||
ui->frame_Servo->resize(490,235);
|
||||
ui->frame_Altitude->resize(490,235);
|
||||
ui->frame_Speed->resize(490,235);
|
||||
|
||||
|
||||
|
||||
|
||||
attChart = new Chart(ui->frame_Attitude);
|
||||
@@ -84,75 +86,24 @@ Senser::Senser(QWidget *parent) :
|
||||
altChart->setRubberBand(QChartView::RectangleRubberBand);
|
||||
speedChart->setRubberBand(QChartView::RectangleRubberBand);
|
||||
|
||||
//=======================================================
|
||||
/*
|
||||
connect(ui->checkBox_ins_ax,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_acc_stateChanged);
|
||||
|
||||
connect(ui->checkBox_ins_ay,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_acc_stateChanged);
|
||||
connect(attChart,&Chart::select,
|
||||
this,&Senser::chartSelect);
|
||||
|
||||
connect(ui->checkBox_ins_az,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_acc_stateChanged);
|
||||
//=======================================================
|
||||
connect(ui->checkBox_ins_p,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_gyro_stateChanged);
|
||||
connect(gyroChart,&Chart::select,
|
||||
this,&Senser::chartSelect);
|
||||
|
||||
connect(ui->checkBox_ins_q,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_gyro_stateChanged);
|
||||
connect(accChart,&Chart::select,
|
||||
this,&Senser::chartSelect);
|
||||
|
||||
connect(ui->checkBox_ins_r,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_gyro_stateChanged);
|
||||
//=======================================================
|
||||
connect(ui->checkBox_ins_rol,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_att_stateChanged);
|
||||
connect(servoChart,&Chart::select,
|
||||
this,&Senser::chartSelect);
|
||||
|
||||
connect(ui->checkBox_ins_pit,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_att_stateChanged);
|
||||
connect(altChart,&Chart::select,
|
||||
this,&Senser::chartSelect);
|
||||
|
||||
|
||||
//=======================================================
|
||||
connect(ui->checkBox_sbg_ax,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_acc_stateChanged);
|
||||
|
||||
connect(ui->checkBox_sbg_ay,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_acc_stateChanged);
|
||||
|
||||
connect(ui->checkBox_sbg_az,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_acc_stateChanged);
|
||||
//=======================================================
|
||||
connect(ui->checkBox_sbg_p,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_gyro_stateChanged);
|
||||
|
||||
connect(ui->checkBox_sbg_q,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_gyro_stateChanged);
|
||||
|
||||
connect(ui->checkBox_sbg_r,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_gyro_stateChanged);
|
||||
//=======================================================
|
||||
connect(ui->checkBox_sbg_rol,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_att_stateChanged);
|
||||
|
||||
connect(ui->checkBox_sbg_pit,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_att_stateChanged);
|
||||
|
||||
|
||||
//=======================================================
|
||||
connect(ui->checkBox_use_p,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_gyro_stateChanged);
|
||||
|
||||
connect(ui->checkBox_use_q,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_gyro_stateChanged);
|
||||
|
||||
connect(ui->checkBox_use_r,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_gyro_stateChanged);
|
||||
//=======================================================
|
||||
connect(ui->checkBox_use_rol,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_att_stateChanged);
|
||||
|
||||
connect(ui->checkBox_use_pit,&QCheckBox::stateChanged,
|
||||
this,&Senser::on_checkBox_att_stateChanged);
|
||||
*/
|
||||
connect(speedChart,&Chart::select,
|
||||
this,&Senser::chartSelect);
|
||||
|
||||
|
||||
}
|
||||
@@ -162,6 +113,149 @@ Senser::~Senser()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void Senser::chartSelect(bool flag)
|
||||
{
|
||||
if(flag)
|
||||
{
|
||||
QObject *obj = sender();
|
||||
|
||||
if(obj)
|
||||
{
|
||||
Chart *chart = qobject_cast<Chart *>(obj);
|
||||
if(chart)
|
||||
{
|
||||
|
||||
if(chart == attChart)
|
||||
{
|
||||
setColor(ui->frame_Attitude,QColor("#00FF00"));
|
||||
setColor(ui->frame_Gyro,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Accelerate,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Servo,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Altitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Speed,QColor("#FFFFFF"));
|
||||
|
||||
attChart->setSelect(true);
|
||||
gyroChart->setSelect(false);
|
||||
accChart->setSelect(false);
|
||||
servoChart->setSelect(false);
|
||||
altChart->setSelect(false);
|
||||
speedChart->setSelect(false);
|
||||
|
||||
}
|
||||
else if(chart == gyroChart)
|
||||
{
|
||||
setColor(ui->frame_Attitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Gyro,QColor("#00FF00"));
|
||||
setColor(ui->frame_Accelerate,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Servo,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Altitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Speed,QColor("#FFFFFF"));
|
||||
|
||||
attChart->setSelect(false);
|
||||
gyroChart->setSelect(true);
|
||||
accChart->setSelect(false);
|
||||
servoChart->setSelect(false);
|
||||
altChart->setSelect(false);
|
||||
speedChart->setSelect(false);
|
||||
}
|
||||
else if(chart == accChart)
|
||||
{
|
||||
setColor(ui->frame_Attitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Gyro,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Accelerate,QColor("#00FF00"));
|
||||
setColor(ui->frame_Servo,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Altitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Speed,QColor("#FFFFFF"));
|
||||
|
||||
attChart->setSelect(false);
|
||||
gyroChart->setSelect(false);
|
||||
accChart->setSelect(true);
|
||||
servoChart->setSelect(false);
|
||||
altChart->setSelect(false);
|
||||
speedChart->setSelect(false);
|
||||
}
|
||||
else if(chart == servoChart)
|
||||
{
|
||||
setColor(ui->frame_Attitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Gyro,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Accelerate,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Servo,QColor("#00FF00"));
|
||||
setColor(ui->frame_Altitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Speed,QColor("#FFFFFF"));
|
||||
|
||||
attChart->setSelect(false);
|
||||
gyroChart->setSelect(false);
|
||||
accChart->setSelect(false);
|
||||
servoChart->setSelect(true);
|
||||
altChart->setSelect(false);
|
||||
speedChart->setSelect(false);
|
||||
}
|
||||
else if(chart == altChart)
|
||||
{
|
||||
setColor(ui->frame_Attitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Gyro,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Accelerate,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Servo,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Altitude,QColor("#00FF00"));
|
||||
setColor(ui->frame_Speed,QColor("#FFFFFF"));
|
||||
|
||||
attChart->setSelect(false);
|
||||
gyroChart->setSelect(false);
|
||||
accChart->setSelect(false);
|
||||
servoChart->setSelect(false);
|
||||
altChart->setSelect(true);
|
||||
speedChart->setSelect(false);
|
||||
}
|
||||
else if(chart == speedChart)
|
||||
{
|
||||
setColor(ui->frame_Attitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Gyro,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Accelerate,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Servo,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Altitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Speed,QColor("#00FF00"));
|
||||
|
||||
attChart->setSelect(false);
|
||||
gyroChart->setSelect(false);
|
||||
accChart->setSelect(false);
|
||||
servoChart->setSelect(false);
|
||||
altChart->setSelect(false);
|
||||
speedChart->setSelect(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
setColor(ui->frame_Attitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Gyro,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Accelerate,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Servo,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Altitude,QColor("#FFFFFF"));
|
||||
setColor(ui->frame_Speed,QColor("#FFFFFF"));
|
||||
|
||||
attChart->setSelect(false);
|
||||
gyroChart->setSelect(false);
|
||||
accChart->setSelect(false);
|
||||
servoChart->setSelect(false);
|
||||
altChart->setSelect(false);
|
||||
speedChart->setSelect(false);
|
||||
}
|
||||
}
|
||||
|
||||
void Senser::setColor(QWidget *w,QColor s)
|
||||
{
|
||||
QString stype = "background-color: ";
|
||||
stype.append(s.name());
|
||||
stype.append(";");
|
||||
|
||||
if(w)
|
||||
{
|
||||
w->setStyleSheet(stype);
|
||||
w->style()->unpolish(w);
|
||||
w->style()->polish(w);
|
||||
}
|
||||
}
|
||||
|
||||
void Senser::setColor(QWidget *w,state s)
|
||||
{
|
||||
|
||||
@@ -40,6 +40,7 @@ public:
|
||||
explicit Senser(QWidget *parent = nullptr);
|
||||
~Senser();
|
||||
|
||||
void setColor(QWidget *w, QColor s);
|
||||
void setColor(QWidget *w,state s);
|
||||
void setValue(QLabel *w,QString s);
|
||||
void setFloat(void);
|
||||
@@ -58,8 +59,14 @@ public:
|
||||
Chart *servoChart = nullptr;
|
||||
Chart *altChart = nullptr;
|
||||
|
||||
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
void chartSelect(bool flag);
|
||||
|
||||
|
||||
void on_checkBox_att_stateChanged(int arg1);
|
||||
void on_checkBox_gyro_stateChanged(int arg1);
|
||||
void on_checkBox_acc_stateChanged(int arg1);
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1282</width>
|
||||
<height>912</height>
|
||||
<width>1920</width>
|
||||
<height>1080</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -126,12 +126,16 @@
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QFrame" name="frame_Attitude">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(0, 255, 0);</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_7"/>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
Reference in New Issue
Block a user