From 62436270e3d189b47ce7626c9ad64f33e7081b39 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Fri, 15 Jun 2012 13:15:45 -0500 Subject: [PATCH] When moving waypoints on the map, keep the previous altitude --- ground/openpilotgcs/src/plugins/opmap/pathcompiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/opmap/pathcompiler.cpp b/ground/openpilotgcs/src/plugins/opmap/pathcompiler.cpp index 1bc82c5d7..eb5892281 100644 --- a/ground/openpilotgcs/src/plugins/opmap/pathcompiler.cpp +++ b/ground/openpilotgcs/src/plugins/opmap/pathcompiler.cpp @@ -188,7 +188,8 @@ void PathCompiler::doUpdateWaypoints(PathCompiler::waypoint changedWaypoint, int Waypoint::DataFields oldWaypointUAVO = waypointInst->getData(); oldWaypointUAVO.Position[0] = changedWaypointUAVO.Position[0]; oldWaypointUAVO.Position[1] = changedWaypointUAVO.Position[1]; - oldWaypointUAVO.Position[2] = changedWaypointUAVO.Position[2]; + // Don't take the altitude from the map for now + waypointInst->setData(oldWaypointUAVO); waypointInst->updated(); }