From 61aa7955eb2c4767f4ed267cb7474c105611d778 Mon Sep 17 00:00:00 2001 From: Michael Corcoran Date: Wed, 4 Jan 2023 20:49:16 +1300 Subject: [PATCH] fix(nd): vnav uses groundSpeed --- src/instruments/src/ND/pages/ArcMode.tsx | 1 + src/instruments/src/ND/pages/RoseMode.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/instruments/src/ND/pages/ArcMode.tsx b/src/instruments/src/ND/pages/ArcMode.tsx index 9bb212b19d6..1edd866a0ad 100644 --- a/src/instruments/src/ND/pages/ArcMode.tsx +++ b/src/instruments/src/ND/pages/ArcMode.tsx @@ -37,6 +37,7 @@ export const ArcMode: React.FC = ({ symbols, adirsAlign, rangeSett const [lsDisplayed] = useSimVar(`L:BTN_LS_${side === 'L' ? 1 : 2}_FILTER_ACTIVE`, 'bool'); // TODO rename simvar const [fmaLatMode] = useSimVar('L:A32NX_FMA_LATERAL_MODE', 'enum', 200); const [armedLateralBitmask] = useSimVar('L:A32NX_FMA_LATERAL_ARMED', 'enum', 200); + const [groundSpeed] = useSimVar('GPS GROUND SPEED', 'Meters per second', 200); const heading = Number(MathUtils.fastToFixed((trueRef ? trueHeading.value : magHeading.value), 2)); const track = Number(MathUtils.fastToFixed((trueRef ? trueTrack.value : magTrack.value), 2)); diff --git a/src/instruments/src/ND/pages/RoseMode.tsx b/src/instruments/src/ND/pages/RoseMode.tsx index da6971661ba..1c1c9dca7f1 100644 --- a/src/instruments/src/ND/pages/RoseMode.tsx +++ b/src/instruments/src/ND/pages/RoseMode.tsx @@ -38,6 +38,7 @@ export const RoseMode: FC = ({ symbols, adirsAlign, rangeSetting, const [lsDisplayed] = useSimVar(`L:BTN_LS_${side === 'L' ? 1 : 2}_FILTER_ACTIVE`, 'bool'); // TODO rename simvar const [fmaLatMode] = useSimVar('L:A32NX_FMA_LATERAL_MODE', 'enum', 200); const [armedLateralBitmask] = useSimVar('L:A32NX_FMA_LATERAL_ARMED', 'enum', 200); + const [groundSpeed] = useSimVar('GPS GROUND SPEED', 'Meters per second', 200); const heading = Number(MathUtils.fastToFixed((trueRef ? trueHeading.value : magHeading.value), 2)); const track = Number(MathUtils.fastToFixed((trueRef ? trueTrack.value : magTrack.value), 2));