Skip to content

Commit

Permalink
fix(EFB): Pushback and Services Page imports
Browse files Browse the repository at this point in the history
  • Loading branch information
masterrob94 committed Feb 28, 2024
1 parent 7eaaa29 commit a1d3d99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
setCenterPlaneMode,
setMapRange,
} from '../../../Store/features/pushback';
import { AicraftLength } from './Pushback/Constants';
import { AicraftLength } from './Constants';
interface TurningRadiusIndicatorProps {
turningRadius: number;
}
Expand Down Expand Up @@ -66,8 +66,6 @@ const TurningRadiusIndicator = ({ turningRadius }: TurningRadiusIndicatorProps)
export const PushbackMap = () => {
const dispatch = useAppDispatch();

const [airframe] = useState(getAirframeType());

const [planeHeadingTrue] = useSimVar('PLANE HEADING DEGREES TRUE', 'degrees', 50);
const [planeLatitude] = useSimVar('A:PLANE LATITUDE', 'degrees latitude', 50);
const [planeLongitude] = useSimVar('A:PLANE LONGITUDE', 'degrees longitude', 50);
Expand Down Expand Up @@ -99,8 +97,8 @@ export const PushbackMap = () => {
// Aircraft wheelbase in meters
// Source: https://www.airbus.com/sites/g/files/jlcbta136/files/2021-11/Airbus-Commercial-Aircraft-AC-A320.pdf
// Source: https://www.airbus.com/sites/g/files/jlcbta136/files/2022-02/Airbus-A380-Facts-and-Figures-February-2022.pdf
const aircraftWheelBase = getAirframeType() === 12.64;
const aircraftLengthMeter = AicraftLength[airframe];
const aircraftWheelBase = 12.64;
const aircraftLengthMeter = AicraftLength[getAirframeType()];

// Map
const [mouseDown, setMouseDown] = useState(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// SPDX-License-Identifier: GPL-3.0
import { getAirframeType } from '@flybywiresim/flypad';
import React, { useState } from 'react';
import { A318Services } from './Services/A318_100/A318Services';
import { A319Services } from './Services/A319_100/A319Services';
import { A320Services } from './Services/A320_200/A320Services';
import { A321Services } from './Services/A321_200/A321Services';
import { A318Services } from './A318_100/A318Services';
import { A319Services } from './A319_100/A319Services';
import { A320Services } from './A320_200/A320Services';
import { A321Services } from './A321_200/A321Services';


export const ServicesPage = () => {
Expand Down

0 comments on commit a1d3d99

Please sign in to comment.