Export to Google Earth now working (only) with the new telemetry fields (GPS, GAlt and GSpd)

This commit is contained in:
Damjan Adamic
2015-08-01 10:53:06 +02:00
parent 922220c748
commit 70d67dd7dd
3 changed files with 36 additions and 23 deletions
+15
View File
@@ -1112,3 +1112,18 @@ double toDecimalCoordinate(const QString & value)
}
return result;
}
QStringList extractLatLon(const QString & position)
{
QStringList result;
QStringList parts = position.split(' ');
if (parts.size() != 2) {
result.append("");
result.append("");
}
else {
result.append(parts.at(1).trimmed());
result.append(parts.at(0).trimmed());
}
return result;
}