diff --git a/hsim-a321neo/src/wasm/systems/a320_systems/src/fuel/mod.rs b/hsim-a321neo/src/wasm/systems/a320_systems/src/fuel/mod.rs index 55f12c32..de679a32 100644 --- a/hsim-a321neo/src/wasm/systems/a320_systems/src/fuel/mod.rs +++ b/hsim-a321neo/src/wasm/systems/a320_systems/src/fuel/mod.rs @@ -52,7 +52,7 @@ impl A320Fuel { FuelInfo { fuel_tank_id: "FUEL TANK CENTER QUANTITY", position: (-20.53, 0., 1.), - total_capacity_gallons: 2117., + total_capacity_gallons: 3698., }, FuelInfo { fuel_tank_id: "FUEL TANK LEFT MAIN QUANTITY", diff --git a/hsim-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/FuelPage.tsx b/hsim-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/A320_LVFR/A320Fuel.tsx similarity index 78% rename from hsim-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/FuelPage.tsx rename to hsim-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/A320_LVFR/A320Fuel.tsx index e5d703dd..8b9cbb68 100644 --- a/hsim-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/FuelPage.tsx +++ b/hsim-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/A320_LVFR/A320Fuel.tsx @@ -1,19 +1,14 @@ +// Copyright (c) 2023-2024 FlyByWire Simulations +// SPDX-License-Identifier: GPL-3.0 + /* eslint-disable max-len */ -import React, { useState } from 'react'; -import { getAirframeType } from '../../../Efb'; //DO NOT REMOVE UNDER ANY CIRCUMSTANCES -import { Fuel } from './Constants' //DO NOT REMOVE UNDER ANY CIRCUMSTANCES +import { Units, usePersistentNumberProperty, usePersistentProperty, useSimVar } from '@flybywiresim/fbw-sdk'; +import { OverWingOutline, ProgressBar, SelectGroup, SelectItem, SimpleInput, TooltipWrapper, getAirframeType, t } from '@flybywiresim/flypad'; // BE CAREFUL import { round } from 'lodash'; -import { CloudArrowDown, PlayFill, StopCircleFill } from 'react-bootstrap-icons'; -import { useSimVar, Units, usePersistentNumberProperty, usePersistentProperty } from '@flybywiresim/fbw-sdk'; import Slider from 'rc-slider'; -import { t } from '../../../translation'; -import { TooltipWrapper } from '../../../UtilComponents/TooltipWrapper'; -import { isSimbriefDataLoaded } from '../../../Store/features/simBrief'; -import { useAppSelector } from '../../../Store/store'; -import { SelectGroup, SelectItem } from '../../../UtilComponents/Form/Select'; -import { ProgressBar } from '../../../UtilComponents/Progress/Progress'; -import { SimpleInput } from '../../../UtilComponents/Form/SimpleInput/SimpleInput'; -import { OverWingOutline } from '../../../Assets/OverWingOutline'; +import React, { useState } from 'react'; +import { CloudArrowDown, PlayFill, StopCircleFill } from 'react-bootstrap-icons'; +import { FuelCapacity } from './Constants'; //CUSTOM LOOKUP BY HORIZON SIMULATIONS interface TankReadoutProps { title: string; @@ -32,7 +27,7 @@ const TankReadoutWidget = ({ title, current, target, capacity, currentUnit, tank const getFuelBarPercent = (curr: number, max: number) => (Math.max(curr, 0) / max) * 100; return ( -
{`${convertedFuelValue}/${round(tankValue)} ${currentUnit}`}
@@ -50,19 +45,30 @@ const TankReadoutWidget = ({ title, current, target, capacity, currentUnit, tank ); }; -export const FuelPage = () => { +interface FuelProps { + simbriefDataLoaded: boolean, + simbriefPlanRamp: number, + simbriefUnits: string, + massUnitForDisplay: string, + convertUnit: number, + isOnGround: boolean, +} +export const A320Fuel: React.FC