技术文档

MCP (M5a: dials)

此页为项目的英文技术文档原文。 docs/MCP.md

Systems module mcp/ (build 21), from Zibo's B738.glaresheild.lua (up_dn_speed_dial, up_dn_hdg_dial, up_dn_alt_dial, up_dn_crs1_dial, up_dn_crs2_dial) and zibomod (CMD_autopilot_bank_angle_up/dn, CMD_autopilot_co_press). One click per MSFS event (Zibo's "smart knob" acceleration is an EFB option, off).

Dial Range / step Events (cockpit model)
IAS / MACH 100 … 340 kt by 1; Mach 0.60 … 0.82 by 0.01 (not below 100 kt) AP_AIRSPEED INC / DEC, IAS_MACH_CHANGE_OVER PRESS
Heading 0 … 359 by 1, wraps AP_HEADING
Altitude 0 … 50000 by 100 (rounded up) AP_ALTITUDE
Course (captain / FO) 0 … 359 by 1, wraps PILOT_HSI_OBS, FIRST_OFFICER_HSI_OBS
Bank angle positions 0 … 4 (10 … 30°) BANK_ANGLE

Published L:LU737_MCP_SPEED, _IS_MACH, _HEADING, _ALTITUDE, _COURSE_CAPT, _COURSE_FO, _BANK_ANGLE and the knob states L:LU737_AUTOPILOT_*. The PFDs (speed / altitude bugs, heading bug, nav line course) and NDs (heading bug, course) read them. Tests: mcp_* in wasm/test/test_mcp.cpp.

Not yet: the C/O inhibit of the AFDS (Zibo allows it only in some modes) — the change-over converts the dial at the current IAS / Mach ratio as X-Plane's knots / Mach toggle; V/S wheel, speed / altitude intervention and all mode buttons belong to the AFDS (next stage). The MCP display windows are drawn by the Panel instrument (build 26, docs/PANEL.md).