Add link stats popout window#675
Merged
1Blademaster merged 4 commits intorelease-alpha-0.1.10from Sep 7, 2025
Merged
Conversation
…tats-window-to-display-connection-information
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a link stats popout window that displays real-time communication statistics between the ground control station and the drone. It provides visibility into packet transmission rates, data throughput, error counts, and connection quality metrics.
- Implements real-time link statistics collection in the Python backend with sliding window averaging
- Creates a new Electron window to display connection statistics in tabular format
- Adds UI menu option to open the connection stats window
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| radio/app/endpoints/comPorts.py | Adds LinkStatsType definition and callback function for emitting stats |
| radio/app/drone.py | Implements link debug data collection with sliding window calculations |
| gcs/src/redux/middleware/socketMiddleware.js | Adds socket event handling for link debug stats |
| gcs/src/linkStats.jsx | Entry point for the link stats window React application |
| gcs/src/components/toolbar/menus/view.jsx | Adds "Connection Stats" menu item to View menu |
| gcs/src/components/linkStatsWindow/linkStatsWindow.jsx | React component displaying uplink/downlink statistics in tables |
| gcs/linkStats.html | HTML template for the link stats window |
| gcs/electron/preload.js | Exposes IPC methods for link stats window management |
| gcs/electron/modules/linkStatsWindow.ts | Electron window management for link stats popout |
| gcs/electron/main.ts | Registers link stats IPC handlers and cleanup |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
1Blademaster
added a commit
that referenced
this pull request
Sep 28, 2025
* Add backend implementation for link stats * Add link stats window * Round bytes and packets per second values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.