Files
xplane-cockpit/web
karim 1788e56e65 Autopilot panel: light mode keys from per-mode status datarefs
Key feedback came from decoding the autopilot_state bitfield, whose bit
positions don't reliably match X-Plane (e.g. bit 0 is auto-throttle, not the
flight director), so several keys (FD/NAV/APR/BC/VS/VNV/FLC) never lit even when
the mode was engaged. Read the dedicated *_status datarefs (off/armed/active) —
the same source the PFD AFCS bar uses — so every key and the lateral/vertical
annunciator reflect the real mode. NAV also lights on GPS-coupled (gpss) mode.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 17:51:44 +02:00
..