2026-11-15
PA-38 Cockpit Lab
- hypothesis
- The Piper PA-38 Tomahawk flight manual (its limits, stall table and figures) can become an interactive cockpit in the browser: live instruments, controls, a simple flight model and the manual's diagrams wired to it, with no runtime dependencies.
- stack
- Vanilla TypeScript (DOM, SVG, canvas), Vite, Cloudflare Pages
- result
- Works. Live at pa38.geeklogbook.com ↗, with deep links to each instrument from the blog posts that study it. Educational only, not for flight training.
- what failed
- It began as one 1900-line HTML file. Moving it to TypeScript, checked step by step against the old file with a Playwright harness, turned up three bugs: a duplicate id that made the trim diagram move the elevator, gauges reading NaN after a reset while paused, and a decimal comma in a manual table.