Skip to content

mission planning editing views toggle for geofense, mission items#14544

Open
n-sleeman wants to merge 1 commit into
mavlink:masterfrom
n-sleeman:geofence-bug
Open

mission planning editing views toggle for geofense, mission items#14544
n-sleeman wants to merge 1 commit into
mavlink:masterfrom
n-sleeman:geofence-bug

Conversation

@n-sleeman

Copy link
Copy Markdown

Description

bug: Geofence only editable when you don't expand mission items first, this fix allows toggling edit layers of mission items, geofences and rallypoints.

Type of Change

  • [ x] Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • CI/Build changes
  • Other

Testing

  • [x ] Tested locally
  • Added/updated unit tests
  • Tested with simulator (SITL)
  • Tested with hardware

Platforms Tested

  • [ x] Linux
  • Windows
  • macOS
  • Android
  • iOS

Flight Stacks Tested

  • [x ] PX4
  • ArduPilot

Screenshots

Checklist

  • [ x] I have read the Contribution Guidelines
  • [ x] I have read the Code of Conduct
  • [x ] My code follows the project's coding standards
  • I have added tests that prove my fix/feature works
  • New and existing unit tests pass locally

Related Issues


By submitting this pull request, I confirm that my contribution is made under the terms of the project's dual license (Apache 2.0 and GPL v3).

Copilot AI review requested due to automatic review settings June 16, 2026 20:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates Plan View editors to request activation of the appropriate editing layer on user interaction, and adjusts control-status handling in Vehicle.

Changes:

  • Add requestEditingLayer signals to GeoFence and Rally editors and wire them in PlanTreeView to switch the active editing layer.
  • Ensure Mission selection also requests the Mission editing layer for interactive map tools.
  • Update vehicle control-status handling to use sysid_in_control instead of gcs_main.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/Vehicle/Vehicle.cc Switches control-status comparison/assignment to sysid_in_control.
src/PlanView/RallyPointItemEditor.qml Adds requestEditingLayer signal and emits it on selection.
src/PlanView/PlanTreeView.qml Connects editor signals/clicks to request the corresponding active editing layer.
src/PlanView/GeoFenceEditor.qml Adds requestEditingLayer signal and emits it on user actions; fixes a visibility condition for circle UI.

Comment thread src/Vehicle/Vehicle.cc Outdated
Comment on lines 3281 to 3284
if (_gcsMain != controlStatus.sysid_in_control) {
_gcsMain = controlStatus.sysid_in_control;
updateControlStatusSignals = true;
}
Comment on lines +288 to +301
if (delegateRoot.nodeType === "fenceEditor" && item) {
// Interacting with the GeoFence editor makes the fence the active
// editing layer so its map visuals become interactive.
item.requestEditingLayer.connect(function() {
root.editingLayerChangeRequested(root._layerFence)
})
}
if (delegateRoot.nodeType === "rallyItem" && item) {
// Selecting a rally point makes Rally the active editing layer so its
// map visuals become interactive.
item.requestEditingLayer.connect(function() {
root.editingLayerChangeRequested(root._layerRally)
})
}
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 30.20%. Comparing base (f29efd3) to head (d2d11f9).
⚠️ Report is 101 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14544      +/-   ##
==========================================
+ Coverage   25.47%   30.20%   +4.73%     
==========================================
  Files         769      772       +3     
  Lines       65912    66943    +1031     
  Branches    30495    31090     +595     
==========================================
+ Hits        16788    20218    +3430     
+ Misses      37285    32997    -4288     
- Partials    11839    13728    +1889     
Flag Coverage Δ
unittests 30.20% <ø> (+4.73%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 376 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41bebb2...d2d11f9. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

Build Results

Platform Status

Platform Status Details
Linux Passed View
Windows Passed View
MacOS Passed View
Android Passed View

All builds passed.

Pre-commit

Check Status Details
pre-commit Failed (non-blocking) View

Pre-commit hooks: 2 passed, 75 failed, 7 skipped.

Test Results

linux-coverage: 100 passed, 0 skipped
Total: 100 passed, 0 skipped

Code Coverage

Coverage: 65.1%

No baseline available for comparison

Artifact Sizes

Artifact Size
QGroundControl 219.30 MB
QGroundControl-aarch64 178.51 MB
QGroundControl-installer-AMD64 137.20 MB
QGroundControl-installer-AMD64-ARM64 80.10 MB
QGroundControl-installer-ARM64 108.64 MB
QGroundControl-linux 191.96 MB
QGroundControl-mac 191.96 MB
QGroundControl-windows 190.14 MB
QGroundControl-x86_64 174.41 MB
No baseline available for comparison

Updated: 2026-06-16 21:58:02 UTC • Commit: 9066767 • Triggered by: Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants