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:
parent
922220c748
commit
70d67dd7dd
3 changed files with 36 additions and 23 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue