Lines Matching refs:sentenceValues
113 void NmeaFixInfo::parseGGALine(const std::vector<std::string>& sentenceValues) { in parseGGALine() argument
114 if (sentenceValues.size() == 0 || sentenceValues[0].compare(GPGA_RECORD_TAG) != 0) { in parseGGALine()
118 this->latDeg = std::stof(sentenceValues[2].substr(0, 2)) + in parseGGALine()
119 (std::stof(sentenceValues[2].substr(2)) / 60.0); in parseGGALine()
120 if (sentenceValues[3].compare("N") != 0) { in parseGGALine()
125 this->lngDeg = std::stof(sentenceValues[4].substr(0, 3)) + in parseGGALine()
126 std::stof(sentenceValues[4].substr(3)) / 60.0; in parseGGALine()
127 if (sentenceValues[5].compare("E") != 0) { in parseGGALine()
131 this->altitudeMeters = std::stof(sentenceValues[9]); in parseGGALine()
133 this->hDop = sentenceValues[8].empty() ? std::numeric_limits<float>::quiet_NaN() in parseGGALine()
134 : std::stof(sentenceValues[8]); in parseGGALine()
138 void NmeaFixInfo::parseRMCLine(const std::vector<std::string>& sentenceValues) { in parseRMCLine() argument
139 if (sentenceValues.size() == 0 || sentenceValues[0].compare(GPRMC_RECORD_TAG) != 0) { in parseRMCLine()
142 this->speedMetersPerSec = checkAndConvertToFloat(sentenceValues[7]); in parseRMCLine()
143 this->bearingDegrees = checkAndConvertToFloat(sentenceValues[8]); in parseRMCLine()
144 this->timestamp = nmeaPartsToTimestamp(sentenceValues[1], sentenceValues[9]); in parseRMCLine()
209 std::vector<std::string> sentenceValues; in getLocationFromInputStr() local
210 splitStr(line, COMMA_SEPARATOR, sentenceValues); in getLocationFromInputStr()
211 if (sentenceValues.size() < MIN_COL_NUM) { in getLocationFromInputStr()
214 double currentTimeStamp = std::stof(sentenceValues[1]); in getLocationFromInputStr()
224 candidateFixInfo.parseGGALine(sentenceValues); in getLocationFromInputStr()
226 candidateFixInfo.parseRMCLine(sentenceValues); in getLocationFromInputStr()