Skip to content

Add link stats popout window#675

Merged
1Blademaster merged 4 commits intorelease-alpha-0.1.10from
alpha-0.1.10/674-add-debug-stats-window-to-display-connection-information
Sep 7, 2025
Merged

Add link stats popout window#675
1Blademaster merged 4 commits intorelease-alpha-0.1.10from
alpha-0.1.10/674-add-debug-stats-window-to-display-connection-information

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

@1Blademaster 1Blademaster commented Sep 7, 2025

image

@1Blademaster 1Blademaster changed the title Add backend implementation for link stats Add link stats popout window Sep 7, 2025
@1Blademaster 1Blademaster requested a review from Copilot September 7, 2025 17:50
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 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.

Comment thread radio/app/drone.py
Comment thread gcs/src/components/linkStatsWindow/linkStatsWindow.jsx Outdated
Comment thread gcs/src/components/linkStatsWindow/linkStatsWindow.jsx Outdated
Copy link
Copy Markdown
Contributor

@NexInfinite NexInfinite left a comment

Choose a reason for hiding this comment

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

LGTM

@1Blademaster 1Blademaster merged commit ef79251 into release-alpha-0.1.10 Sep 7, 2025
7 checks passed
@1Blademaster 1Blademaster deleted the alpha-0.1.10/674-add-debug-stats-window-to-display-connection-information branch September 7, 2025 18:15
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
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.

3 participants