Skip to content

Add total flight time timer to status bar#988

Merged
1Blademaster merged 2 commits intomainfrom
978-feature-add-flight-time-timer-to-dashboard
Feb 18, 2026
Merged

Add total flight time timer to status bar#988
1Blademaster merged 2 commits intomainfrom
978-feature-add-flight-time-timer-to-dashboard

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings February 14, 2026 18:13
@1Blademaster 1Blademaster linked an issue Feb 14, 2026 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 adds a total flight time timer to the status bar that tracks how long the aircraft has been flying during the current session. The implementation uses a new Redux middleware to monitor the armed/flying state and increment a timer every second while the aircraft is in flight.

Changes:

  • Moved VFR_HUD message from page-specific to global listeners for consistent telemetry access
  • Added new Redux middleware to track flight time with 1-second intervals
  • Added status bar UI component displaying flight time in MM:SS format

Reviewed changes

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

Show a summary per file
File Description
radio/app/endpoints/states.py Moved VFR_HUD to GLOBAL_MESSAGE_LISTENERS and removed from page-specific listeners
radio/tests/test_states.py Updated test assertions to reflect new message listener counts (4 global + 1 state-specific = 5)
gcs/src/redux/store.js Registered armedMiddleware and reordered imports alphabetically
gcs/src/redux/slices/droneInfoSlice.js Added totalTimeFlying state, reducer, and selector; updated flight detection logic
gcs/src/redux/middleware/socketMiddleware.js Reset totalTimeFlying to 0 on drone connection
gcs/src/redux/middleware/armedMiddleware.js New middleware that monitors armed/flying state and increments flight time counter
gcs/src/helpers/dataFormatters.js Added formatDurationSecondsToMMSS helper function
gcs/src/dashboard.jsx Added stopwatch icon and flight time display to status bar
gcs/package.json Upgraded @tabler/icons-react from v2.44.0 to v3.36.1

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

Comment thread gcs/src/redux/middleware/armedMiddleware.js
Comment thread gcs/src/redux/middleware/armedMiddleware.js Outdated
Comment thread gcs/src/helpers/dataFormatters.js
@1Blademaster 1Blademaster requested a review from a team February 14, 2026 18:20
@1Blademaster 1Blademaster merged commit c612ae3 into main Feb 18, 2026
8 of 9 checks passed
@1Blademaster 1Blademaster deleted the 978-feature-add-flight-time-timer-to-dashboard branch February 18, 2026 18:33
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.

[FEATURE] Add flight time timer to dashboard

3 participants