MerginMaps / MerginMaps/mobile

Altitude displays N/A in GPS Info panel when antenna height contains an invalid (NaN) value

Open
#4,597 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug GPS ui/ux
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

  1. Open the Mergin Maps mobile app.
  2. Navigate to the GPS Info panel.
  3. Set the antenna height field to an invalid or non-numeric value (NaN).
  4. Observe the Altitude field in the GPS Info panel.
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.