Add total flight time timer to status bar#988
Merged
1Blademaster merged 2 commits intomainfrom Feb 18, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
Kwash67
approved these changes
Feb 18, 2026
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.
No description provided.