Skip to content

Add map display to FLA for dataflash bin logs#949

Merged
1Blademaster merged 3 commits into
mainfrom
925-view-gps-map-when-analysing-logs
Jan 14, 2026
Merged

Add map display to FLA for dataflash bin logs#949
1Blademaster merged 3 commits into
mainfrom
925-view-gps-map-when-analysing-logs

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

@1Blademaster 1Blademaster commented Jan 10, 2026

image

In another issue I want to add a waypoints/fences if available. I also want to try and display the drone's position in accordance to the mouse cursor on the map.

Copilot AI review requested due to automatic review settings January 10, 2026 18:15
@1Blademaster 1Blademaster linked an issue Jan 10, 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 pull request adds map display functionality to the Flight Log Analyzer (FLA) for dataflash bin logs. The feature allows users to visualize GPS/GPS2/POS position data from log files on an interactive satellite map alongside the existing graph visualization.

Changes:

  • Added Redux state management for map position data with new actions and selectors
  • Implemented a new map component that displays GPS, GPS2, and POS data with different colored tracks
  • Integrated the map with the graph view using resizable panels
  • Added parser utilities to extract and validate position data from dataflash log messages

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
gcs/src/redux/slices/logAnalyserSlice.js Added mapPositionData state, reducer action, and selectors for managing position data
gcs/src/fla.jsx Integrated mapPositionData dispatch and cleanup in the FLA component lifecycle
gcs/src/components/fla/graphConfigs.js Updated chart configuration with maintainAspectRatio and dimension properties
gcs/src/components/fla/graph.jsx Added resizable panel layout with Show/Hide Map button and map integration
gcs/src/components/fla/flaMap.jsx New component implementing the map display with GPS/GPS2/POS tracks visualization
gcs/electron/utils/dataflashParserUtils.ts Added functions to extract and validate GPS/POS position data from log messages
gcs/electron/types/flaTypes.ts Added TypeScript interfaces for map position data structures
gcs/electron/fla.ts Integrated map position data extraction in the log processing pipeline

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

Comment thread gcs/src/components/fla/flaMap.jsx Outdated
Comment thread gcs/electron/utils/dataflashParserUtils.ts
Comment thread gcs/electron/utils/dataflashParserUtils.ts
Comment thread gcs/electron/utils/dataflashParserUtils.ts
Comment thread gcs/electron/utils/dataflashParserUtils.ts Outdated
Comment thread gcs/src/components/fla/flaMap.jsx Outdated
Comment thread gcs/electron/utils/dataflashParserUtils.ts
Comment thread gcs/src/components/fla/graphConfigs.js Outdated
Comment thread gcs/src/components/fla/graph.jsx
Comment thread gcs/src/components/fla/flaMap.jsx Outdated
@1Blademaster 1Blademaster requested a review from a team January 10, 2026 18:25
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.

works well

@1Blademaster 1Blademaster merged commit a990cd5 into main Jan 14, 2026
5 checks passed
@1Blademaster 1Blademaster deleted the 925-view-gps-map-when-analysing-logs branch January 14, 2026 06:32
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.

View GPS map when analysing logs

3 participants