更新阶段,更新翻译

This commit is contained in:
hm
2021-10-19 10:21:05 +08:00
parent df9e4ac9a6
commit 53d084bfa6
10 changed files with 308 additions and 230 deletions
BIN
View File
Binary file not shown.
+206 -166
View File
@@ -645,79 +645,79 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="138"/>
<location filename="CommandUI/CommandUI.cpp" line="140"/>
<source>Selete Command File...</source>
<translation>...</translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="140"/>
<location filename="CommandUI/CommandUI.cpp" line="142"/>
<source>command file (*.json)</source>
<translation type="unfinished"> (*.json)</translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="347"/>
<location filename="CommandUI/CommandUI.cpp" line="404"/>
<location filename="CommandUI/CommandUI.cpp" line="349"/>
<location filename="CommandUI/CommandUI.cpp" line="406"/>
<source> %1 %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="470"/>
<location filename="CommandUI/CommandUI.cpp" line="472"/>
<source> %1 %2 %3 %4</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="527"/>
<location filename="CommandUI/CommandUI.cpp" line="529"/>
<source>set parameter
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="647"/>
<location filename="CommandUI/CommandUI.cpp" line="649"/>
<source>%1,%2 accepted and executed</source>
<translation>%1%2 </translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="650"/>
<location filename="CommandUI/CommandUI.cpp" line="652"/>
<source>%1,%2 rejected</source>
<translation>%1%2 </translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="653"/>
<location filename="CommandUI/CommandUI.cpp" line="655"/>
<source>%1,%2 permanently denied</source>
<translation>%1%2 </translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="656"/>
<location filename="CommandUI/CommandUI.cpp" line="658"/>
<source>%1,%2 unsupported</source>
<translation>%1%2 </translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="659"/>
<location filename="CommandUI/CommandUI.cpp" line="661"/>
<source>%1,%2 failed</source>
<translation>%1%2 </translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="662"/>
<location filename="CommandUI/CommandUI.cpp" line="664"/>
<source>%1,%2 being executed</source>
<translation>%1%2 </translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="665"/>
<location filename="CommandUI/CommandUI.cpp" line="667"/>
<source>%1,%2 time out</source>
<translation>%1,%2 </translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="668"/>
<location filename="CommandUI/CommandUI.cpp" line="670"/>
<source>Please do not operate too fast, the last instruction has not been sent</source>
<translation></translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="721"/>
<location filename="CommandUI/CommandUI.cpp" line="726"/>
<source> %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="824"/>
<location filename="CommandUI/CommandUI.cpp" line="829"/>
<source>click confirm to set uav %1 as current</source>
<translation type="unfinished"></translation>
</message>
@@ -746,7 +746,7 @@
<translation type="vanished">%1 </translation>
</message>
<message>
<location filename="CommandUI/CommandUI.cpp" line="736"/>
<location filename="CommandUI/CommandUI.cpp" line="741"/>
<source>click confirm to set Point %1 as current point</source>
<translation>%1</translation>
</message>
@@ -2182,19 +2182,19 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="943"/>
<location filename="mainwindow.cpp" line="949"/>
<location filename="mainwindow.cpp" line="975"/>
<location filename="mainwindow.cpp" line="976"/>
<source>Communication Lost</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="962"/>
<location filename="mainwindow.cpp" line="967"/>
<location filename="mainwindow.cpp" line="988"/>
<location filename="mainwindow.cpp" line="989"/>
<source>Communication Regain</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1697"/>
<location filename="mainwindow.cpp" line="1758"/>
<source></source>
<translation type="unfinished"></translation>
</message>
@@ -2228,417 +2228,455 @@
<translation type="vanished">[%1]</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1260"/>
<location filename="mainwindow.cpp" line="1305"/>
<source>ARM</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1264"/>
<location filename="mainwindow.cpp" line="1309"/>
<source>DISARM</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1287"/>
<location filename="mainwindow.cpp" line="1332"/>
<source>MANUAL</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1290"/>
<location filename="mainwindow.cpp" line="1335"/>
<source>ALTCTL</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1293"/>
<location filename="mainwindow.cpp" line="1338"/>
<source>POSCTL</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1296"/>
<location filename="mainwindow.cpp" line="1341"/>
<source>AUTO</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1299"/>
<location filename="mainwindow.cpp" line="1344"/>
<source>ACRO</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1302"/>
<location filename="mainwindow.cpp" line="1347"/>
<source>OFFBOARD</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1305"/>
<location filename="mainwindow.cpp" line="1350"/>
<source>STABILIZED</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1308"/>
<location filename="mainwindow.cpp" line="1353"/>
<source>RATTITUDE</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1311"/>
<location filename="mainwindow.cpp" line="1356"/>
<source>STANDBY</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1314"/>
<location filename="mainwindow.cpp" line="1359"/>
<source>BIT</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1317"/>
<location filename="mainwindow.cpp" line="1362"/>
<source>AUTO_READY</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1320"/>
<location filename="mainwindow.cpp" line="1365"/>
<source>AUTO_TAKEOFF</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1323"/>
<location filename="mainwindow.cpp" line="1368"/>
<source>AUTO_LOITER</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1326"/>
<location filename="mainwindow.cpp" line="1371"/>
<source>AUTO_MISSION</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1329"/>
<location filename="mainwindow.cpp" line="1374"/>
<source>AUTO_RTL</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1332"/>
<location filename="mainwindow.cpp" line="1377"/>
<source>AUTO_LAND</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1335"/>
<location filename="mainwindow.cpp" line="1380"/>
<source>AUTO_RTGS</source>
<translation>RTGS</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1338"/>
<location filename="mainwindow.cpp" line="1383"/>
<source>AUTO_FOLLOW_TARGET</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1547"/>
<location filename="mainwindow.cpp" line="1613"/>
<source></source>
<oldsource> </oldsource>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1567"/>
<source>GPS Unlocated</source>
<translation></translation>
<translation type="vanished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1571"/>
<location filename="mainwindow.cpp" line="1247"/>
<source>%1D</source>
<translation>%1D定位</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1574"/>
<source>fixed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1577"/>
<source>float</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1215"/>
<location filename="mainwindow.cpp" line="1580"/>
<source>%1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1518"/>
<location filename="mainwindow.cpp" line="1592"/>
<location filename="mainwindow.cpp" line="1653"/>
<location filename="mainwindow.cpp" line="1868"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1596"/>
<location filename="mainwindow.cpp" line="1657"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1600"/>
<location filename="mainwindow.cpp" line="1661"/>
<source>AHRS</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1604"/>
<location filename="mainwindow.cpp" line="1665"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1608"/>
<location filename="mainwindow.cpp" line="1669"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1615"/>
<location filename="mainwindow.cpp" line="1624"/>
<location filename="mainwindow.cpp" line="1633"/>
<location filename="mainwindow.cpp" line="1642"/>
<location filename="mainwindow.cpp" line="1676"/>
<location filename="mainwindow.cpp" line="1685"/>
<location filename="mainwindow.cpp" line="1694"/>
<location filename="mainwindow.cpp" line="1703"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1480"/>
<location filename="mainwindow.cpp" line="1483"/>
<location filename="mainwindow.cpp" line="1618"/>
<location filename="mainwindow.cpp" line="1627"/>
<location filename="mainwindow.cpp" line="1636"/>
<location filename="mainwindow.cpp" line="1645"/>
<location filename="mainwindow.cpp" line="1677"/>
<location filename="mainwindow.cpp" line="1814"/>
<location filename="mainwindow.cpp" line="1815"/>
<location filename="mainwindow.cpp" line="1816"/>
<location filename="mainwindow.cpp" line="1817"/>
<location filename="mainwindow.cpp" line="1818"/>
<location filename="mainwindow.cpp" line="1679"/>
<location filename="mainwindow.cpp" line="1688"/>
<location filename="mainwindow.cpp" line="1697"/>
<location filename="mainwindow.cpp" line="1706"/>
<location filename="mainwindow.cpp" line="1738"/>
<location filename="mainwindow.cpp" line="1838"/>
<location filename="mainwindow.cpp" line="1839"/>
<location filename="mainwindow.cpp" line="1938"/>
<location filename="mainwindow.cpp" line="1939"/>
<location filename="mainwindow.cpp" line="1940"/>
<location filename="mainwindow.cpp" line="1941"/>
<location filename="mainwindow.cpp" line="1942"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1199"/>
<location filename="mainwindow.cpp" line="1243"/>
<source>Unlocated</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1203"/>
<source>%1D[%2]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1206"/>
<source>DGPS[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1209"/>
<source>FLOAT[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1212"/>
<source>INT[%1]</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1433"/>
<location filename="mainwindow.cpp" line="1488"/>
<source>使</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1433"/>
<location filename="mainwindow.cpp" line="1488"/>
<source>使</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1442"/>
<location filename="mainwindow.cpp" line="1494"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1442"/>
<location filename="mainwindow.cpp" line="1494"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1480"/>
<location filename="mainwindow.cpp" line="1483"/>
<location filename="mainwindow.cpp" line="1814"/>
<location filename="mainwindow.cpp" line="1815"/>
<location filename="mainwindow.cpp" line="1816"/>
<location filename="mainwindow.cpp" line="1817"/>
<location filename="mainwindow.cpp" line="1818"/>
<location filename="mainwindow.cpp" line="1838"/>
<location filename="mainwindow.cpp" line="1839"/>
<location filename="mainwindow.cpp" line="1938"/>
<location filename="mainwindow.cpp" line="1939"/>
<location filename="mainwindow.cpp" line="1940"/>
<location filename="mainwindow.cpp" line="1941"/>
<location filename="mainwindow.cpp" line="1942"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1496"/>
<location filename="mainwindow.cpp" line="1771"/>
<location filename="mainwindow.cpp" line="1846"/>
<location filename="mainwindow.cpp" line="1895"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1499"/>
<location filename="mainwindow.cpp" line="1774"/>
<location filename="mainwindow.cpp" line="1849"/>
<location filename="mainwindow.cpp" line="1898"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1502"/>
<location filename="mainwindow.cpp" line="1777"/>
<location filename="mainwindow.cpp" line="1852"/>
<location filename="mainwindow.cpp" line="1901"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1505"/>
<location filename="mainwindow.cpp" line="1780"/>
<location filename="mainwindow.cpp" line="1855"/>
<location filename="mainwindow.cpp" line="1904"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1508"/>
<location filename="mainwindow.cpp" line="1533"/>
<location filename="mainwindow.cpp" line="1783"/>
<location filename="mainwindow.cpp" line="1807"/>
<location filename="mainwindow.cpp" line="1858"/>
<location filename="mainwindow.cpp" line="1883"/>
<location filename="mainwindow.cpp" line="1907"/>
<location filename="mainwindow.cpp" line="1931"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1521"/>
<location filename="mainwindow.cpp" line="1795"/>
<location filename="mainwindow.cpp" line="1871"/>
<location filename="mainwindow.cpp" line="1919"/>
<source>INS/</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1524"/>
<location filename="mainwindow.cpp" line="1798"/>
<location filename="mainwindow.cpp" line="1874"/>
<location filename="mainwindow.cpp" line="1922"/>
<source>INS/DGPS</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1527"/>
<location filename="mainwindow.cpp" line="1801"/>
<location filename="mainwindow.cpp" line="1877"/>
<location filename="mainwindow.cpp" line="1925"/>
<source>INS/GNSS</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1530"/>
<location filename="mainwindow.cpp" line="1804"/>
<location filename="mainwindow.cpp" line="1880"/>
<location filename="mainwindow.cpp" line="1928"/>
<source>GNSS</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1546"/>
<location filename="mainwindow.cpp" line="1612"/>
<source>|</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1546"/>
<location filename="mainwindow.cpp" line="1250"/>
<source>DGPS</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1253"/>
<source>FLOAT</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1256"/>
<source>INT</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1259"/>
<source>GPS %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1396"/>
<source>undef</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1399"/>
<source>onGround</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1402"/>
<source>inAir</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1405"/>
<source>TakeOff</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1408"/>
<source>Landing</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1496"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1496"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1514"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1514"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1515"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1515"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1612"/>
<source>|</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1547"/>
<location filename="mainwindow.cpp" line="1613"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1551"/>
<location filename="mainwindow.cpp" line="1617"/>
<source>|</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1551"/>
<location filename="mainwindow.cpp" line="1617"/>
<source>|</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1552"/>
<location filename="mainwindow.cpp" line="1618"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1552"/>
<location filename="mainwindow.cpp" line="1618"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1655"/>
<location filename="mainwindow.cpp" line="1716"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1659"/>
<location filename="mainwindow.cpp" line="1720"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1663"/>
<location filename="mainwindow.cpp" line="1724"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1667"/>
<location filename="mainwindow.cpp" line="1728"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1681"/>
<location filename="mainwindow.cpp" line="1699"/>
<location filename="mainwindow.cpp" line="1742"/>
<location filename="mainwindow.cpp" line="1760"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1685"/>
<location filename="mainwindow.cpp" line="1746"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1689"/>
<location filename="mainwindow.cpp" line="1750"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1702"/>
<location filename="mainwindow.cpp" line="1763"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1705"/>
<location filename="mainwindow.cpp" line="1766"/>
<source></source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1708"/>
<location filename="mainwindow.cpp" line="1769"/>
<source>SBAS广域差分</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1711"/>
<location filename="mainwindow.cpp" line="1772"/>
<source>广</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1714"/>
<location filename="mainwindow.cpp" line="1775"/>
<source>RTK_FLOAT</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1717"/>
<location filename="mainwindow.cpp" line="1778"/>
<source>RTK_INT</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1720"/>
<location filename="mainwindow.cpp" line="1781"/>
<source>PPP_FLOAT</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1723"/>
<location filename="mainwindow.cpp" line="1784"/>
<source>PPP_INT</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1726"/>
<location filename="mainwindow.cpp" line="1787"/>
<source>FIXED</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1792"/>
<location filename="mainwindow.cpp" line="1916"/>
<source>N/A</source>
<translation type="unfinished"></translation>
</message>
@@ -2647,7 +2685,7 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1362"/>
<location filename="mainwindow.cpp" line="1423"/>
<source>flight mode</source>
<translation></translation>
</message>
@@ -3573,7 +3611,8 @@
</message>
<message>
<location filename="ToolsUI/Senser/Senser.ui" line="793"/>
<source></source>
<source></source>
<oldsource></oldsource>
<translation type="unfinished"></translation>
</message>
<message>
@@ -3583,7 +3622,8 @@
</message>
<message>
<location filename="ToolsUI/Senser/Senser.ui" line="687"/>
<source>SBG</source>
<source></source>
<oldsource>SBG</oldsource>
<translation type="unfinished"></translation>
</message>
<message>
@@ -4470,12 +4510,12 @@ p, li { white-space: pre-wrap; }
<translation></translation>
</message>
<message>
<location filename="ToolsUI/tools_Index4/tools_Index4.cpp" line="117"/>
<location filename="ToolsUI/tools_Index4/tools_Index4.cpp" line="120"/>
<source>Servos Port %1</source>
<translation>%1</translation>
</message>
<message>
<location filename="ToolsUI/tools_Index4/tools_Index4.cpp" line="125"/>
<location filename="ToolsUI/tools_Index4/tools_Index4.cpp" line="128"/>
<source>ch%1</source>
<translation>%1</translation>
</message>
+51 -12
View File
@@ -22,7 +22,7 @@ StateWidget::StateWidget(int flag,int index,QWidget *parent) : QWidget(parent)
gridlayout->addWidget(title,0,0,1,1);
if(flag == 0)
if(flag != 1)
{
label = new QLabel("0");
@@ -37,7 +37,7 @@ StateWidget::StateWidget(int flag,int index,QWidget *parent) : QWidget(parent)
setColor(state::gray);
gridlayout->addWidget(label,0,1,1,1);
}
else
else if(flag == 1)
{
bar = new QProgressBar();
@@ -54,6 +54,9 @@ StateWidget::StateWidget(int flag,int index,QWidget *parent) : QWidget(parent)
gridlayout->addWidget(bar,0,1,1,1);
}
type = flag;
this->setLayout(gridlayout);
this->resize(w,h+ 2 * m_offset);
}
@@ -82,7 +85,7 @@ StateWidget::StateWidget(int flag, QString t,QVariant v,state s,int index, QWidg
gridlayout->addWidget(title,0,0,1,1);
if(flag == 0)
if(flag != 1)
{
label = new QLabel(v.toString());
@@ -97,7 +100,7 @@ StateWidget::StateWidget(int flag, QString t,QVariant v,state s,int index, QWidg
setColor(s);
gridlayout->addWidget(label,0,1,1,1);
}
else
else if(flag == 1)
{
bar = new QProgressBar();
@@ -115,6 +118,8 @@ StateWidget::StateWidget(int flag, QString t,QVariant v,state s,int index, QWidg
gridlayout->addWidget(bar,0,1,1,1);
}
type = flag;
this->setLayout(gridlayout);
this->resize(w,h + 2 * m_offset);
}
@@ -316,21 +321,43 @@ void StateWidget::setValue(QString s)
{
if(s.contains('|'))
{
QStringList list = s.split('|');
//qDebug() << list;
qreal last = 0;
bool isDiff = false;
foreach (QString ss, list) {
bool nflag = false;
qreal nn = ss.toDouble(&nflag);
QStringList list = s.split('|');
bool isNum = false;
qreal last = 0;
bool isDiff = false;
foreach (QString ss, list) {
bool nflag = false;
qreal nn = ss.toDouble(&nflag);
isNum = nflag;
if(nflag)
{
isDiff = (qAbs(nn - last) > 1.0)?(true):(false);
if(!stateMap.isEmpty())
{
bool flag_key = false;
qreal limit = stateMap.begin().key().toDouble(&flag_key);
if(flag_key)
{
isDiff = (qAbs(nn - last) > limit)?(true):(false);
}
else
{
isDiff = (qAbs(nn - last) > 1.0)?(true):(false);
}
}
else
{
isDiff = (qAbs(nn - last) > 1.0)?(true):(false);
}
}
last = nn;
}
if(isNum)
{
if(isDiff)
{
setColor(state::red);
@@ -339,6 +366,18 @@ void StateWidget::setValue(QString s)
{
setColor(state::green);
}
}
else
{
if(stateMap.keys().contains(s))
{
setColor(stateMap.value(s));
}
else
{
setColor(state::gray);
}
}
}
else
{
+2
View File
@@ -118,6 +118,8 @@ private:
QMap<QVariant,state> stateMap;
bool type = 0;
};
+18 -12
View File
@@ -34,20 +34,20 @@ StatusUI::StatusUI(QWidget *parent) :
install(base,0,"侧滑角[°]",0,QMap<QVariant, StateWidget::state>{{-20,StateWidget::state::red},{20,StateWidget::state::green}});
install(base,0,"滚转角[°]",0,QMap<QVariant, StateWidget::state>{{-45,StateWidget::state::red},{45,StateWidget::state::green}});
install(base,0,"俯仰角[°]",0,QMap<QVariant, StateWidget::state>{{-20,StateWidget::state::red},{20,StateWidget::state::green}});
install(base,0,"航迹角[°]",0);
install(base,0,"海拔[m]",0);
install(base,0,"航迹角[°]",0,QMap<QVariant, StateWidget::state>{{-1.0,StateWidget::state::red},{361,StateWidget::state::green}});
install(base,0,"海拔[m]",0,QMap<QVariant, StateWidget::state>{{1500,StateWidget::state::red},{999000,StateWidget::state::green}});
install(base,0,"表速[m/s]",0,QMap<QVariant, StateWidget::state>{{100,StateWidget::state::red},{700,StateWidget::state::green}});
install(base,0,"真空速[m/s]",0,QMap<QVariant, StateWidget::state>{{100,StateWidget::state::red},{700,StateWidget::state::green}});
install(base,0,"地速[m/s]",0,QMap<QVariant, StateWidget::state>{{100,StateWidget::state::red},{700,StateWidget::state::green}});
install(base,0,"马赫数[Ma]",0,QMap<QVariant, StateWidget::state>{{0.3,StateWidget::state::red},{0.8,StateWidget::state::green},{2,StateWidget::state::orange}});
install(base,0,"爬升率[m/s]",0,QMap<QVariant, StateWidget::state>{{-80,StateWidget::state::red},{100,StateWidget::state::green},{500,StateWidget::state::orange}});
install(actuator,0,"左翼尖[°]",0);
install(actuator,0,"右翼尖[°]",0);
install(actuator,0,"左副翼[°]",0);
install(actuator,0,"右副翼[°]",0);
install(actuator,0,"左襟翼[°]",0);
install(actuator,0,"右襟翼[°]",0);
install(actuator,0,"左翼尖[°]",0,QMap<QVariant, StateWidget::state>{{2,StateWidget::state::red}});
install(actuator,0,"右翼尖[°]",0,QMap<QVariant, StateWidget::state>{{2,StateWidget::state::red}});
install(actuator,0,"左副翼[°]",0,QMap<QVariant, StateWidget::state>{{2,StateWidget::state::red}});
install(actuator,0,"右副翼[°]",0,QMap<QVariant, StateWidget::state>{{2,StateWidget::state::red}});
install(actuator,0,"左襟翼[°]",0,QMap<QVariant, StateWidget::state>{{2,StateWidget::state::red}});
install(actuator,0,"右襟翼[°]",0,QMap<QVariant, StateWidget::state>{{2,StateWidget::state::red}});
install(e_fly,0,"位置状态",0,QMap<QVariant, StateWidget::state>{{"无效",StateWidget::state::red},{"有效",StateWidget::state::green}});
//install(e_fly,0,"高度状态",0);
@@ -79,13 +79,13 @@ StatusUI::StatusUI(QWidget *parent) :
//install(e_fly,0,"IMU状态",0);
//install(e_fly,0,"DGPS状态",0);
install(state,0,"投放状态",0,
install(state,2,"投放状态",0,
QMap<QVariant, StateWidget::state>{{"锁定|锁定",StateWidget::state::green},
{"锁定|投放",StateWidget::state::orange},
{"投放|锁定",StateWidget::state::orange},
{"投放|投放",StateWidget::state::red}});
//install(state,0,"脱离状态2",0);
install(state,0,"火箭状态",0,
install(state,2,"火箭状态",0,
QMap<QVariant, StateWidget::state>{{"保险|工作",StateWidget::state::orange},
{"保险|上锁",StateWidget::state::green},
{"解除|工作",StateWidget::state::red},
@@ -108,8 +108,14 @@ StatusUI::StatusUI(QWidget *parent) :
QMap<QVariant, StateWidget::state>{{50,StateWidget::state::red},
{80,StateWidget::state::orange},
{100,StateWidget::state::green}});
install(communication,0,"接收[B/s]",0);
install(communication,0,"发送[B/s]",0);
install(communication,0,"接收[B/s]",0,
QMap<QVariant, StateWidget::state>{{500,StateWidget::state::red},
{800,StateWidget::state::orange},
{3000,StateWidget::state::green}});
install(communication,0,"发送[B/s]",0,
QMap<QVariant, StateWidget::state>{{5,StateWidget::state::red},
{100,StateWidget::state::orange},
{3000,StateWidget::state::green}});
+18 -25
View File
@@ -835,7 +835,6 @@ void MainWindow::keyPressEvent(QKeyEvent *event) //键盘按下事件
break;
}
//updateUI();
QWidget::keyPressEvent(event);
}
@@ -1132,7 +1131,7 @@ void MainWindow::updateUI()//事件驱动式更新数据
{
int currentUAV = map->getUAVCurrent();
/*
if(currentUAV < 1)//滤掉错值
{
return;
@@ -1142,7 +1141,7 @@ void MainWindow::updateUI()//事件驱动式更新数据
{
return;
}
*/
//qDebug()<<"updeta";
@@ -1201,6 +1200,7 @@ void MainWindow::updateUI()//事件驱动式更新数据
//c t g m
switch (copk->AirSpeedFlag()) {
default:
case 0:
copk->setSpeed(dlink->mavlinknode->vehicleList.value(currentUAV).vfr_hud.airspeed,copk->AirSpeedFlag());//表速
break;
@@ -1217,7 +1217,7 @@ void MainWindow::updateUI()//事件驱动式更新数据
}
copk->setAOA(dlink->mavlinknode->vehicleList.value(currentUAV).emb_atom_com.alpha);
//copk->setOL(dlink->mavlinknode->vehicleList.value(currentUAV).ins1.az/(-9.8));
copk->setOL(dlink->mavlinknode->vehicleList.value(currentUAV).ins1.az/(-9.8));
copk->setVerticalSpeed(-dlink->mavlinknode->vehicleList.value(currentUAV).global_position_int.vz * 10e-3);//速度朝下为正
@@ -1492,7 +1492,7 @@ void MainWindow::updateUI()//事件驱动式更新数据
healthui->setColor(8,getBit(enabled,1)?(getBit(enabled,0)?(HealthUI::state::success):(HealthUI::state::warning)):(HealthUI::state::failure));//record
healthui->setColor(9,getBit(enabled,2)?(HealthUI::state::success):(HealthUI::state::inital));//正在记录,未记录
healthui->setValue(9,getBit(enabled,2)?(tr("正在写入")):(tr("停止写入")));//sel
healthui->setColor(10,getBit(health,13)?(HealthUI::state::success):(HealthUI::state::warning));//内置大气:外置大气
healthui->setColor(10,getBit(health,13)?(HealthUI::state::warning):(HealthUI::state::success));//内置大气:外置大气
healthui->setValue(10,getBit(health,13)?(tr("内置大气")):(tr("外置大气")));//sel
healthui->setColor(11,getBit(health,15)?(HealthUI::state::failure):(HealthUI::state::inital));//气囊盖
@@ -1511,7 +1511,7 @@ void MainWindow::updateUI()//事件驱动式更新数据
statusui->setValue(4,2,getBit(health,19)?(tr("已采集")):(tr("未采集")));
statusui->setValue(4,2,getBit(health,19)?(tr("已采集")):(tr("未采集")));//加速度采集
statusui->setValue(4,3,getBit(health,14)?(tr("点火成功")):(tr("未点火")));
//===================status ui =============================================
@@ -1623,9 +1623,6 @@ void MainWindow::updateUI()//事件驱动式更新数据
statusui->setValue(5,0,QString::number(dlink->mavlinknode->vehicleList.value(currentUAV).sys_status.voltage_battery * 0.001,'f',1));
statusui->setValue(5,1,QString::number(dlink->mavlinknode->vehicleList.value(currentUAV).battery_status.voltages[2] * 0.001,'f',1));
//========================6 dlink
}
toolsui->senser->setDAS(1,3,QString::number(dlink->mavlinknode->vehicleList.value(currentUAV).vfr_hud.alt,'f',1));
@@ -1814,16 +1811,14 @@ void MainWindow::ins1_Update(mavlink_ins1_t ins)
toolsui->senser->setINS(1,14,QString::number(ins.roll * 57.3,'f',1));
toolsui->senser->setINS(1,15,QString::number(ins.pitch * 57.3,'f',1));
toolsui->senser->setINS(1,16,QString::number(to360deg(ins.yaw * 57.3),'f',1));
/*
toolsui->senser->setINS(1,17,QString::number(to360deg(atan2(ins.v_east,
ins.v_north) * 57.3),'f',1));
*/
if((ins.v_east != 0)||
(ins.v_north != 0))
qreal east = ins.v_east;
qreal north = ins.v_north;
if((east != 0)||
(north != 0))
{
toolsui->senser->setINS(1,17,QString::number(to360deg(atan2(ins.v_east,
ins.v_north) * 57.3),'f',1));
toolsui->senser->setINS(1,17,QString::number(to360deg(atan2(east,
north) * 57.3),'f',1));
}
toolsui->senser->setINS(1,18,QString::number(ins.gx,'f',1));
@@ -1957,16 +1952,14 @@ void MainWindow::ins2_Update(mavlink_ins2_t ins)
toolsui->senser->setINS(2,14,QString::number(ins.roll * 57.3,'f',1));
toolsui->senser->setINS(2,15,QString::number(ins.pitch * 57.3,'f',1));
toolsui->senser->setINS(2,16,QString::number(to360deg(ins.yaw * 57.3),'f',1));
/*
toolsui->senser->setINS(2,17,QString::number(to360deg(atan2(ins.v_east,
ins.v_north) * 57.3),'f',1));
*/
if((ins.v_east != 0)||
(ins.v_north != 0))
qreal east = ins.v_east;
qreal north = ins.v_north;
if((east != 0)||
(north != 0))
{
toolsui->senser->setINS(2,17,QString::number(to360deg(atan2(ins.v_east,
ins.v_north) * 57.3),'f',1));
toolsui->senser->setINS(2,17,QString::number(to360deg(atan2(east,
north) * 57.3),'f',1));
}
+1 -1
View File
@@ -447,7 +447,7 @@ void Cockpit::setSpeed(double speed,uint8_t flag)
m_State.AirspeedFlag = flag;
m_State.speed = (qIsNaN(speed))?(0):(speed);;
m_State.speed = (qIsNaN(speed))?(0):(speed);
m_State.isUpdate = true;
}
+5 -5
View File
@@ -1035,11 +1035,11 @@ void MavLinkNode::StatusParse(mavlink_message_t msg)
mavlink_msg_vfr_hud_decode(&msg,&vehicle.vfr_hud);
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.airspeed)); vfr_hud_csv.append(',');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.groundspeed)); vfr_hud_csv.append(',');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.alt)); vfr_hud_csv.append(',');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.climb)); vfr_hud_csv.append(',');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.heading)); vfr_hud_csv.append(',');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.throttle)); vfr_hud_csv.append('\n');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.groundspeed)); vfr_hud_csv.append(',');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.alt)); vfr_hud_csv.append(',');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.climb)); vfr_hud_csv.append(',');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.heading)); vfr_hud_csv.append(',');
vfr_hud_csv.append(QString::number(vehicle.vfr_hud.throttle)); vfr_hud_csv.append('\n');
}break;
case MAVLINK_MSG_ID_EMB_ATMO_COM: {
-2
View File
@@ -83,8 +83,6 @@ void DLink::bitTimerout(void)
if(time >= 2000)
{
//qDebug() << "bitTimerout";
out_bits = (double)outCount / (time * 0.001);
in_bits = (double)inCount / (time * 0.001);
+7 -7
View File
@@ -78,37 +78,37 @@ Please first select the area of the map to rip with &lt;CTRL&gt;+Left mouse clic
<context>
<name>mapcontrol::OPMapWidget</name>
<message>
<location filename="mapwidget/opmapwidget.cpp" line="513"/>
<location filename="mapwidget/opmapwidget.cpp" line="515"/>
<source>Selete File...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mapwidget/opmapwidget.cpp" line="515"/>
<location filename="mapwidget/opmapwidget.cpp" line="517"/>
<source>command file (*.csv)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mapwidget/opmapwidget.cpp" line="1661"/>
<location filename="mapwidget/opmapwidget.cpp" line="1663"/>
<source>please create a plan</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mapwidget/opmapwidget.cpp" line="1666"/>
<location filename="mapwidget/opmapwidget.cpp" line="1668"/>
<source>start to send mossion %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mapwidget/opmapwidget.cpp" line="1695"/>
<location filename="mapwidget/opmapwidget.cpp" line="1697"/>
<source>send way point %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mapwidget/opmapwidget.cpp" line="1702"/>
<location filename="mapwidget/opmapwidget.cpp" line="1704"/>
<source>fail to send %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mapwidget/opmapwidget.cpp" line="1786"/>
<location filename="mapwidget/opmapwidget.cpp" line="1788"/>
<source>recieve way point %1</source>
<translation type="unfinished"></translation>
</message>