1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-02 19:29:15 +01:00

OP-52 Ground/GPS Gadget: DOP values on NMEA sentences too. Tested on both telemetry & NMEA/Serial

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1538 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2010-09-05 08:20:32 +00:00 committed by edouard
parent 6868a3ec48
commit 7ef12a801e
2 changed files with 7 additions and 6 deletions

View File

@ -214,7 +214,7 @@
<rect> <rect>
<x>60</x> <x>60</x>
<y>10</y> <y>10</y>
<width>81</width> <width>91</width>
<height>16</height> <height>16</height>
</rect> </rect>
</property> </property>
@ -449,7 +449,7 @@
<widget class="Line" name="line_6"> <widget class="Line" name="line_6">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>250</x> <x>270</x>
<y>10</y> <y>10</y>
<width>20</width> <width>20</width>
<height>21</height> <height>21</height>
@ -462,7 +462,7 @@
<widget class="Line" name="line_7"> <widget class="Line" name="line_7">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>140</x> <x>150</x>
<y>10</y> <y>10</y>
<width>20</width> <width>20</width>
<height>21</height> <height>21</height>
@ -475,9 +475,9 @@
<widget class="QLabel" name="coord_value_2"> <widget class="QLabel" name="coord_value_2">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>160</x> <x>170</x>
<y>10</y> <y>10</y>
<width>81</width> <width>101</width>
<height>16</height> <height>16</height>
</rect> </rect>
</property> </property>
@ -494,7 +494,7 @@
<widget class="QLabel" name="coord_value_3"> <widget class="QLabel" name="coord_value_3">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>280</x> <x>290</x>
<y>10</y> <y>10</y>
<width>81</width> <width>81</width>
<height>16</height> <height>16</height>

View File

@ -452,6 +452,7 @@ void NMEAParser::nmeaProcessGPGSA(char* packet)
GpsData.PDOP = tokenslist.at(15).toDouble(); GpsData.PDOP = tokenslist.at(15).toDouble();
GpsData.HDOP = tokenslist.at(16).toDouble(); GpsData.HDOP = tokenslist.at(16).toDouble();
GpsData.VDOP = tokenslist.at(17).toDouble(); GpsData.VDOP = tokenslist.at(17).toDouble();
emit dop(GpsData.HDOP, GpsData.VDOP, GpsData.PDOP);
} }