Citation: ADF/VOR/FMS bearing pointers wired through + PFD FMA mode bar
- Nav Source Selector (p24) now fully drives the PFD: shared brg1/brg2 state (App ↔ RMU ↔ PFD). RMU has both pointer knobs — ◯ blue (OFF/VOR1/ADF1/FMS1) and ◇ white (OFF/VOR2/ADF2/FMS2). The PFD resolves each to a magnetic bearing (VOR bearing, ADF relative+heading, GPS bearing) and the HSI legend reflects the selected sources. - PFD FMA / AFCS mode annunciation bar across the top (lateral · AP/FD · vertical) reading the per-mode *_status datarefs — active green, armed white, matching the real Primus PFD. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+6
-3
@@ -74,6 +74,9 @@ export default function App() {
|
||||
const xp = useXplane();
|
||||
// Active cockpit profile — persisted; switches the whole avionics suite.
|
||||
const [profile, setProfile] = useState(() => localStorage.getItem('cockpitProfile') || 'g1000');
|
||||
// Citation Nav Source Selector bearing-pointer sources (p24): pointer 1 = cyan
|
||||
// circle, pointer 2 = white diamond. Each OFF/VORn/ADFn/FMSn. Shared PFD↔RMU.
|
||||
const [navSrc, setNavSrc] = useState({ brg1: 'VOR1', brg2: 'VOR2' });
|
||||
const [profMenu, setProfMenu] = useState(false);
|
||||
const PROF = PROFILES[profile] || PROFILES.g1000;
|
||||
const TABS = PROF.tabs;
|
||||
@@ -236,12 +239,12 @@ export default function App() {
|
||||
)}
|
||||
|
||||
{/* ---- Cessna Citation X suite (Honeywell Primus 2000) ---- */}
|
||||
{profile === 'citation' && tab === 'duo' && <CitDuo xp={xp} />}
|
||||
{profile === 'citation' && tab === 'pfd' && <CitPFD xp={xp} />}
|
||||
{profile === 'citation' && tab === 'duo' && <CitDuo xp={xp} navSrc={navSrc} />}
|
||||
{profile === 'citation' && tab === 'pfd' && <CitPFD xp={xp} navSrc={navSrc} />}
|
||||
{profile === 'citation' && tab === 'mfd' && <CitMFD xp={xp} />}
|
||||
{profile === 'citation' && tab === 'eicas' && <CitEICAS xp={xp} />}
|
||||
{profile === 'citation' && tab === 'ap' && <CitAP xp={xp} />}
|
||||
{profile === 'citation' && tab === 'rmu' && <CitRMU xp={xp} />}
|
||||
{profile === 'citation' && tab === 'rmu' && <CitRMU xp={xp} navSrc={navSrc} onNavSrc={setNavSrc} />}
|
||||
|
||||
{/* ---- shared tabs ---- */}
|
||||
{tab === 'map' && <MapView values={xp.values} flightPlan={xp.flightPlan} fp={xp.fp} />}
|
||||
|
||||
Reference in New Issue
Block a user