Fix temporary fix for generic NMEA GPS - Satellites = SatellitesTracked = SatellitesSeen.

pull/365/merge
Christopher Young 2016-04-03 13:42:38 -04:00
rodzic a37855225c
commit 0b1ca4b2da
1 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -959,13 +959,8 @@ func processNMEALine(l string) (sentenceUsed bool) {
tmpSituation.Satellites = uint16(sat)
// Satellites tracked / seen should be parsed from GSV message (TO-DO) ... since we don't have it, just use satellites from solution
if tmpSituation.SatellitesTracked == 0 {
tmpSituation.SatellitesTracked = uint16(sat)
}
if tmpSituation.SatellitesSeen == 0 {
tmpSituation.SatellitesSeen = uint16(sat)
}
tmpSituation.SatellitesTracked = uint16(sat)
tmpSituation.SatellitesSeen = uint16(sat)
// field 16: HDOP
// Accuracy estimate