Home
last modified time | relevance | path

Searched refs:sentenceValues (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/gnss/common/utils/default/
DNmeaFixInfo.cpp113 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()
[all …]
/hardware/interfaces/gnss/common/utils/default/include/
DNmeaFixInfo.h63 void parseGGALine(const std::vector<std::string>& sentenceValues);
64 void parseRMCLine(const std::vector<std::string>& sentenceValues);