修正320惯导加速度显示错误问题
This commit is contained in:
+48
-48
@@ -1983,22 +1983,6 @@
|
||||
<string notr="true">QLabel
|
||||
{
|
||||
background-color: green;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QLabel" name="labAz">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel
|
||||
{
|
||||
background-color: green;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
@@ -2164,22 +2148,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QLabel" name="labAy">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel
|
||||
{
|
||||
background-color: green;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="3">
|
||||
<widget class="QLabel" name="labSatelliteLongitude">
|
||||
<property name="minimumSize">
|
||||
@@ -2305,22 +2273,6 @@
|
||||
<string notr="true">QLabel
|
||||
{
|
||||
background-color: green;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<widget class="QLabel" name="labAx">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel
|
||||
{
|
||||
background-color: green;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
@@ -2482,6 +2434,54 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QLabel" name="labAx">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel
|
||||
{
|
||||
background-color: green;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<widget class="QLabel" name="labAz">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel
|
||||
{
|
||||
background-color: green;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QLabel" name="labAy">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel
|
||||
{
|
||||
background-color: green;
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
@@ -58,7 +58,7 @@ void Parse::run()
|
||||
|
||||
src.B[0] = data[data_count++];
|
||||
src.B[1] = data[data_count++];
|
||||
ins.yaw_rate = src.i[0] * 400.0/32767;//偏航角速度
|
||||
ins.yaw_rate = src.i[0] * -400.0/32767;//偏航角速度
|
||||
|
||||
src.B[0] = data[data_count++];
|
||||
src.B[1] = data[data_count++];
|
||||
@@ -82,11 +82,11 @@ void Parse::run()
|
||||
|
||||
src.B[0] = data[data_count++];
|
||||
src.B[1] = data[data_count++];
|
||||
ins.ay = src.i[0] * 100.0/32767;//机体法向加速度
|
||||
ins.az = src.i[0] * -100.0/32767;//机体法向加速度
|
||||
|
||||
src.B[0] = data[data_count++];
|
||||
src.B[1] = data[data_count++];
|
||||
ins.az = src.i[0] * 100.0/32767;//机体侧向加速度
|
||||
ins.ay = src.i[0] * 100.0/32767;//机体侧向加速度
|
||||
/*
|
||||
qDebug() << ins.roll_rate
|
||||
<< ins.yaw_rate
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "ToolsUI.h"
|
||||
#include "ToolsUI.h"
|
||||
#include "ui_ToolsUI.h"
|
||||
#include <QTextStream>
|
||||
|
||||
@@ -348,10 +348,12 @@ void ToolsUI::recieveDataSlot(const int &id, const QByteArray &data)
|
||||
|
||||
}
|
||||
|
||||
parse->parseData(id, data);
|
||||
|
||||
QThreadPool::globalInstance()->start(parse);
|
||||
|
||||
//emit parseData(id,data);
|
||||
parse->parseData(id, data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user