Commit c1465d2c authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #5683 from yl5006/patch-1

Update MissionController.cc
parents 043d72c2 fbfb4e69
...@@ -283,11 +283,11 @@ void MissionController::convertToKMLDocument(QDomDocument& document) ...@@ -283,11 +283,11 @@ void MissionController::convertToKMLDocument(QDomDocument& document)
qgcApp()->toolbox()->missionCommandTree()->getUIInfo(_controllerVehicle, item->command()); qgcApp()->toolbox()->missionCommandTree()->getUIInfo(_controllerVehicle, item->command());
if (uiInfo && uiInfo->specifiesCoordinate() && !uiInfo->isStandaloneCoordinate()) { if (uiInfo && uiInfo->specifiesCoordinate() && !uiInfo->isStandaloneCoordinate()) {
coord = QString::number(item->param6()) \ coord = QString::number(item->param6(),'f',7) \
+ "," \ + "," \
+ QString::number(item->param5()) \ + QString::number(item->param5(),'f',7) \
+ "," \ + "," \
+ QString::number(item->param7() + altitude); + QString::number(item->param7() + altitude,'f',2);
coords.append(coord); coords.append(coord);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment