Skip to content

feat(AutoPilotPlugin): don't auto-switch to Vehicle Configuration on incomplete setup#14644

Merged
DonLakeFlyer merged 1 commit into
mavlink:masterfrom
DonLakeFlyer:remove-auto-vehicle-config
Jul 19, 2026
Merged

feat(AutoPilotPlugin): don't auto-switch to Vehicle Configuration on incomplete setup#14644
DonLakeFlyer merged 1 commit into
mavlink:masterfrom
DonLakeFlyer:remove-auto-vehicle-config

Conversation

@DonLakeFlyer

Copy link
Copy Markdown
Contributor

Description

When a vehicle connects with incomplete component setup, QGC currently forces the UI to the Vehicle Configuration view. This removes that automatic view switch while keeping the notification to the user.

Changes

  • AutoPilotPlugin::parametersReadyPreChecks() no longer calls showVehicleConfig(); it only shows the app message.
  • Updated the message wording to match current UI terminology: "Configuration tasks remain before this vehicle is ready to fly. See Vehicle Configuration for details."
  • Removed the now-dead QGCApplication::showVehicleConfig() C++ method (the QML mainWindow.showVehicleConfig() used by toolbar indicators is unchanged).

Copilot AI review requested due to automatic review settings July 19, 2026 01:24

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

This PR updates the vehicle connection/setup flow in AutoPilotPlugin to stop forcibly switching the UI into Vehicle Configuration when a vehicle connects with incomplete setup, while still notifying the user that configuration tasks remain.

Changes:

  • Removed the automatic UI navigation to Vehicle Configuration from AutoPilotPlugin::parametersReadyPreChecks().
  • Updated the user-facing notification text to reference “Vehicle Configuration”.
  • Deleted the now-unused C++ slot QGCApplication::showVehicleConfig() (QML mainWindow.showVehicleConfig() remains in use by toolbar UI).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/QGCApplication.h Removes the showVehicleConfig() slot declaration.
src/QGCApplication.cc Removes the showVehicleConfig() implementation that invoked QML.
src/AutoPilotPlugins/AutoPilotPlugin.cc Stops auto-switching views on incomplete setup; keeps a user notification with updated wording.

@github-actions

github-actions Bot commented Jul 19, 2026

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: 0 passed, 0 failed, 0 skipped.

Test Results

linux-coverage-integration: 33 passed, 0 skipped
linux-coverage-unit: 107 passed, 0 skipped
Total: 140 passed, 0 skipped

Code Coverage

Coverage: 67.8%

No baseline available for comparison

Artifact Sizes

Artifact Size
QGroundControl 221.85 MB
QGroundControl-aarch64 179.43 MB
QGroundControl-installer-AMD64 137.92 MB
QGroundControl-installer-AMD64-ARM64 80.46 MB
QGroundControl-installer-ARM64 109.21 MB
QGroundControl-linux 87.10 MB
QGroundControl-mac 87.09 MB
QGroundControl-windows 86.16 MB
QGroundControl-x86_64 191.67 MB
No baseline available for comparison

Updated: 2026-07-19 19:18:58 UTC • Commit: ed22cb5 • Triggered by: Android

…incomplete setup

Keep the app message notifying the user that configuration tasks remain,
but no longer force the UI to the Vehicle Configuration view when a
vehicle connects with incomplete component setup. Also update the
message wording to match current UI terminology and remove the now-dead
QGCApplication::showVehicleConfig().
@DonLakeFlyer
DonLakeFlyer force-pushed the remove-auto-vehicle-config branch from e5aecb8 to ed22cb5 Compare July 19, 2026 18:39
@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 31.56%. Comparing base (f29efd3) to head (ed22cb5).
⚠️ Report is 156 commits behind head on master.

Files with missing lines Patch % Lines
src/AutoPilotPlugins/AutoPilotPlugin.cc 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (30.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14644      +/-   ##
==========================================
+ Coverage   25.47%   31.56%   +6.09%     
==========================================
  Files         769      785      +16     
  Lines       65912    66979    +1067     
  Branches    30495    31027     +532     
==========================================
+ Hits        16788    21140    +4352     
+ Misses      37285    31467    -5818     
- Partials    11839    14372    +2533     
Flag Coverage Δ
unittests 31.56% <0.00%> (+6.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/QGCApplication.cc 18.89% <ø> (-2.56%) ⬇️
src/QGCApplication.h 55.55% <ø> (ø)
src/AutoPilotPlugins/AutoPilotPlugin.cc 50.00% <0.00%> (+11.90%) ⬆️

... and 452 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 5d407dd...ed22cb5. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DonLakeFlyer
DonLakeFlyer merged commit 6925df8 into mavlink:master Jul 19, 2026
44 checks passed
@DonLakeFlyer
DonLakeFlyer deleted the remove-auto-vehicle-config branch July 19, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants