Skip to content

Enable GLOBAL_POSITION_INT message to be streamed at all times#846

Merged
1Blademaster merged 2 commits intomainfrom
829-gps-track-not-logged-when-not-on-dashboard
Nov 10, 2025
Merged

Enable GLOBAL_POSITION_INT message to be streamed at all times#846
1Blademaster merged 2 commits intomainfrom
829-gps-track-not-logged-when-not-on-dashboard

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings November 9, 2025 14:26
@1Blademaster 1Blademaster linked an issue Nov 9, 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 PR refactors the state management in the drone telemetry system by extracting message listener configurations into module-level constants and optimizing the control flow, while also removing telemetry socket error logging from the frontend.

  • Refactored message listener configurations from inline dictionaries to module-level constants (GLOBAL_MESSAGE_LISTENERS and STATES_MESSAGE_LISTENERS)
  • Consolidated data stream initialization with a global setup that applies to all states, replacing per-state duplicate setups
  • Removed telemetry socket connection error handler from the frontend middleware

Reviewed Changes

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

File Description
radio/app/endpoints/states.py Refactored state-based telemetry configuration by extracting listener configurations to module-level constants and introducing global message listeners that apply to all states
gcs/src/redux/middleware/socketMiddleware.js Removed the connect_error event handler for the telemetry socket

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

Comment thread radio/app/endpoints/states.py
Comment thread radio/app/endpoints/states.py
Comment thread radio/app/endpoints/states.py
Comment thread radio/app/endpoints/states.py Outdated
Comment thread radio/app/endpoints/states.py
@1Blademaster 1Blademaster requested review from a team and Kwash67 November 9, 2025 14:39
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.

LGTM

@1Blademaster 1Blademaster merged commit 576152e into main Nov 10, 2025
8 checks passed
@1Blademaster 1Blademaster deleted the 829-gps-track-not-logged-when-not-on-dashboard branch November 10, 2025 06:35
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.

GPS track not logged when not on Dashboard

3 participants