Skip to content

Add mission statistics#609

Merged
1Blademaster merged 4 commits intorelease-alpha-0.1.10from
alpha-0.1.10/608-add-statistics-to-missions-page-to-display-distance-between-waypoints-total-distance-etc
Aug 16, 2025
Merged

Add mission statistics#609
1Blademaster merged 4 commits intorelease-alpha-0.1.10from
alpha-0.1.10/608-add-statistics-to-missions-page-to-display-distance-between-waypoints-total-distance-etc

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

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 adds mission statistics functionality to display calculated metrics about drone missions, including distance, altitude, and slope information.

  • Moved isGlobalFrameHomeCommand function to module level for reusability
  • Added MissionStatistics component with calculations for total distance, max distance between waypoints, max altitude, and max slope gradient
  • Integrated statistics display into the missions UI with tooltips for additional context

Reviewed Changes

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

File Description
gcs/src/missions.jsx Moved utility function to module level and integrated MissionStatistics component into UI
gcs/src/components/missions/missionStatistics.jsx New component implementing mission statistics calculations and display

Comment thread gcs/src/components/missions/missionStatistics.jsx
Comment thread gcs/src/components/missions/missionStatistics.jsx Outdated
Comment thread gcs/src/components/missions/missionStatistics.jsx Outdated
Comment thread gcs/src/components/missions/missionStatistics.jsx
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.

Lets resolve the Fast refresh warning by moving isGlobalFrameHomeCommand into another file, then import that into missions.jsx

…ics-to-missions-page-to-display-distance-between-waypoints-total-distance-etc
@1Blademaster 1Blademaster merged commit 2ba3f85 into release-alpha-0.1.10 Aug 16, 2025
7 checks passed
@1Blademaster 1Blademaster deleted the alpha-0.1.10/608-add-statistics-to-missions-page-to-display-distance-between-waypoints-total-distance-etc branch August 16, 2025 21:06
1Blademaster added a commit that referenced this pull request Sep 28, 2025
* Add mission statistics

* Address copilot review comments

* Move command into filterMissions file
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.

Add statistics to missions page to display distance between waypoints, total distance, etc

3 participants