Lines Matching refs:parts
66 QList<QByteArray> parts = sentence.split(','); in qlocationutils_readGga() local
69 if (hasFix && parts.count() > 6 && parts[6].count() > 0) in qlocationutils_readGga()
70 *hasFix = parts[6].toInt() > 0; in qlocationutils_readGga()
72 if (parts.count() > 1 && parts[1].count() > 0) { in qlocationutils_readGga()
74 if (QLocationUtils::getNmeaTime(parts[1], &time)) in qlocationutils_readGga()
78 if (parts.count() > 5 && parts[3].count() == 1 && parts[5].count() == 1) { in qlocationutils_readGga()
81 … if (QLocationUtils::getNmeaLatLong(parts[2], parts[3][0], parts[4], parts[5][0], &lat, &lng)) { in qlocationutils_readGga()
87 if (parts.count() > 8 && !parts[8].isEmpty()) { in qlocationutils_readGga()
89 double hdop = parts[8].toDouble(&hasHdop); in qlocationutils_readGga()
94 if (parts.count() > 9 && parts[9].count() > 0) { in qlocationutils_readGga()
96 double alt = parts[9].toDouble(&hasAlt); in qlocationutils_readGga()
108 QList<QByteArray> parts = QByteArray::fromRawData(data, size).split(','); in qlocationutils_readGsa() local
110 if (hasFix && parts.count() > 2 && !parts[2].isEmpty()) in qlocationutils_readGsa()
111 *hasFix = parts[2].toInt() > 0; in qlocationutils_readGsa()
113 if (parts.count() > 16 && !parts[16].isEmpty()) { in qlocationutils_readGsa()
115 double hdop = parts[16].toDouble(&hasHdop); in qlocationutils_readGsa()
120 if (parts.count() > 17 && !parts[17].isEmpty()) { in qlocationutils_readGsa()
122 double vdop = parts[17].toDouble(&hasVdop); in qlocationutils_readGsa()
132 QList<QByteArray> parts = QByteArray::fromRawData(data, size).split(','); in qlocationutils_readGsa() local
134 if (parts.count() <= 2) in qlocationutils_readGsa()
137 for (int i = 3; i <= qMin(14, parts.size()); ++i) { in qlocationutils_readGsa()
138 const QByteArray &pnrString = parts.at(i); in qlocationutils_readGsa()
150 QList<QByteArray> parts = sentence.split(','); in qlocationutils_readGll() local
153 if (hasFix && parts.count() > 6 && parts[6].count() > 0) in qlocationutils_readGll()
154 *hasFix = (parts[6][0] == 'A'); in qlocationutils_readGll()
156 if (parts.count() > 5 && parts[5].count() > 0) { in qlocationutils_readGll()
158 if (QLocationUtils::getNmeaTime(parts[5], &time)) in qlocationutils_readGll()
162 if (parts.count() > 4 && parts[2].count() == 1 && parts[4].count() == 1) { in qlocationutils_readGll()
165 … if (QLocationUtils::getNmeaLatLong(parts[1], parts[2][0], parts[3], parts[4][0], &lat, &lng)) { in qlocationutils_readGll()
178 QList<QByteArray> parts = sentence.split(','); in qlocationutils_readRmc() local
183 if (hasFix && parts.count() > 2 && parts[2].count() > 0) in qlocationutils_readRmc()
184 *hasFix = (parts[2][0] == 'A'); in qlocationutils_readRmc()
186 if (parts.count() > 9 && parts[9].count() == 6) { in qlocationutils_readRmc()
187 date = QDate::fromString(QString::fromLatin1(parts[9]), QStringLiteral("ddMMyy")); in qlocationutils_readRmc()
194 if (parts.count() > 1 && parts[1].count() > 0) in qlocationutils_readRmc()
195 QLocationUtils::getNmeaTime(parts[1], &time); in qlocationutils_readRmc()
197 if (parts.count() > 6 && parts[4].count() == 1 && parts[6].count() == 1) { in qlocationutils_readRmc()
200 … if (QLocationUtils::getNmeaLatLong(parts[3], parts[4][0], parts[5], parts[6][0], &lat, &lng)) { in qlocationutils_readRmc()
208 if (parts.count() > 7 && parts[7].count() > 0) { in qlocationutils_readRmc()
209 value = parts[7].toDouble(&parsed); in qlocationutils_readRmc()
213 if (parts.count() > 8 && parts[8].count() > 0) { in qlocationutils_readRmc()
214 value = parts[8].toDouble(&parsed); in qlocationutils_readRmc()
218 if (parts.count() > 11 && parts[11].count() == 1 in qlocationutils_readRmc()
219 && (parts[11][0] == 'E' || parts[11][0] == 'W')) { in qlocationutils_readRmc()
220 value = parts[10].toDouble(&parsed); in qlocationutils_readRmc()
222 if (parts[11][0] == 'W') in qlocationutils_readRmc()
240 QList<QByteArray> parts = sentence.split(','); in qlocationutils_readVtg() local
244 if (parts.count() > 1 && parts[1].count() > 0) { in qlocationutils_readVtg()
245 value = parts[1].toDouble(&parsed); in qlocationutils_readVtg()
249 if (parts.count() > 7 && parts[7].count() > 0) { in qlocationutils_readVtg()
250 value = parts[7].toDouble(&parsed); in qlocationutils_readVtg()
262 QList<QByteArray> parts = sentence.split(','); in qlocationutils_readZda() local
266 if (parts.count() > 1 && parts[1].count() > 0) in qlocationutils_readZda()
267 QLocationUtils::getNmeaTime(parts[1], &time); in qlocationutils_readZda()
269 if (parts.count() > 4 && parts[2].count() > 0 && parts[3].count() > 0 in qlocationutils_readZda()
270 && parts[4].count() == 4) { // must be full 4-digit year in qlocationutils_readZda()
271 int day = parts[2].toUInt(); in qlocationutils_readZda()
272 int month = parts[3].toUInt(); in qlocationutils_readZda()
273 int year = parts[4].toUInt(); in qlocationutils_readZda()
364 QList<QByteArray> parts = QByteArray::fromRawData(data, size).split(','); in getSatInfoFromNmea() local
366 if (parts.count() <= 3) { in getSatInfoFromNmea()
371 const int totalSentences = parts.at(1).toInt(&ok); in getSatInfoFromNmea()
377 const int sentence = parts.at(2).toInt(&ok); in getSatInfoFromNmea()
383 const int totalSats = parts.at(3).toInt(&ok); in getSatInfoFromNmea()
397 const int prn = parts.at(field++).toInt(&ok); in getSatInfoFromNmea()
399 const int elevation = parts.at(field++).toInt(&ok); in getSatInfoFromNmea()
401 const int azimuth = parts.at(field++).toInt(&ok); in getSatInfoFromNmea()
403 const int snr = parts.at(field++).toInt(&ok); in getSatInfoFromNmea()