Skip to content

Fix flight ALT showing Ground when API returns altitude in meters only#78

Merged
asubowo merged 1 commit into
v1from
dev
Jun 24, 2026
Merged

Fix flight ALT showing Ground when API returns altitude in meters only#78
asubowo merged 1 commit into
v1from
dev

Conversation

@asubowo

@asubowo asubowo commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

The AeroDataBox API sometimes populates altitude.feet=0 with the real value in altitude.meter. The old ?? operator preserved the 0, causing 0 < 500 to always render "Ground". resolveAltFt() now uses || to skip zero feet values and falls back to meter conversion before trying pressureAltitude.

The AeroDataBox API sometimes populates altitude.feet=0 with the real value
in altitude.meter. The old ?? operator preserved the 0, causing 0 < 500 to
always render "Ground". resolveAltFt() now uses || to skip zero feet values
and falls back to meter conversion before trying pressureAltitude.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@asubowo asubowo merged commit 81565c3 into v1 Jun 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant