Skip to content

fix(math): refine altitude precision and add guarded telemetry unit conversions - #3

Merged
ATLURI0001 merged 1 commit into
mainfrom
fix/telemetry-unit-conversion-precision
Nov 11, 2026
Merged

ATLURI0001 merged 1 commit into
mainfrom
fix/telemetry-unit-conversion-precision

Conversation

@ATLURI0001

Copy link
Copy Markdown
Owner

Summary of Changes

  • Telemetry Unit Conversion Precision & Guards (src/cockpitMath.js):
    • Refined cockpitAltitudeDisplayFt() to compute exact altitudeM / 0.3048 conversions and added rounded conversion helpers: celsiusToFahrenheit(), fahrenheitToCelsius(), celsiusToKelvin(), hpaToInHg(), inHgToHpa(), knotsToMps(), and mpsToKnots().
    • Guarded all helpers against NaN, Infinity, null, and unphysical negatives with IEEE-754 decimal noise rounding.
  • Automated Test Coverage (src/cockpitMath.test.mjs):
    • Added round-trip accuracy and invalid-input tests covering temperature, pressure, and airspeed conversions.

@ATLURI0001
ATLURI0001 merged commit 82a7913 into main Nov 11, 2026
1 of 3 checks passed
@ATLURI0001
ATLURI0001 deleted the fix/telemetry-unit-conversion-precision branch November 11, 2026 04:33
@ATLURI0001
ATLURI0001 restored the fix/telemetry-unit-conversion-precision branch November 11, 2026 04:41
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