Skip to content

Add modal for force disarming if normal disarm fails#915

Merged
1Blademaster merged 5 commits intomainfrom
914-add-force-disarm-modal
Dec 15, 2025
Merged

Add modal for force disarming if normal disarm fails#915
1Blademaster merged 5 commits intomainfrom
914-add-force-disarm-modal

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings December 13, 2025 14:06
@1Blademaster 1Blademaster linked an issue Dec 13, 2025 that may be closed by this pull request
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

This pull request adds a modal dialog that prompts users to force disarm the aircraft when a normal disarm attempt fails. The feature enhances the user experience by providing a clear option to force disarm when safety checks prevent normal disarming, while also displaying appropriate warnings about the risks.

  • Backend endpoints now include was_disarming and was_force flags in arm/disarm responses to help the frontend determine when to show the modal
  • The MAVLink force arm/disarm parameter value was updated from 2989 to 21196
  • A new React modal component provides a user-friendly interface for force disarming with clear safety warnings

Reviewed changes

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

Show a summary per file
File Description
radio/app/endpoints/arm.py Added response flags to indicate if the operation was a disarm attempt and if force was used
radio/app/controllers/armController.py Updated MAVLink force arm/disarm parameter from 2989 to 21196
gcs/src/redux/slices/droneConnectionSlice.js Added Redux state and actions for managing the force disarm modal visibility
gcs/src/redux/middleware/socketMiddleware.js Added logic to open the force disarm modal when a non-force disarm fails
gcs/src/dashboard.jsx Integrated the ForceDisarmModal component into the dashboard
gcs/src/components/dashboard/ForceDisarmModal.jsx New modal component with force disarm functionality and safety warnings

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

Comment thread radio/app/endpoints/arm.py Outdated
Comment thread radio/app/controllers/armController.py
Comment thread radio/app/controllers/armController.py
@1Blademaster 1Blademaster requested a review from a team December 14, 2025 22:01
Copy link
Copy Markdown
Contributor

@Kwash67 Kwash67 left a comment

Choose a reason for hiding this comment

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

Modal can be styled better, but i'll approve for now👍

@1Blademaster 1Blademaster merged commit 6c2bb6f into main Dec 15, 2025
8 checks passed
@1Blademaster 1Blademaster deleted the 914-add-force-disarm-modal branch December 15, 2025 13:07
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.

Add force disarm modal

3 participants