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

Merge pull request #4261 from DonLakeFlyer/PlanFixes

Bad reference fixes
parents ee97864e 3d221ef9
......@@ -131,7 +131,7 @@ QGCView {
function addMissionItemCoordsForFit(coordList) {
for (var i=1; i<qgcView._visualItems.count; i++) {
missionItem = qgcView._visualItems.get(i)
var missionItem = qgcView._visualItems.get(i)
if (missionItem.specifiesCoordinate && !missionItem.isStandaloneCoordinate) {
coordList.push(missionItem.coordinate)
}
......@@ -148,7 +148,7 @@ QGCView {
if (geoFenceController.circleSupported) {
var azimuthList = [ 0, 180, 90, 270 ]
for (var i=0; i<azimuthList.length; i++) {
var edgeCoordinate = homePos.coordinate.atDistanceAndAzimuth(geoFenceController.circleRadius, azimuthList[i])
var edgeCoordinate = _visualItems.get(0).coordinate.atDistanceAndAzimuth(geoFenceController.circleRadius, azimuthList[i])
coordList.push(edgeCoordinate)
}
}
......
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