Skip to content

Commit

Permalink
fix(nd): vnav uses groundSpeed
Browse files Browse the repository at this point in the history
  • Loading branch information
tracernz authored and igor8518 committed Jan 6, 2023
1 parent ef92a96 commit 61aa795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/instruments/src/ND/pages/ArcMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const ArcMode: React.FC<ArcModeProps> = ({ 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));
Expand Down
1 change: 1 addition & 0 deletions src/instruments/src/ND/pages/RoseMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const RoseMode: FC<RoseModeProps> = ({ 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));
Expand Down

0 comments on commit 61aa795

Please sign in to comment.