技术文档

Navigation displays (M4e)

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

Zibo's captain and first officer NDs from the 737-800's own PANEL_3D (LU_DU_CPT_INBD, LU_DU_FO_INBD: groups ND CPT / ND FO, 1049 / 1057 datarefs) with Zibo's bitmaps.

  • Programs: python3 tools/msfs/build_du.py ND ND_FO → avionics/src/instruments/ND*/panel.json.
  • Instruments lu737-nd / lu737-nd-fo, dark unless L:LU737_DU_CPT_INBD_PWR / _FO_INBD_PWR = 1.
  • Sources: avionics/src/du/NdSources.ts (+ the PFD tables). Oracle: xphost/test/sci/nd_trace.json, nd_fo_trace.json → avionics/test/data/nd*_oracle.json; test avionics/test/nd_data.test.ts (the three states in the script's order: Zibo keeps some values from mode to mode). Expected look docs/nd_cruise.png.

Sources today#

Group Kind Source
EFIS control panel ND part: mode APP / VOR / MAP / PLN, range 5–640 NM, CTR (expanded / centred / VSD), VOR / ADF switches, WXR, STA, WPT, ARPT, DATA, POS, TERR, TFC exact systems module efis/ (build 19); panel state at the flight start as Zibo's
Heading / track / heading bug / course on the ND per mode, track-up above 45 m/s GS (Zibo's default option) exact B738_efis (ndBasic)
GS, TAS, wind (shown from 6 kt, hidden below 4 kt, not below 101 kt TAS), wind arrow, VOR / ADF pointers, HSI deviations, DME msfs MSFS A:vars (bearings from NAV RADIAL / ADF RADIAL)
NAV frequencies, types, identification, MMR mode, IRS ND flags exact systems module (nav/, irs/)
MCP heading / course pending MCP (M5): heading bug at 0
Expanded-map range arcs (EFIS_control/*/rings): expanded APP / VOR / MAP with WXR, TERR or TFC on; off in PLN and the centred modes exact systems module efis/ (build 57, B738.glaresheild.lua "ND Rings")
Route lines: active / modified legs, turn arcs, RF / AF legs, holds, procedure turns, runway, PLN's range circles exact zibomod's OpenGL ND drawing (NDRender_opengl) translated with the LNAV, oracle-checked vertex by vertex; drawn on a canvas over the ND (build 61, docs/ND_ROUTE.md)
Waypoint names / altitudes / ETAs / RNP beside the route, TOC / TOD / S/C / E/D / decel, GPS / IRS positions exact zibomod's symbol datarefs (nd/wpt_*, tc_* …) from the translated NDRender_xplane / NDRender_opengl, oracle-checked; CommBus LU737_ND_SYM (build 62, docs/ND_ROUTE.md)
Airports, stations, fixes on the map (STA / ARPT / WPT) exact zibomod's nd_earth_* / nd_apt_* and its navdata loaders, translated, oracle-checked (build 63, docs/ND_ROUTE.md)
Green arc (range to the MCP altitude in V/S, LVL CHG, VNAV climb / descent) exact Zibo's B738_draw_arc written out (wasm/src/core/efis/green_arc.h, build 68)
POS: the VOR radial lines and their R-xxx labels exact / msfs Zibo's B738_efis POS block written out (NdSources.ts vorPos, build 68); bearings from MSFS
The FMS's strings: selected VORs' identifiers / courses, runway identifiers, the next waypoint and its ETA, the FIX page's labels, VOR / ADF frequencies exact the Lua FMS's store over LU737_ND_SYM (kNdFmsStrings, 96 strings, build 68)
Heading-bug line (hidden 10 s after the MCP heading last moved in LNAV / on an approach), track-up active, EFIS mode / MMR disagree, EFIS NAV, WX fail exact Zibo's B738.glaresheild.lua written out: avionics/src/du/GlareDisplay.ts (build 72)
FMC source (L / R), ADF / VOR-DME fail flags exact zibomod's own values from the translated code, L:LU737_DU_* (build 72, tools/re/du_exports.py)
TCAS traffic (positions, symbols, arrows, altitude labels) and its flags (TCAS / TFC / OFF / TEST / FAIL) exact zibomod's Tcas_system translated, oracle-checked; MSFS's traffic as X-Plane's targets (build 73, docs/TCAS.md)
Terrain, weather radar; ANP, the destination runway's ICAO flag, nd_refresh pending GPWS / WXR (M6); ANP: zibomod code not translated yet