Skip to content

feat(telemetry): IAS in knots, altitude in feet, Record button#36

Merged
mottihoresh merged 2 commits into
mainfrom
feat/telemetry-engineering-units
Jun 15, 2026
Merged

feat(telemetry): IAS in knots, altitude in feet, Record button#36
mottihoresh merged 2 commits into
mainfrom
feat/telemetry-engineering-units

Conversation

@mottihoresh

Copy link
Copy Markdown
Contributor

Summary

  • IAS: piecewise-linear LUT converts D_IAS_DEG raw angle to knots (0–600 kt). Pitot-static scale is nonlinear (angle ∝ v²); breakpoints derived from A-4E gauge face angular positions. Tunable — update breakpoints as calibration data arrives from live flights.
  • Altitude: replace D_ALT_NEEDLE (% FS) with ALT_FT computed from three drum addresses (D_ALT_10K / D_ALT_1K / D_ALT_100S). Formula: floor(raw/65535×10) × place_value, verified against two DCS capture files (6 000–16 900 ft). Max scale 50 000 ft.
  • Record button: adds the missing Record card to the Connection tab, wiring the existing toggleCapture / recording / recordEvents store state that was never surfaced in the UI.

Test plan

  • Replay skyhawk-capture-1781484523957.json — Press Alt peaks ~16 900 ft; IAS ~322 kt at 16 900 ft, ~416 kt at 12 200 ft
  • Replay skyhawk-capture-1781485573501.json — altitude 5 000–9 600 ft, IAS varies ~250–390 kt
  • Connection tab → Record card visible when sourceMode ≠ replay; button disabled until relay starts; shows live event count while recording

🤖 Generated with Claude Code

…utton

- IAS: piecewise-linear LUT converts D_IAS_DEG raw angle to knots (0–600 kt);
  nonlinear calibration derived from A-4E gauge face angular positions
- Alt: replace D_ALT_NEEDLE (% FS) with ALT_FT computed from three drum
  addresses (D_ALT_10K/1K/100S); displays actual feet up to 50 000 ft
- Connection: add Record card with live event counter and hint text;
  wires the existing toggleCapture/recording/recordEvents store state
@mottihoresh mottihoresh merged commit 17d6f30 into main Jun 15, 2026
4 checks passed
@mottihoresh mottihoresh deleted the feat/telemetry-engineering-units branch June 15, 2026 02:14
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