Commit 00d395b4 authored by Don Gagne's avatar Don Gagne

HomePosition now managed by MissionController

parent 199c6f93
......@@ -83,10 +83,7 @@ QGCView {
onAutoSyncChanged: QGroundControl.flightMapSettings.saveMapSetting(editorMap.mapName, _autoSyncKey, autoSync)
*/
onMissionItemsChanged: {
updateHomePosition()
itemEditor.clearItem()
}
onMissionItemsChanged: itemEditor.clearItem()
}
QGCPalette { id: qgcPal; colorGroupEnabled: enabled }
......@@ -105,19 +102,6 @@ QGCView {
}
}
function updateHomePosition() {
if (liveHomePositionAvailable) {
homePosition = liveHomePosition
_missionItems.get(0).coordinate = liveHomePosition
_missionItems.get(0).homePositionValid = true
}
}
Component.onCompleted: updateHomePosition()
//onOfflineHomePositionChanged: updateHomePosition()
onLiveHomePositionAvailableChanged: updateHomePosition()
onLiveHomePositionChanged: updateHomePosition()
QGCViewPanel {
id: panel
anchors.fill: parent
......
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