MerginMaps / MerginMaps/mobile
Altitude displays N/A in GPS Info panel when antenna height contains an invalid (NaN) value
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 388
- Forks
- 87
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 20
Description
Description
When the antenna height field contains a NaN (Not a Number / invalid non-numeric) value, the Altitude field in the GPS Info panel displays N/A instead of the actual GPS altitude. This affects both internal and external GPS connections and is reproducible on both iOS and Android.
Environment
[x] Staging
Application (+ app version, build, operating system)
Mergin Maps Mobile App
- iOS version: 2025.6.0 — iOS 26.0 / iOS: 26.6.921312
- Android version: 2025.6.0 — Samsung Galaxy A53 5G, Android 15
Steps to reproduce
- Open the Mergin Maps mobile app.
- Navigate to the GPS Info panel.
- Set the antenna height field to an invalid or non-numeric value (NaN).
- Observe the Altitude field in the GPS Info panel.
- Repeat with both internal GPS and an external GPS receiver.
Actual results
The Altitude field in the GPS Info panel displays N/A when the antenna height contains an invalid (NaN) value. This occurs for both internal and external GPS connections.
Expected results
The Altitude field should display the actual GPS altitude regardless of the antenna height value. If the antenna height is invalid, the app should either:
- Fall back to displaying the raw GPS altitude without antenna height correction, or
- Display a clear warning that the antenna height value is invalid, while still showing the GPS altitude.
Screenshots or logs
(Please attach screenshots or relevant logs if available)
https://github.com/user-attachments/assets/ac255cc5-1bc8-4b1a-b24a-bbf2626e5c7a
Conclusion
Created by Claude and supervised by a human test analyst.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the GPS Info panel and the code that combines antenna height with altitude, then reproduce the issue with an invalid antenna-height value for both internal and external GPS. Done means the panel still shows the raw GPS altitude or a clear invalid-height warning instead of N/A; verify the result on iOS and Android paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100