Witam przepraszam że w tym temacie ale wydaje mi się że to pytanie na temat.
Odczytuje sobie ramkę i chciałbym sprawdzać najpierw czy odbiornik jest za fixowany i wtedy odczytywać pozycje.
Chciałbym korzystać z ramki GGA
i po analizie innych chciałbym zapytać czym się różni FIX 2D od FIX 3D
W ramce GGA Fix może mieć wile parametrów ale wydaje mi się że układ jest z fixowany jeśli wartość nie jest zerem i podaje właściwa pozycję
Kod: Zaznacz cały
The most important NMEA sentences include the GGA which provides the current Fix data, the RMC which provides the minimum gps sentences information, and the GSA which provides the Satellite status data.
GGA - essential fix data which provide 3D location and accuracy data.
$GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47
Where:
GGA Global Positioning System Fix Data
123519 Fix taken at 12:35:19 UTC
4807.038,N Latitude 48 deg 07.038' N
01131.000,E Longitude 11 deg 31.000' E
1 Fix quality: 0 = invalid
1 = GPS fix (SPS)
2 = DGPS fix
3 = PPS fix
4 = Real Time Kinematic
5 = Float RTK
6 = estimated (dead reckoning) (2.3 feature)
7 = Manual input mode
8 = Simulation mode
08 Number of satellites being tracked
0.9 Horizontal dilution of position
545.4,M Altitude, Meters, above mean sea level
46.9,M Height of geoid (mean sea level) above WGS84
ellipsoid
(empty field) time in seconds since last DGPS update
(empty field) DGPS station ID number
*47 the checksum data, always begins with *
If the height of geoid is missing then the altitude should be suspect. Some non-standard implementations report altitude with respect to the ellipsoid rather than geoid altitude. Some units do not report negative altitudes at all. This is the only sentence that reports altitude.
Natomiast w ramce RMC
Kod: Zaznacz cały
RMC - NMEA has its own version of essential gps pvt (position, velocity, time) data. It is called RMC, The Recommended Minimum, which will look similar to:
$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A
Where:
RMC Recommended Minimum sentence C
123519 Fix taken at 12:35:19 UTC
A Status A=active or V=Void.
4807.038,N Latitude 48 deg 07.038' N
01131.000,E Longitude 11 deg 31.000' E
022.4 Speed over the ground in knots
084.4 Track angle in degrees True
230394 Date - 23rd of March 1994
003.1,W Magnetic Variation
*6A The checksum data, always begins with *
zamiast fixa jest status ale nie jestem pewien czy jest on równoważny z fixem ma dwa parametry
Trochę się pogubiłem i nie wiem który fix to ten o który mi chodzi. W pierwszym przypadku warunek był by prosty jeśli fix rożny od zera to czytaj pozycje i koniec.
Pozdrawiam