1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 12:55:12 +03:00

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

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;
}