Skip to content

Alpha 0.1.10/571 read mission from file#594

Merged
1Blademaster merged 6 commits intorelease-alpha-0.1.10from
alpha-0.1.10/571-read-mission-from-file
Aug 1, 2025
Merged

Alpha 0.1.10/571 read mission from file#594
1Blademaster merged 6 commits intorelease-alpha-0.1.10from
alpha-0.1.10/571-read-mission-from-file

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

@1Blademaster 1Blademaster linked an issue Jul 30, 2025 that may be closed by this pull request
@1Blademaster 1Blademaster changed the base branch from main to release-alpha-0.1.10 July 30, 2025 21:15
@1Blademaster 1Blademaster requested a review from Copilot July 30, 2025 21:16
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 PR implements the ability to import mission files from the filesystem, adding file import functionality to complement the existing mission write capabilities. The implementation handles mission, fence, and rally point imports through a new socket endpoint.

  • Added a new socket endpoint import_mission_from_file with proper validation for mission types and file paths
  • Replaced the removed loadWaypointFile method with a new importMissionFromFile method that includes better error handling and coordinate conversion
  • Updated the frontend to use a file picker component instead of a placeholder button for importing missions

Reviewed Changes

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

File Description
radio/app/endpoints/mission.py Adds new socket endpoint and TypedDict for importing missions from files with validation
radio/app/controllers/missionController.py Replaces old loadWaypointFile method with improved importMissionFromFile including coordinate conversion
gcs/src/missions.jsx Updates UI to use FileButton component and handles import_mission_result socket events

Comment thread radio/app/controllers/missionController.py Outdated
Comment thread radio/app/controllers/missionController.py Outdated
Comment thread radio/app/controllers/missionController.py
@1Blademaster 1Blademaster merged commit cc43160 into release-alpha-0.1.10 Aug 1, 2025
7 checks passed
@1Blademaster 1Blademaster deleted the alpha-0.1.10/571-read-mission-from-file branch August 1, 2025 13:27
1Blademaster added a commit that referenced this pull request Sep 28, 2025
* alpha-0.1.9/hf/583-fix-camera-not-working-on-electron

Fixed electron build camera issues (#584)

* Add mission import from selected file

* Add type fix

* Add changes from copilot review

---------

Co-authored-by: Joe <joantpat@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read mission from file

4 participants