Skip to content

Plan view cleanup#14104

Merged
DonLakeFlyer merged 4 commits intomasterfrom
plan-view-cleanup
Mar 11, 2026
Merged

Plan view cleanup#14104
DonLakeFlyer merged 4 commits intomasterfrom
plan-view-cleanup

Conversation

@DonLakeFlyer
Copy link
Copy Markdown
Collaborator

@DonLakeFlyer DonLakeFlyer commented Mar 11, 2026

Summary

Terminology cleanup and minor bug fixes in Plan View code.

Commits

  1. Rename home position label from "Launch" to "Home" — The map marker for the home/launch position now displays as "Home" which is more intuitive.

  2. Rename AltitudeMode to AltitudeFrame throughout codebase — Systematically renames the AltMode enum, properties, signals, methods, and QML components to use AltitudeFrame terminology, which better reflects that these represent MAVLink altitude reference frames. JSON serialization keys are preserved for backward compatibility.

  3. Guard _visualItems.get(0) against empty model during initialization — Adds count checks in PlanView.qml before accessing the first visual item, preventing QML warnings during the gap between construction and MissionController.start().

  4. QGCTabBar: reset to first tab when becoming visible — Ensures tab selection resets when the tab bar becomes visible, preventing stale selection state.

This comment was marked as resolved.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 11, 2026

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

Test Results

linux-sanitizers: 62 passed, 0 skipped

linux_gcc_64: 62 passed, 0 skipped

Total: 124 passed, 0 skipped

Artifact Sizes

Artifact Size
QGroundControl 320.58 MB
QGroundControl 330.30 MB
QGroundControl-aarch64 177.05 MB
QGroundControl-installer-AMD64 150.85 MB
QGroundControl-installer-AMD64-ARM64 77.10 MB
QGroundControl-installer-ARM64 78.05 MB
QGroundControl-mac 184.43 MB
QGroundControl-windows 184.46 MB
QGroundControl-x86_64 172.10 MB

No baseline available for comparison


Updated: 2026-03-11 21:37:34 UTC • Triggered by: Android

Systematically rename the AltMode enum and all related types,
properties, methods, signals, and QML components to use AltitudeFrame
terminology, which better reflects that these represent MAVLink altitude
reference frames rather than abstract modes.

Key changes:
- Enum: AltMode -> AltitudeFrame, values like AltModeMixed -> AltitudeFrameMixed
- C++ properties/signals: altitudeMode -> altitudeFrame throughout
- Methods: altitudeModeExtraUnits -> altitudeFrameExtraUnits, etc.
- QML files: AltModeCombo -> AltFrameCombo, AltModeDialog -> AltFrameDialog
- Pass currentAltFrame to AltFrameDialog open calls
- Fix _missionItem -> missionItem in TransectStyleComplexItemTerrainFollow
- Fix _amslAltAboveTerrainFact loading from wrong JSON key
- Remove unused SettingsFixture::setAltitudeFrame no-op
- JSON keys preserved for backward compatibility
Add count checks before accessing _visualItems.get(0) in PlanView.qml
to prevent warnings during the gap between QML construction and
MissionController.start() populating the model.
Ensures the tab selection resets when the tab bar becomes visible,
preventing stale selection state when tabs are dynamically shown/hidden.
Also calls _selectCurrentIndexButton() explicitly in case currentIndex
is already 0 and onCurrentIndexChanged would not fire.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comments suppressed due to low confidence (1)

src/QmlControls/AltFrameDialog.qml:16

  • AltFrameDialog assumes rgRemoveModes and updateAltFrameFn are always provided; if either is omitted/null, rgRemoveModes.push(...) or updateAltFrameFn(modeValue) will throw at runtime. Consider making these required properties (and/or defaulting rgRemoveModes to [] and updateAltFrameFn to a no-op) to fail fast and avoid hard-to-debug QML exceptions when the dialog is reused elsewhere.

@DonLakeFlyer DonLakeFlyer merged commit 1bad343 into master Mar 11, 2026
35 checks passed
@DonLakeFlyer DonLakeFlyer deleted the plan-view-cleanup branch March 11, 2026 21:41
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