Skip to content

910 improve drone disconnect warning#911

Merged
1Blademaster merged 4 commits into
mainfrom
910-improve-drone-disconnect-warning
Dec 14, 2025
Merged

910 improve drone disconnect warning#911
1Blademaster merged 4 commits into
mainfrom
910-improve-drone-disconnect-warning

Conversation

@1Blademaster

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings December 13, 2025 13:04
@1Blademaster 1Blademaster linked an issue Dec 13, 2025 that may be closed by this pull request

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 enhances the drone disconnect warning system by tracking the aircraft's armed and flying states more accurately. The changes introduce proper state management for flight status and provide more informative exit warnings based on the current operational state.

Key changes:

  • Added dedicated isArmed and isFlying state flags with automated detection logic based on telemetry data
  • Enhanced exit modal to display context-aware warnings depending on whether the aircraft is flying, armed, or simply connected
  • Refactored the armed state selector from a computed value to a dedicated state property

Reviewed changes

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

File Description
gcs/src/redux/slices/droneInfoSlice.js Added telemetry fields, isArmed/isFlying state tracking, and flying detection logic based on groundspeed and altitude thresholds
gcs/src/components/toolbar/confirmExitModal.jsx Implemented dynamic exit messages based on aircraft state (flying/armed/connected)
gcs/src/components/dashboard/telemetrySection/telemetry.jsx Updated to use new selectIsArmed selector
gcs/src/components/dashboard/tabsSectionTabs/actionTabsSection.jsx Updated to use new selectIsArmed selector

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gcs/src/redux/slices/droneInfoSlice.js
Comment thread gcs/src/redux/slices/droneInfoSlice.js
@1Blademaster
1Blademaster requested a review from a team December 13, 2025 13:07
@Kwash67

Kwash67 commented Dec 14, 2025

Copy link
Copy Markdown
Contributor

These changes will have to be made for mac too. Will work on it soon

@Kwash67 Kwash67 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.

all good

@1Blademaster
1Blademaster merged commit 1b25320 into main Dec 14, 2025
5 checks passed
@1Blademaster
1Blademaster deleted the 910-improve-drone-disconnect-warning branch December 14, 2025 18:17
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.

Improve drone disconnect warning

3 participants