60 Commits

Author SHA1 Message Date
Kilian 20aa5c2416 Update to 1.1.28 2026-04-05 17:21:46 +02:00
Kilian 01e0a155ed 1.1.26+ FS24 adjustments 2026-03-28 21:02:15 +01:00
Kilian b772119e2c 1.1.18 EFB 2026-02-21 04:25:26 +01:00
Kilian 4628c6646c 1.1.17 EFB 2026-02-16 22:57:09 +01:00
Kilian 487ed3f589 GSX synced loading of fuel 2026-02-13 21:34:56 +01:00
Kilian 69680ced03 Initial GSX Sync for fuel 2026-02-13 02:50:43 +01:00
Kilian 122a93461d Non GSX Fuel setting 2026-02-12 21:27:12 +01:00
Kilian 310b5f39dc Update to 1.1.14 2026-02-05 22:16:28 +01:00
Kilian 3b003f3363 update to 1.1.14 2026-02-05 01:04:29 +01:00
Kilian 818277edcf Build 1.1.0 2026-01-28 20:13:43 +01:00
Kilian 73ebaa311b Update configs for flap drag 2026-01-28 15:48:56 +01:00
Kilian d96ea55b31 Fix GSX deboarding 2026-01-24 21:11:40 +01:00
Kilian b379a6dccd Update to 1.1.9 2026-01-24 13:59:54 +01:00
Kilian 766d956008 2024 Build an working 2025-12-16 21:30:47 +01:00
Kilian ec9facd4d9 New Configs 2025-12-16 21:02:20 +01:00
Kilian d805d315f8 Small fixes 2025-12-13 13:57:58 +01:00
Kilian ccb96e15e2 Newest EFB 2025-12-07 02:09:41 +01:00
Kilian f708bbf72c Correct Configs 2025-12-06 18:11:39 +01:00
Kilian 695e02d143 fix configs 2025-12-06 18:05:12 +01:00
Kilian 22a41749d6 Integrated OSK 2025-12-02 21:05:59 +01:00
Kilian cd1f2048b0 Fix Auto Hide 2025-12-02 00:48:06 +01:00
Kilian dcc1161012 110 Upgrade 2025-11-30 16:16:39 +01:00
Kilian 98f72d5c83 Adj. to new structure >110 2025-11-30 03:49:39 +01:00
Kilian 5e60d0d45e 106 Upgrade 2025-11-20 16:43:32 +01:00
Kilian 872161bc8a Upgrade to 105 2025-11-17 18:17:39 +01:00
Kilian 9432dd1d84 Fully adj to 103 (no OSK yet) 2025-11-07 16:11:17 +01:00
Kilian 5ad5f16bdb Adj. to 103 2025-11-07 11:26:39 +01:00
Kilian 3d2e439674 Default Weights 2025-10-15 02:45:40 +02:00
Kilian 5a80249f0e Adj Panel CFG 2025-10-08 20:33:13 +02:00
Kilian 16de21ffec Adjust to new cabin 2025-10-02 21:04:15 +02:00
Kilian b266a82905 Clang stack usage 2025-09-29 11:41:16 +02:00
Kilian e27aee0f14 gitignore changes 2025-09-20 12:58:00 +02:00
Kilian ee43ae9363 Startup behaviour 2025-09-15 00:56:35 +02:00
Kilian acf4b9ee47 GSX Reset and Disable button 2025-09-09 23:40:24 +02:00
Kilian 04e5ec4251 Moved GSX state machine into WASM 2025-09-09 14:53:41 +02:00
Kilian dee5447bed Minimum occupancy for PAX 2025-09-08 14:15:10 +02:00
Kilian 9000d516ae Allow GSX state reset
Fix KG rounding of pax
2025-09-08 03:06:48 +02:00
Kilian d75518517a Refine GSX lockout 2025-09-08 02:00:35 +02:00
Kilian 95637c9f7f Show preview CG while GSX is loading 2025-09-05 19:21:01 +02:00
Kilian 1c7caf986a Type import 2025-09-05 19:09:01 +02:00
Kilian 95aef94c71 Include tank fix 2025-09-05 18:23:03 +02:00
Kilian 4ad0f4e3d6 Update patch 2025-08-29 19:02:42 +02:00
Kilian fcfb674522 EFB in output 2025-08-29 18:55:04 +02:00
Kilian 22b5617e39 Update to new EFB 2025-08-29 17:52:32 +02:00
Kilian d2a4846df6 SB Profile values 2025-07-08 14:19:38 +02:00
Kilian a5802f46d5 Fix Fuel lockout 2025-07-08 10:54:00 +02:00
Kilian d59ffb5e76 Update Readme 2025-07-04 22:17:45 +02:00
Kilian 57186d44b9 Loaded state save 2025-07-04 22:17:21 +02:00
Kilian c7e9bff5e2 2024 compatible 2025-07-04 17:25:50 +02:00
Kilian 9bb92371bc Remove ingame panel def. 2025-07-03 22:03:40 +02:00
Kilian 09397edef9 Integration finished 2025-07-03 21:22:06 +02:00
Kilian 8952aba12d Rem EFB 2025-07-03 15:35:02 +02:00
Kilian 6e6a5b6103 EFB Patch 2025-07-03 15:34:03 +02:00
Kilian ed48918831 initial EFB 2025-07-03 15:28:51 +02:00
Kilian a8a827b253 Try two 2025-07-03 15:24:32 +02:00
Kilian 93c7815d96 Base 2025-07-03 09:48:54 +02:00
Kilian 80cb726501 Customisable pax/bag weight
Better log
2025-06-21 21:41:17 +02:00
Kilian 2047c84d8d Fix SB persist 2025-06-19 16:05:54 +02:00
Kilian 390edd29b8 SB persist
Options page for GSX Sync
2025-06-18 23:57:46 +02:00
Kilian 4b60f8eec2 Rmv wasm build artifact 2025-06-15 02:01:03 +02:00
110 changed files with 14522 additions and 12954 deletions
+6
View File
@@ -0,0 +1,6 @@
---
BasedOnStyle: LLVM
ColumnLimit: 130
IndentCaseLabels: true
AllowShortIfStatementsOnASingleLine: Always
AllowShortLoopsOnASingleLine: true
+378 -4
View File
@@ -1,13 +1,387 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Oo]ut/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsda
# Custom
Packages
_PackageInt
PackagesMetadata
PackageSources/js-bundle/__generated__
PackageSources/js-bundle/.rollup.cache
PackageSources/js-bundle/node_modules
PackageSources/html_ui
PackageSources/wasm-module/.vs
PackageSources/wasm-module/MSFS
PackageSources/wasm-module/x64
node_modules
*.blend1
*.tsbuildinfo
PackageSources/SimObjects/Airplanes/**/panel/*.wasm
PackageSources/SimObjects/Airplanes/**/*.wasm
EFB/efb.css
EFB/efb.js
EFB/efb.html
EFB/efb.index.js
EFB/patched/
*.su
+29
View File
@@ -0,0 +1,29 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/.vscode",
"C:\\MSFS 2024 SDK\\WASM\\wasi-sysroot\\include",
"C:\\MSFS 2024 SDK\\WASM\\wasi-sysroot\\include\\c++\\v1",
"C:\\MSFS 2024 SDK\\WASM\\include",
"C:\\MSFS 2024 SDK\\SimConnect SDK\\include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerArgs": [
"/Zc:__cplusplus"
],
"windowsSdkVersion": "10.0.26100.0",
"compilerPath": "cl.exe",
"cStandard": "c17",
"intelliSenseMode": "windows-msvc-x64",
"cppStandard": "c++14"
}
],
"version": 4
}
+3
View File
@@ -18,5 +18,8 @@
},
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
+14
View File
@@ -0,0 +1,14 @@
Index: EFB.html
===================================================================
--- EFB.html
+++ EFB.html
@@ -4,7 +4,8 @@
</div>
</script>
-<script type="text/html" import-async="false" import-script="/Pages/VCockpit/Instruments/aircraft_efb/TFDi_MD11_efb/efb.index.js"></script>
+<script type="text/html" import-async="false" import-script="/Pages/VCockpit/Instruments/aircraft_efb/KH_TFDi_MD11_efb/efb.index.js"></script>
<link rel="stylesheet" href="/Pages/VCockpit/Instruments/aircraft_efb/TFDi_MD11_efb/efb.css" />
+<link rel="stylesheet" href="/Pages/VCockpit/Instruments/aircraft_efb/KH_TFDi_MD11_efb/App.css" />
+15
View File
@@ -0,0 +1,15 @@
Index: EFB.index.js
===================================================================
--- EFB.index.js
+++ EFB.index.js
@@ -27,9 +27,9 @@
}
connectedCallback() {
super.connectedCallback();
- Include.addScript("/Pages/VCockpit/Instruments/aircraft_efb/TFDi_MD11_efb/efb.js");
+ Include.addScript("/Pages/VCockpit/Instruments/aircraft_efb/KH_TFDi_MD11_efb/efb.js");
}
Update() {
super.Update();
+46
View File
@@ -0,0 +1,46 @@
Index: EFB.js
===================================================================
--- EFB.js
+++ EFB.js
@@ -50833,11 +50833,11 @@
),
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
"button",
{
- onClick: loadPayload,
+ onClick: () => dispatch(setRoute({ path: "/payload" })),
className: "middle none center rounded-lg bg-green-700 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-green-500/20 transition-all hover:shadow-lg hover:shadow-green-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none",
- children: "Set payload & fuel"
+ children: "Manage payload & fuel"
}
),
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
"button",
@@ -51343,8 +51343,27 @@
] })
] }) }) });
}
+// Exports for add. script
+ window.reactExports = __toESM(require_react());
+ window.reactDomExports = __toESM(require_react_dom());
+ window.jsxRuntimeExports = __toESM(require_jsx_runtime());
+ window.useSelector = useSelector;
+ window.v4 = v4_default;
+ window.ArrowBigUp = ArrowBigUp;
+ window.Delete = Delete;
+ window.Space = Space;
+ window.X = X;
+ // Include
+ var script = document.createElement('script');
+ script.onload = function () {
+ console.log("LM App injected");
+ routes["/payload"].page = window.KH_LM
+ };
+ script.src = "/Pages/VCockpit/Instruments/aircraft_efb/KH_TFDi_MD11_efb/App.js";
+ document.head.appendChild(script); //or something of the likes
+
// src/components/Router.tsx
init_common();
var import_jsx_runtime15 = __toESM(require_jsx_runtime());
var routes = {
+26
View File
@@ -0,0 +1,26 @@
const { createTwoFilesPatch } = require("diff");
const fs = require("fs");
// HTML
let file1Contents = fs.readFileSync("EFB.html").toString();
let file2Contents = fs.readFileSync("patched/EFB.html").toString();
let patch = createTwoFilesPatch(
"EFB.html",
"EFB.html",
file1Contents,
file2Contents
);
fs.writeFileSync("efb-html.patch", patch);
// JS
file1Contents = fs.readFileSync("EFB.index.js").toString();
file2Contents = fs.readFileSync("patched/EFB.index.js").toString();
patch = createTwoFilesPatch("EFB.index.js", "EFB.index.js", file1Contents, file2Contents);
fs.writeFileSync("efb-index-js.patch", patch);
file1Contents = fs.readFileSync("EFB.js").toString();
file2Contents = fs.readFileSync("patched/EFB.js").toString();
patch = createTwoFilesPatch("EFB.js", "EFB.js", file1Contents, file2Contents);
fs.writeFileSync("efb-js.patch", patch);
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<AssetPackage Version="0.1.0">
<AssetPackage Version="1.3.0">
<ItemSettings>
<ContentType>MISC</ContentType>
<Title>TFDi Design MD-11 Load Manager</Title>
@@ -10,9 +10,10 @@
<VisibleInStore>false</VisibleInStore>
<CanBeReferenced>false</CanBeReferenced>
</Flags>
<PackageOrderHint>CUSTOM_SIMOBJECTS_PATCH</PackageOrderHint>
<AssetGroups>
<AssetGroup Name="ContentInfo">
<Type>ContentInfo</Type>
<Type Version="0">ContentInfo</Type>
<Flags>
<FSXCompatibility>false</FSXCompatibility>
</Flags>
@@ -20,29 +21,26 @@
<OutputDir>ContentInfo\xkhofmann-tfdidesign-md11-load-manager\</OutputDir>
</AssetGroup>
<AssetGroup Name="html-ui">
<Type>Copy</Type>
<Type Version="0">Copy</Type>
<Flags>
<FSXCompatibility>false</FSXCompatibility>
</Flags>
<AssetDir>PackageSources\html_ui\</AssetDir>
<OutputDir>html_ui\</OutputDir>
<Config>
<Exclude>vendor-*</Exclude>
</Config>
</AssetGroup>
<AssetGroup Name="load-manager-panel">
<Type>SPB</Type>
<Flags>
<FSXCompatibility>false</FSXCompatibility>
</Flags>
<AssetDir>PackageSources\load-manager-panel\</AssetDir>
<OutputDir>InGamePanels\</OutputDir>
</AssetGroup>
<AssetGroup Name="md-11-panel-config">
<Type>Copy</Type>
<AssetGroup Name="wasm">
<Type Version="0">Copy</Type>
<Flags>
<FSXCompatibility>false</FSXCompatibility>
</Flags>
<AssetDir>PackageSources\SimObjects\Airplanes\</AssetDir>
<OutputDir>SimObjects\Airplanes\</OutputDir>
<Config>
<Exclude>.gitkeep</Exclude>
</Config>
</AssetGroup>
</AssetGroups>
</AssetPackage>
@@ -5,19 +5,19 @@
size_mm=2048,2048
visible=1
pixel_size=2048,2048
texture=$vc1
texture=vc1
background_color=0,0,0
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=Core, 0,0,509,510
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU1,0,0,508,508
htmlgauge02=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU2,514,0,510,510
htmlgauge03=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU3,1027,0,510,510
htmlgauge04=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU4,1539,0,510,508
htmlgauge05=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU5,0,513,511,509
htmlgauge06=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU6,513,512,510,511
htmlgauge07=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=LMCDU, 0,1046,333,287
htmlgauge08=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=RMCDU,0,1386,334,288
htmlgauge09=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=CMCDU,0,1728,333,285
htmlgauge10=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=ISFD,1032,519,544,505
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU1,0,0,509,510
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU2,514,0,510,510
htmlgauge02=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU3,1027,0,510,510
htmlgauge03=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU4,1539,0,510,510
htmlgauge04=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU5,0,513,511,510
htmlgauge05=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU6,513,512,510,511
htmlgauge06=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=LMCDU, 0,1050,666,574
htmlgauge07=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=RMCDU,678,1050,666,574
htmlgauge08=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=CMCDU,1353,1050,666,574
htmlgauge09=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=ISFD,1032,519,544,505
htmlgauge10=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=Core,0,0,1,1
//KH new gauge
htmlgauge11=WasmInstrument/WasmInstrument.html?wasm_module=load-manager.wasm&wasm_gauge=Load_Manager,0,0,509,510
@@ -34,7 +34,7 @@ Background_color=0,0,0
size_mm=1024,1024
visible=1
pixel_size=1024,1024
texture=$vc2
texture=vc2
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=AFS,3,0,1015,185
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=FUEL,4,200,1016,196
@@ -45,7 +45,7 @@ Background_color=0,0,0
size_mm=1024,1024
visible=1
pixel_size=1024,1024
texture=$RADIOS_XPNDR
texture=RADIOS_XPNDR
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=RADIOS_XPNDR,0,5,1019,295
@@ -54,6 +54,6 @@ Background_color=0,0,0
size_mm=1536,1024
visible=1
pixel_size=1536,1024
texture=$EFB
texture=EFB
htmlgauge00=aircraft_efb/TFDi_MD11_efb/efb.html,0,0,1536,1024
htmlgauge00=aircraft_efb/KH_TFDi_MD11_efb/efb.html,0,0,1536,1024
@@ -0,0 +1,418 @@
//TFDi Designs MD-11 (GE CF6-80C2D1F) vRC1.8.0_GE 04FEB26
[VERSION]
//KH Bump major
major = 4
minor = 8
[WEIGHT_AND_BALANCE]
max_gross_weight = 630500
empty_weight = 283975
reference_datum_position = 0, 0, 0
empty_weight_CG_position = -10.0, 0, 0
CG_forward_limit = 0.12
CG_aft_limit = 0.34
empty_weight_pitch_MOI = 20897456
empty_weight_roll_MOI = 6368555
empty_weight_yaw_MOI = 40761191
empty_weight_coupled_MOI = 0
activate_mach_limit_based_on_cg = 0
activate_cg_limit_based_on_mach = 0
max_number_of_stations = 21
//KH START Empty default
station_load.0=190, 82.0, -2.0, 4.0, Pilot, 1
station_load.1=190, 82.0, 2.0, 4.0, First Officer, 2
station_load.2=190, 80.0, 3.3, 4.0, Engineer, 0
station_load.3=760, 66.0, 0.0, 4.0, Cabin crew 1, 0
station_load.4=0, 45.0, -5.0, 4.0, Business 1 L, 4
station_load.5=0, 45.0, 0.0, 4.0, Business 1 C, 4
station_load.6=0, 45.0, 5.0, 4.0, Business 1 R, 4
station_load.7=0, 25.0, -5.0, 4.0, Business 2 L, 4
station_load.8=0, 25.0, 0.0, 4.0, Business 2 C, 4
station_load.9=0, 25.0, 5.0, 4.0, Business 2 R, 4
station_load.10=0, -20.0, -5.0, 4.0, Economy 3 L, 3
station_load.11=0, -20.0, 0.0, 4.0, Economy 3 C, 3
station_load.12=0, -20.0, 5.0, 4.0, Economy 3 R, 3
station_load.13=0, -50.0, -5.0, 4.0, Economy 4 L, 5
station_load.14=0, -50.0, 0.0, 4.0, Economy 4 C, 5
station_load.15=0, -50.0, 5.0, 4.0, Economy 4 R, 5
station_load.16=760, -55.0, 0.0, 4.0, Cabin crew 2, 0
station_load.17=0, 30.0, 0.0, -4.5, Forward cargo, 6
station_load.18=0, -30.0, 0.0, -4.5, Rear cargo, 6
station_load.19=0, 5.0, -2.0, -4.5, Left aux tank, 0
station_load.20=0, 5.0, 2.0, -4.5, Right aux tank, 0
//KH END
[CONTACT_POINTS]
static_pitch = 0
static_cg_height = 16.4
gear_system_type = 1
tailwheel_lock = 0
max_number_of_points = 16
gear_locked_on_ground = 0
gear_locked_above_speed = -1
max_speed_full_steering = 25
min_available_steering_angle_pct = 0.2
max_speed_decreasing_steering = 45
max_speed_full_steering_castering = 20
max_speed_decreasing_steering_castering = 35
emergency_extension_type = 2
hyd_need_power_to_function= 0
min_castering_angle = 0.05236
max_castering_angle = 3.142
allow_stopped_steering = 1
point.0 = 1, 64.22, 0.00, -17.31, 1500, 0, 1.67, 70, 1.15, 1.183, 0.9, 49, 50, 0, 200, 250, 8
point.1 = 1, -19.00, -17.15, -18.02, 2000, 1, 2.25, 0, 1.60, 1.116, 0.9, 51, 52, 2, 200, 250, 8
point.2 = 1, -19.00, 17.15, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 53, 54, 3, 200, 250, 8
point.3 = 1, -19.00, 0.00, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 55, 56, 3, 200, 250, 8
point.4 = 2, 93.0, 0.0, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.5 = 2, -48, -82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 5, 0, 0, 1
point.6 = 2, -48, 82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 6, 0, 0, 1
point.7 = 2, 60, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.8 = 2, 60, 0.0, 11.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.9 = 2, 16.0, -28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.10 = 2, 16.0, 28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.11 = 2, -110.0, 0.00, 14.20, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.12 = 2, -96.5, 0.0, 42.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.13 = 2, -94.5, -30.0, 8.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.14 = 2, -94.5, 30.0, 8.05, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.15 = 2, -52.0, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
[FUEL]
LeftMain = -20.00, -38.00, -1.0, 8938, 10.00
RightMain = -20.00, 38.00, -1.0, 8938, 10.00
Center1 = 10.00, 0.00, -3.00, 13000.00, 10.00
Center2 = 0.00, 0.00, -1.00, 1642.00, 10.00
Center3 = 0.00, 0.00, -5.00, 1958.00, 11.00
LeftTip = -39.00, -74.00, 0.00, 884.00, 10.00
RightTip = -39.00, 74.00, 0.00, 884.00, 10.00
External1 = -70.00, 0.00, -3.00, 2371.00, 10.00
//KH From 5.00, -2.00, -3.00, 0.00, 10.00
LeftAux = 5.00, -2.00, -3.00, 1973.00, 10.00
//KH From 5.00, 2.00, -3.00, 0.00, 10.0
RightAux = 5.00, 2.00, -3.00, 1973.00, 10.00
fuel_type = 2
number_of_tank_selectors = 3
electric_pump = 0
engine_driven_pump = 1
manual_transfer_pump = 0
manual_pump = 0
anemometer_pump = 0
fuel_dump_rate = 0.02
default_fuel_tank_selector.1 = 1
default_fuel_tank_selector.2 = 1
default_fuel_tank_selector.3 = 1
[AIRPLANE_GEOMETRY]
wing_area = 3648
wing_span = 170.5
wing_root_chord = 34.68
wing_camber = 1
wing_thickness_ratio = 0.04
wing_dihedral = 2.2
wing_incidence = 1.5
wing_twist = -0.5
oswald_efficiency_factor = 0.72
wing_winglets_flag = 1
wing_sweep = 38
wing_pos_apex_lon = 1
wing_pos_apex_vert = -2.75
htail_area = 920
htail_span = 59.5
htail_pos_lon = -88
htail_pos_vert = 5.0
htail_incidence = 0.8
htail_sweep = 36.5
htail_thickness_ratio = 0.02
vtail_area = 760
vtail_span = 28.1
vtail_sweep = 43
vtail_pos_lon = -79.5
vtail_pos_vert = 28
vtail_thickness_ratio = 0.03
fuselage_length = 202.16
fuselage_diameter = 19.75
fuselage_center_pos = 10, 0, 1.0
elevator_area = 327.0
aileron_area = 225.0
rudder_area = 190.0
elevator_up_limit = 25
elevator_down_limit = 15
aileron_up_limit = 25
aileron_down_limit = 15
rudder_limit = 23
rudder_trim_limit = 20
elevator_trim_limit = 30
spoiler_limit = 60
spoilerons_available = 1
aileron_to_spoileron_gain = 3
min_ailerons_for_spoilerons = 10
min_flaps_for_spoilerons = 0
spoiler_extension_time = 2.0
spoiler_handle_available = 1
auto_spoiler_available = 1
auto_spoiler_auto_retracts = 0
auto_spoiler_min_speed = 72
positive_g_limit_flaps_up = 5.0
positive_g_limit_flaps_down = 4.0
negative_g_limit_flaps_up = -4.0
negative_g_limit_flaps_down = -3.0
load_safety_factor = 1.5
elevator_trim_neutral = -1
aileron_to_rudder_scale = 0
flap_to_aileron_scale = 0
fly_by_wire = 0
elevator_elasticity_table = 0:0.7, 87:0.3, 210:0.5, 315:0.5
aileron_elasticity_table = 0:1, 300:0.7, 600:0.6, 1500:0.4
rudder_elasticity_table = 0:1, 300:1, 800:1, 1000:0.7
elevator_trim_elasticity_table = 0:0.0, 87:0.40, 240:0.60, 295:1.00, 315:1.00
[AERODYNAMICS]
lift_coef_pitch_rate = -8.09375
lift_coef_daoa = 2.68359
lift_coef_delta_elevator = -0.28906
lift_coef_horizontal_incidence = 0.91357
lift_coef_flaps = 1
lift_coef_spoilers = 0
drag_coef_zero_lift = 0.02539
drag_coef_flaps = 0.1339
drag_coef_gear = 0.0549
drag_coef_spoilers = 0.05207
side_force_slip_angle = -0.77392
side_force_roll_rate = 0.15478
side_force_yaw_rate = 0
side_force_delta_rudder = -0.14746
pitch_moment_horizontal_incidence = 4.24755
pitch_moment_delta_elevator = -2.37011
pitch_moment_delta_trim = 0
pitch_moment_pitch_damping = -214.1455
pitch_moment_aoa_0 = 0.11621
pitch_moment_daoa = 8.87255
pitch_moment_flaps = 0.0105
pitch_moment_gear = 0.0171
pitch_moment_spoilers = 0
pitch_moment_delta_elevator_propwash = -2.37011
pitch_moment_pitch_propwash = -214.1455
roll_moment_slip_angle = 0.26855
roll_moment_roll_damping = -3.40869
roll_moment_yaw_rate = -0.27197
roll_moment_spoilers = 0.07
roll_moment_delta_aileron = -0.34521
roll_moment_delta_rudder = 0.01660
roll_moment_delta_aileron_trim_scalar = -0.2
yaw_moment_slip_angle = 0.18066
yaw_moment_roll = 0.07470
yaw_moment_yaw_damping = -2.49023
yaw_moment_yaw_propwash = 0
yaw_moment_delta_aileron = -0.00683
yaw_moment_delta_rudder = 0.07128
yaw_moment_delta_rudder_propwash = 0.075
yaw_moment_delta_rudder_trim_scalar = -0.2
compute_aero_center = 0
aero_center_lift = -13.75
lift_coef_aoa_table = -3.15:0, -2.36:0.36, -1.57:0, -0.349:-1.2, 0:-0.022, 0.0314:0.6082, 0.221:2.049, 0.244:1.15, 0.349:0.6, 0.436:0.5, 0.698:0.1, 1.963:-0.359, 2.356:-0.5, 3.15:0
lift_coef_ground_effect_mach_table = 0.06:0.50, 0.227:0.80, 0.242:0.80, 0.3:1.0, 0.9:1.0
lift_coef_mach_table = 0:1
lift_coef_delta_elevator_mach_table = 0:0
lift_coef_daoa_mach_table = 0:0
lift_coef_pitch_rate_mach_table = 0:0
lift_coef_horizontal_incidence_mach_table = 0:0
drag_coef_zero_lift_mach_tab = 0:0, 0.4:0.0054, 0.5:0.0056, 0.6:0.0059, 0.7:0.0062, 0.72:0.0062, 0.8:0.0063, 0.8:0.0063, 1:0.0337, 1.2:0.0337, 1.4:0.0337, 1.6:0.0337, 1.8:0.0337, 2.0:0.0337
side_force_slip_angle_mach_table = 0:0
side_force_delta_rudder_mach_table = 0:0
side_force_yaw_rate_mach_table = 0:0
side_force_roll_rate_mach_table = 0:0
pitch_moment_aoa_table = -3.15:-2, -0.436:-0.626, -0.262:-0.434, 0:-0.146, 0.087:-0.05, 0.175:0.0466, 0.262:0.143, 0.314:0.2, 0.349:0.1, 0.436:0.15, 3.15:2
pitch_moment_delta_elevator_aoa_table = -180:-1, -40:0.05, -20:0.455, -14:0.853, -7:1.007, 0:1, 7:0.839, 14:0.693, 20:0.381, 40:-0.08, 180:-1
pitch_moment_horizontal_incidence_aoa_table = 0:1
pitch_moment_daoa_aoa_table = 0:1
pitch_moment_pitch_alpha_table = 0:1
pitch_moment_delta_elevator_mach_table = 0:0
pitch_moment_daoa_mach_table = 0:0
pitch_moment_pitch_rate_mach_table = 0:0
pitch_moment_horizontal_incidence_mach_table = 0:0
pitch_moment_aoa_0_mach_table = 0:0
roll_moment_aoa_table = 0:0
roll_moment_slip_angle_aoa_table = 0:1
roll_moment_roll_rate_aoa_table = 0:1
roll_moment_delta_aileron_aoa_table = 0:1
roll_moment_slip_angle_mach_table = 0:0
roll_moment_delta_rudder_mach_table = 0:0
roll_moment_delta_aileron_mach_table = 0:0
roll_moment_yaw_rate_mach_table = 0:0
roll_moment_roll_rate_mach_table = 0:0
yaw_moment_aoa_table = 0:0
yaw_moment_slip_angle_aoa_table = 0:1
yaw_moment_yaw_rate_aoa_table = 0:1
yaw_moment_delta_rudder_aoa_table = 0:1
yaw_moment_slip_angle_mach_table = 0:0
yaw_moment_delta_rudder_mach_table = 0:0
yaw_moment_delta_aileron_mach_table = 0:0
yaw_moment_yaw_rate_mach_table = 0:0
yaw_moment_roll_rate_mach_table = 0:0
elevator_scaling_table = -0.785:0.5, -0.524:0.85, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.85, 0.785:0.5 ; 0:1
aileron_scaling_table = -0.785:1 ;0:1
rudder_scaling_table = -0.785:0.5, -0.524:0.6, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.6, 0.785:0.5 ;0:1
elevator_lift_coef=3
rudder_lift_coef=2
aileron_load_factor_effectiveness_table = 0:1
lift_coef_at_drag_zero = 0.1
lift_coef_at_drag_zero_flaps = 0.1
[FLIGHT_TUNING]
modern_fm_only = 1
cruise_lift_scalar = 1
parasite_drag_scalar = 1
induced_drag_scalar = 1
flap_induced_drag_scalar = 1
elevator_effectiveness = 1.1
elevator_maxangle_scalar = 1
aileron_effectiveness = 1
rudder_effectiveness = 1
rudder_maxangle_scalar = 1
pitch_stability = 5
roll_stability = 1
yaw_stability = 1
pitch_gyro_stability = 1
roll_gyro_stability = 1
yaw_gyro_stability = 1
empty_CG_deviation_limit=0
elevator_trim_effectiveness = 1.5
aileron_trim_effectiveness = 1
rudder_trim_effectiveness = 1
hi_alpha_on_roll = 0
hi_alpha_on_yaw = 0
p_factor_on_yaw = 0
torque_on_roll = 0
gyro_precession_on_roll = 0
gyro_precession_on_yaw = 0
engine_wash_on_roll = 0
wingflex_scalar = 2
wingflex_offset = 0
stall_coef_at_min_weight = 0.71
ground_crosswind_effect_zero_speed=10
ground_crosswind_effect_max_speed=150
ground_high_speed_steeringwheel_static_friction_scalar=1.5
ground_high_speed_otherwheel_static_friction_scalar=1.2
[REFERENCE SPEEDS]
full_flaps_stall_speed = 115
flaps_up_stall_speed = 149
cruise_speed = 345
cruise_mach = 0.85
crossover_speed = 330
max_mach = 0.9
max_indicated_speed = 395
max_flaps_extended = 170
normal_operating_speed = 325
airspeed_indicator_max = 562.5
rotation_speed_min = 145
climb_speed = 250
cruise_alt = 41000
takeoff_speed = 165
spawn_cruise_altitude = 5000
spawn_descent_altitude = 500
best_angle_climb_speed = 0
approach_speed = 0
best_glide = 0
max_gear_extended = 200
[INTERACTIVE POINTS]
number_of_interactive_points = 13
interactive_point.0 = 0.4,75.650002,-7.92,-0.567,2,0,0,-75,33,2,33,2,2,33,-1
interactive_point.1 = 0.4,75.650002,7.92,-0.567,0,0,0,75,33,2,33,2,2,33,-1
interactive_point.2 = 0.4,33.299999,6.28,-7.18,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.3 = 0.4,-51.700363,6.28,-7.180745,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.4 = 0.4,-68.277824,-2.822939,-5.923376,1,2.395636,12.258935,79.089348,0,0,0,0,0,0,-1
interactive_point.5 = 0,85.062134,-3.882079,4.412694,2,-0,-29.85655,42.814491,0,0,0,0,0,0,-1
interactive_point.6 = 0,85.062134,3.882079,4.412694,2,-0,29.85655,-42.814491,0,0,0,0,0,0,-1
interactive_point.7 = 0.4,44.150002,-10.05,-0.567,0,0,0,-88,35,0,35,0,2,33,-1
interactive_point.8 = 0.4,44.150002,10.05,-0.567,0,0,0,88,35,0,35,0,2,33,-1
interactive_point.9 = 0.4,-2.869313,-10.049908,-0.566572,0,0,0,-90,35,0,35,0,2,33,-1
interactive_point.10 = 0.4,-2.869313,10.049908,-0.566572,0,0,0,90,35,0,35,0,2,33,-1
interactive_point.11 = 0.4,-62.995712,-8.519092,-0.565611,0,0,0,-100,35,0,35,0,2,33,-1
interactive_point.12 = 0.4,-62.995712,8.519092,-0.565611,0,0,0,100,35,0,35,0,2,33,-1
[STALL PROTECTION]
stall_protection = 1 ; Alpha Protection
off_limit = 11.5 ; Alpha below which the Alpha Protection can be disabled (If also below off_yoke_limit)
off_yoke_limit = 1 ; Yoke position (in Pct) below which the Alpha Protection can be disabled (If also below off_limit)
on_limit = 14 ; Alpha above which the Alpha Protection timer starts
on_goal = 10 ; The alpha that the Alpha Protection will attempt to reach when triggered
timer_trigger = 1.0 ; Duration (in Sec) the alpha must be above on_limit before the Alpha Protection is triggered
;===================== FLAPS =====================
[FLAPS.0]
type = 1
system_type = 1
span-outboard = 0.25
extending-time = 22
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.1]
type = 1
system_type = 1
span-outboard = 0.7
extending-time = 23
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.2]
type = 2
system_type = 1
span-outboard = 0.2
extending-time = 8
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
[FLAPS.3]
type = 2
system_type = 1
span-outboard = 0.7
extending-time = 21
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
@@ -0,0 +1,418 @@
//TFDi Designs MD-11 (GE CF6-80C2D1F) vRC1.8.0_GE 04FEB26
[VERSION]
//KH Bump major
major = 4
minor = 8
[WEIGHT_AND_BALANCE]
max_gross_weight = 630500
empty_weight = 283975
reference_datum_position = 0, 0, 0
empty_weight_CG_position = -10.0, 0, 0
CG_forward_limit = 0.12
CG_aft_limit = 0.34
empty_weight_pitch_MOI = 20897456
empty_weight_roll_MOI = 6368555
empty_weight_yaw_MOI = 40761191
empty_weight_coupled_MOI = 0
activate_mach_limit_based_on_cg = 0
activate_cg_limit_based_on_mach = 0
max_number_of_stations = 21
//KH START Empty default
station_load.0=190, 82.0, -2.0, 4.0, Pilot, 1
station_load.1=190, 82.0, 2.0, 4.0, First Officer, 2
station_load.2=190, 80.0, 3.3, 4.0, Engineer, 0
station_load.3=760, 66.0, 0.0, 4.0, Cabin crew 1, 0
station_load.4=0, 45.0, -5.0, 4.0, Business 1 L, 4
station_load.5=0, 45.0, 0.0, 4.0, Business 1 C, 4
station_load.6=0, 45.0, 5.0, 4.0, Business 1 R, 4
station_load.7=0, 25.0, -5.0, 4.0, Business 2 L, 4
station_load.8=0, 25.0, 0.0, 4.0, Business 2 C, 4
station_load.9=0, 25.0, 5.0, 4.0, Business 2 R, 4
station_load.10=0, -20.0, -5.0, 4.0, Economy 3 L, 3
station_load.11=0, -20.0, 0.0, 4.0, Economy 3 C, 3
station_load.12=0, -20.0, 5.0, 4.0, Economy 3 R, 3
station_load.13=0, -50.0, -5.0, 4.0, Economy 4 L, 5
station_load.14=0, -50.0, 0.0, 4.0, Economy 4 C, 5
station_load.15=0, -50.0, 5.0, 4.0, Economy 4 R, 5
station_load.16=760, -55.0, 0.0, 4.0, Cabin crew 2, 0
station_load.17=0, 30.0, 0.0, -4.5, Forward cargo, 6
station_load.18=0, -30.0, 0.0, -4.5, Rear cargo, 6
station_load.19=0, 5.0, -2.0, -4.5, Left aux tank, 0
station_load.20=0, 5.0, 2.0, -4.5, Right aux tank, 0
//KH END
[CONTACT_POINTS]
static_pitch = 0
static_cg_height = 16.4
gear_system_type = 1
tailwheel_lock = 0
max_number_of_points = 16
gear_locked_on_ground = 0
gear_locked_above_speed = -1
max_speed_full_steering = 25
min_available_steering_angle_pct = 0.2
max_speed_decreasing_steering = 45
max_speed_full_steering_castering = 20
max_speed_decreasing_steering_castering = 35
emergency_extension_type = 2
hyd_need_power_to_function= 0
min_castering_angle = 0.05236
max_castering_angle = 3.142
allow_stopped_steering = 1
point.0 = 1, 64.22, 0.00, -17.31, 1500, 0, 1.67, 70, 1.15, 1.183, 0.9, 49, 50, 0, 200, 250, 8
point.1 = 1, -19.00, -17.15, -18.02, 2000, 1, 2.25, 0, 1.60, 1.116, 0.9, 51, 52, 2, 200, 250, 8
point.2 = 1, -19.00, 17.15, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 53, 54, 3, 200, 250, 8
point.3 = 1, -19.00, 0.00, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 55, 56, 3, 200, 250, 8
point.4 = 2, 93.0, 0.0, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.5 = 2, -48, -82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 5, 0, 0, 1
point.6 = 2, -48, 82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 6, 0, 0, 1
point.7 = 2, 60, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.8 = 2, 60, 0.0, 11.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.9 = 2, 16.0, -28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.10 = 2, 16.0, 28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.11 = 2, -110.0, 0.00, 14.20, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.12 = 2, -96.5, 0.0, 42.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.13 = 2, -94.5, -30.0, 8.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.14 = 2, -94.5, 30.0, 8.05, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.15 = 2, -52.0, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
[FUEL]
LeftMain = -20.00, -38.00, -1.0, 8938, 10.00
RightMain = -20.00, 38.00, -1.0, 8938, 10.00
Center1 = 10.00, 0.00, -3.00, 13000.00, 10.00
Center2 = 0.00, 0.00, -1.00, 1642.00, 10.00
Center3 = 0.00, 0.00, -5.00, 1958.00, 11.00
LeftTip = -39.00, -74.00, 0.00, 884.00, 10.00
RightTip = -39.00, 74.00, 0.00, 884.00, 10.00
External1 = -70.00, 0.00, -3.00, 2371.00, 10.00
//KH From 5.00, -2.00, -3.00, 0.00, 10.00
LeftAux = 5.00, -2.00, -3.00, 1973.00, 10.00
//KH From 5.00, 2.00, -3.00, 0.00, 10.0
RightAux = 5.00, 2.00, -3.00, 1973.00, 10.00
fuel_type = 2
number_of_tank_selectors = 3
electric_pump = 0
engine_driven_pump = 1
manual_transfer_pump = 0
manual_pump = 0
anemometer_pump = 0
fuel_dump_rate = 0.02
default_fuel_tank_selector.1 = 1
default_fuel_tank_selector.2 = 1
default_fuel_tank_selector.3 = 1
[AIRPLANE_GEOMETRY]
wing_area = 3648
wing_span = 170.5
wing_root_chord = 34.68
wing_camber = 1
wing_thickness_ratio = 0.04
wing_dihedral = 2.2
wing_incidence = 1.5
wing_twist = -0.5
oswald_efficiency_factor = 0.72
wing_winglets_flag = 1
wing_sweep = 38
wing_pos_apex_lon = 1
wing_pos_apex_vert = -2.75
htail_area = 920
htail_span = 59.5
htail_pos_lon = -88
htail_pos_vert = 5.0
htail_incidence = 0.8
htail_sweep = 36.5
htail_thickness_ratio = 0.02
vtail_area = 760
vtail_span = 28.1
vtail_sweep = 43
vtail_pos_lon = -79.5
vtail_pos_vert = 28
vtail_thickness_ratio = 0.03
fuselage_length = 202.16
fuselage_diameter = 19.75
fuselage_center_pos = 10, 0, 1.0
elevator_area = 327.0
aileron_area = 225.0
rudder_area = 190.0
elevator_up_limit = 25
elevator_down_limit = 15
aileron_up_limit = 25
aileron_down_limit = 15
rudder_limit = 23
rudder_trim_limit = 20
elevator_trim_limit = 30
spoiler_limit = 60
spoilerons_available = 1
aileron_to_spoileron_gain = 3
min_ailerons_for_spoilerons = 10
min_flaps_for_spoilerons = 0
spoiler_extension_time = 2.0
spoiler_handle_available = 1
auto_spoiler_available = 1
auto_spoiler_auto_retracts = 0
auto_spoiler_min_speed = 72
positive_g_limit_flaps_up = 5.0
positive_g_limit_flaps_down = 4.0
negative_g_limit_flaps_up = -4.0
negative_g_limit_flaps_down = -3.0
load_safety_factor = 1.5
elevator_trim_neutral = -1
aileron_to_rudder_scale = 0
flap_to_aileron_scale = 0
fly_by_wire = 0
elevator_elasticity_table = 0:0.7, 87:0.3, 210:0.5, 315:0.5
aileron_elasticity_table = 0:1, 300:0.7, 600:0.6, 1500:0.4
rudder_elasticity_table = 0:1, 300:1, 800:1, 1000:0.7
elevator_trim_elasticity_table = 0:0.0, 87:0.40, 240:0.60, 295:1.00, 315:1.00
[AERODYNAMICS]
lift_coef_pitch_rate = -8.09375
lift_coef_daoa = 2.68359
lift_coef_delta_elevator = -0.28906
lift_coef_horizontal_incidence = 0.91357
lift_coef_flaps = 1
lift_coef_spoilers = 0
drag_coef_zero_lift = 0.02539
drag_coef_flaps = 0.1339
drag_coef_gear = 0.0549
drag_coef_spoilers = 0.05207
side_force_slip_angle = -0.77392
side_force_roll_rate = 0.15478
side_force_yaw_rate = 0
side_force_delta_rudder = -0.14746
pitch_moment_horizontal_incidence = 4.24755
pitch_moment_delta_elevator = -2.37011
pitch_moment_delta_trim = 0
pitch_moment_pitch_damping = -214.1455
pitch_moment_aoa_0 = 0.11621
pitch_moment_daoa = 8.87255
pitch_moment_flaps = 0.0105
pitch_moment_gear = 0.0171
pitch_moment_spoilers = 0
pitch_moment_delta_elevator_propwash = -2.37011
pitch_moment_pitch_propwash = -214.1455
roll_moment_slip_angle = 0.26855
roll_moment_roll_damping = -3.40869
roll_moment_yaw_rate = -0.27197
roll_moment_spoilers = 0.07
roll_moment_delta_aileron = -0.34521
roll_moment_delta_rudder = 0.01660
roll_moment_delta_aileron_trim_scalar = -0.2
yaw_moment_slip_angle = 0.18066
yaw_moment_roll = 0.07470
yaw_moment_yaw_damping = -2.49023
yaw_moment_yaw_propwash = 0
yaw_moment_delta_aileron = -0.00683
yaw_moment_delta_rudder = 0.07128
yaw_moment_delta_rudder_propwash = 0.075
yaw_moment_delta_rudder_trim_scalar = -0.2
compute_aero_center = 0
aero_center_lift = -13.75
lift_coef_aoa_table = -3.15:0, -2.36:0.36, -1.57:0, -0.349:-1.2, 0:-0.022, 0.0314:0.6082, 0.221:2.049, 0.244:1.15, 0.349:0.6, 0.436:0.5, 0.698:0.1, 1.963:-0.359, 2.356:-0.5, 3.15:0
lift_coef_ground_effect_mach_table = 0.06:0.50, 0.227:0.80, 0.242:0.80, 0.3:1.0, 0.9:1.0
lift_coef_mach_table = 0:1
lift_coef_delta_elevator_mach_table = 0:0
lift_coef_daoa_mach_table = 0:0
lift_coef_pitch_rate_mach_table = 0:0
lift_coef_horizontal_incidence_mach_table = 0:0
drag_coef_zero_lift_mach_tab = 0:0, 0.4:0.0054, 0.5:0.0056, 0.6:0.0059, 0.7:0.0062, 0.72:0.0062, 0.8:0.0063, 0.8:0.0063, 1:0.0337, 1.2:0.0337, 1.4:0.0337, 1.6:0.0337, 1.8:0.0337, 2.0:0.0337
side_force_slip_angle_mach_table = 0:0
side_force_delta_rudder_mach_table = 0:0
side_force_yaw_rate_mach_table = 0:0
side_force_roll_rate_mach_table = 0:0
pitch_moment_aoa_table = -3.15:-2, -0.436:-0.626, -0.262:-0.434, 0:-0.146, 0.087:-0.05, 0.175:0.0466, 0.262:0.143, 0.314:0.2, 0.349:0.1, 0.436:0.15, 3.15:2
pitch_moment_delta_elevator_aoa_table = -180:-1, -40:0.05, -20:0.455, -14:0.853, -7:1.007, 0:1, 7:0.839, 14:0.693, 20:0.381, 40:-0.08, 180:-1
pitch_moment_horizontal_incidence_aoa_table = 0:1
pitch_moment_daoa_aoa_table = 0:1
pitch_moment_pitch_alpha_table = 0:1
pitch_moment_delta_elevator_mach_table = 0:0
pitch_moment_daoa_mach_table = 0:0
pitch_moment_pitch_rate_mach_table = 0:0
pitch_moment_horizontal_incidence_mach_table = 0:0
pitch_moment_aoa_0_mach_table = 0:0
roll_moment_aoa_table = 0:0
roll_moment_slip_angle_aoa_table = 0:1
roll_moment_roll_rate_aoa_table = 0:1
roll_moment_delta_aileron_aoa_table = 0:1
roll_moment_slip_angle_mach_table = 0:0
roll_moment_delta_rudder_mach_table = 0:0
roll_moment_delta_aileron_mach_table = 0:0
roll_moment_yaw_rate_mach_table = 0:0
roll_moment_roll_rate_mach_table = 0:0
yaw_moment_aoa_table = 0:0
yaw_moment_slip_angle_aoa_table = 0:1
yaw_moment_yaw_rate_aoa_table = 0:1
yaw_moment_delta_rudder_aoa_table = 0:1
yaw_moment_slip_angle_mach_table = 0:0
yaw_moment_delta_rudder_mach_table = 0:0
yaw_moment_delta_aileron_mach_table = 0:0
yaw_moment_yaw_rate_mach_table = 0:0
yaw_moment_roll_rate_mach_table = 0:0
elevator_scaling_table = -0.785:0.5, -0.524:0.85, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.85, 0.785:0.5 ; 0:1
aileron_scaling_table = -0.785:1 ;0:1
rudder_scaling_table = -0.785:0.5, -0.524:0.6, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.6, 0.785:0.5 ;0:1
elevator_lift_coef=3
rudder_lift_coef=2
aileron_load_factor_effectiveness_table = 0:1
lift_coef_at_drag_zero = 0.1
lift_coef_at_drag_zero_flaps = 0.1
[FLIGHT_TUNING]
modern_fm_only = 1
cruise_lift_scalar = 1
parasite_drag_scalar = 1
induced_drag_scalar = 1
flap_induced_drag_scalar = 1
elevator_effectiveness = 1.1
elevator_maxangle_scalar = 1
aileron_effectiveness = 1
rudder_effectiveness = 1
rudder_maxangle_scalar = 1
pitch_stability = 5
roll_stability = 1
yaw_stability = 1
pitch_gyro_stability = 1
roll_gyro_stability = 1
yaw_gyro_stability = 1
empty_CG_deviation_limit=0
elevator_trim_effectiveness = 1.5
aileron_trim_effectiveness = 1
rudder_trim_effectiveness = 1
hi_alpha_on_roll = 0
hi_alpha_on_yaw = 0
p_factor_on_yaw = 0
torque_on_roll = 0
gyro_precession_on_roll = 0
gyro_precession_on_yaw = 0
engine_wash_on_roll = 0
wingflex_scalar = 2
wingflex_offset = 0
stall_coef_at_min_weight = 0.71
ground_crosswind_effect_zero_speed=10
ground_crosswind_effect_max_speed=150
ground_high_speed_steeringwheel_static_friction_scalar=1.5
ground_high_speed_otherwheel_static_friction_scalar=1.2
[REFERENCE SPEEDS]
full_flaps_stall_speed = 115
flaps_up_stall_speed = 149
cruise_speed = 345
cruise_mach = 0.85
crossover_speed = 330
max_mach = 0.9
max_indicated_speed = 395
max_flaps_extended = 170
normal_operating_speed = 325
airspeed_indicator_max = 562.5
rotation_speed_min = 145
climb_speed = 250
cruise_alt = 41000
takeoff_speed = 165
spawn_cruise_altitude = 5000
spawn_descent_altitude = 500
best_angle_climb_speed = 0
approach_speed = 0
best_glide = 0
max_gear_extended = 200
[INTERACTIVE POINTS]
number_of_interactive_points = 13
interactive_point.0 = 0.4,75.650002,-7.92,-0.567,2,0,0,-75,33,2,33,2,2,33,-1
interactive_point.1 = 0.4,75.650002,7.92,-0.567,0,0,0,75,33,2,33,2,2,33,-1
interactive_point.2 = 0.4,33.299999,6.28,-7.18,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.3 = 0.4,-51.700363,6.28,-7.180745,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.4 = 0.4,-68.277824,-2.822939,-5.923376,1,2.395636,12.258935,79.089348,0,0,0,0,0,0,-1
interactive_point.5 = 0,85.062134,-3.882079,4.412694,2,-0,-29.85655,42.814491,0,0,0,0,0,0,-1
interactive_point.6 = 0,85.062134,3.882079,4.412694,2,-0,29.85655,-42.814491,0,0,0,0,0,0,-1
interactive_point.7 = 0.4,44.150002,-10.05,-0.567,0,0,0,-88,35,0,35,0,2,33,-1
interactive_point.8 = 0.4,44.150002,10.05,-0.567,0,0,0,88,35,0,35,0,2,33,-1
interactive_point.9 = 0.4,-2.869313,-10.049908,-0.566572,0,0,0,-90,35,0,35,0,2,33,-1
interactive_point.10 = 0.4,-2.869313,10.049908,-0.566572,0,0,0,90,35,0,35,0,2,33,-1
interactive_point.11 = 0.4,-62.995712,-8.519092,-0.565611,0,0,0,-100,35,0,35,0,2,33,-1
interactive_point.12 = 0.4,-62.995712,8.519092,-0.565611,0,0,0,100,35,0,35,0,2,33,-1
[STALL PROTECTION]
stall_protection = 1 ; Alpha Protection
off_limit = 11.5 ; Alpha below which the Alpha Protection can be disabled (If also below off_yoke_limit)
off_yoke_limit = 1 ; Yoke position (in Pct) below which the Alpha Protection can be disabled (If also below off_limit)
on_limit = 14 ; Alpha above which the Alpha Protection timer starts
on_goal = 10 ; The alpha that the Alpha Protection will attempt to reach when triggered
timer_trigger = 1.0 ; Duration (in Sec) the alpha must be above on_limit before the Alpha Protection is triggered
;===================== FLAPS =====================
[FLAPS.0]
type = 1
system_type = 1
span-outboard = 0.25
extending-time = 22
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.1]
type = 1
system_type = 1
span-outboard = 0.7
extending-time = 23
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.2]
type = 2
system_type = 1
span-outboard = 0.2
extending-time = 8
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
[FLAPS.3]
type = 2
system_type = 1
span-outboard = 0.7
extending-time = 21
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
@@ -0,0 +1,417 @@
; TFDi Designs MD-11 (PW4462) vRC1.8.0_PW 04FEB26
[MODULAR_MERGE]
auto = true
[VERSION]
//KH Bump major
major = 4
minor = 8
[WEIGHT_AND_BALANCE]
max_gross_weight = 630500
empty_weight = 283975
reference_datum_position = 0, 0, 0
empty_weight_CG_position = -10.0, 0, 0
CG_forward_limit = 0.12
CG_aft_limit = 0.34
empty_weight_pitch_MOI = 20897456
empty_weight_roll_MOI = 6368555
empty_weight_yaw_MOI = 40761191
empty_weight_coupled_MOI = 0
activate_mach_limit_based_on_cg = 0
activate_cg_limit_based_on_mach = 0
max_number_of_stations = 21
//KH START Empty default
station_load.0=190, 82.0, -2.0, 4.0, Pilot, 1
station_load.1=190, 82.0, 2.0, 4.0, First Officer, 2
station_load.2=190, 80.0, 3.3, 4.0, Engineer, 0
station_load.3=760, 66.0, 0.0, 4.0, Cabin crew 1, 0
station_load.4=0, 45.0, -5.0, 4.0, Business 1 L, 4
station_load.5=0, 45.0, 0.0, 4.0, Business 1 C, 4
station_load.6=0, 45.0, 5.0, 4.0, Business 1 R, 4
station_load.7=0, 25.0, -5.0, 4.0, Business 2 L, 4
station_load.8=0, 25.0, 0.0, 4.0, Business 2 C, 4
station_load.9=0, 25.0, 5.0, 4.0, Business 2 R, 4
station_load.10=0, -20.0, -5.0, 4.0, Economy 3 L, 3
station_load.11=0, -20.0, 0.0, 4.0, Economy 3 C, 3
station_load.12=0, -20.0, 5.0, 4.0, Economy 3 R, 3
station_load.13=0, -50.0, -5.0, 4.0, Economy 4 L, 5
station_load.14=0, -50.0, 0.0, 4.0, Economy 4 C, 5
station_load.15=0, -50.0, 5.0, 4.0, Economy 4 R, 5
station_load.16=760, -55.0, 0.0, 4.0, Cabin crew 2, 0
station_load.17=0, 30.0, 0.0, -4.5, Forward cargo, 6
station_load.18=0, -30.0, 0.0, -4.5, Rear cargo, 6
station_load.19=0, 5.0, -2.0, -4.5, Left aux tank, 0
station_load.20=0, 5.0, 2.0, -4.5, Right aux tank, 0
//KH END
[CONTACT_POINTS]
static_pitch = 0
static_cg_height = 16.4
gear_system_type = 1
tailwheel_lock = 0
max_number_of_points = 16
gear_locked_on_ground = 0
gear_locked_above_speed = -1
max_speed_full_steering = 25
min_available_steering_angle_pct = 0.2
max_speed_decreasing_steering = 45
max_speed_full_steering_castering = 20
max_speed_decreasing_steering_castering = 35
emergency_extension_type = 2
hyd_need_power_to_function= 0
min_castering_angle = 0.05236
max_castering_angle = 3.142
allow_stopped_steering = 1
point.0 = 1, 64.22, 0.00, -17.31, 1500, 0, 1.67, 70, 1.15, 1.183, 0.9, 49, 50, 0, 200, 250, 8
point.1 = 1, -19.00, -17.15, -18.02, 2000, 1, 2.25, 0, 1.60, 1.116, 0.9, 51, 52, 2, 200, 250, 8
point.2 = 1, -19.00, 17.15, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 53, 54, 3, 200, 250, 8
point.3 = 1, -19.00, 0.00, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 55, 56, 3, 200, 250, 8
point.4 = 2, 93.0, 0.0, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.5 = 2, -48, -82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 5, 0, 0, 1
point.6 = 2, -48, 82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 6, 0, 0, 1
point.7 = 2, 60, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.8 = 2, 60, 0.0, 11.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.9 = 2, 16.0, -28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.10 = 2, 16.0, 28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.11 = 2, -110.0, 0.00, 14.20, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.12 = 2, -96.5, 0.0, 42.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.13 = 2, -94.5, -30.0, 8.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.14 = 2, -94.5, 30.0, 8.05, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.15 = 2, -52.0, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
[FUEL]
LeftMain = -20.00, -38.00, -1.0, 8938, 10.00
RightMain = -20.00, 38.00, -1.0, 8938, 10.00
Center1 = 10.00, 0.00, -3.00, 13000.00, 10.00
Center2 = 0.00, 0.00, -1.00, 1642.00, 10.00
Center3 = 0.00, 0.00, -5.00, 1958.00, 11.00
LeftTip = -39.00, -74.00, 0.00, 884.00, 10.00
RightTip = -39.00, 74.00, 0.00, 884.00, 10.00
External1 = -70.00, 0.00, -3.00, 2371.00, 10.00
LeftAux = 5.00, -2.00, -3.00, 1973.00, 10.00
RightAux = 5.00, 2.00, -3.00, 1973.00, 10.00
fuel_type = 2
number_of_tank_selectors = 3
electric_pump = 0
engine_driven_pump = 1
manual_transfer_pump = 0
manual_pump = 0
anemometer_pump = 0
fuel_dump_rate = 0.02
default_fuel_tank_selector.1 = 1
default_fuel_tank_selector.2 = 1
default_fuel_tank_selector.3 = 1
[AIRPLANE_GEOMETRY]
wing_area = 3648
wing_span = 170.5
wing_root_chord = 34.68
wing_camber = 1
wing_thickness_ratio = 0.04
wing_dihedral = 2.2
wing_incidence = 1.5
wing_twist = -0.5
oswald_efficiency_factor = 0.72
wing_winglets_flag = 1
wing_sweep = 38
wing_pos_apex_lon = 1
wing_pos_apex_vert = -2.75
htail_area = 920
htail_span = 59.5
htail_pos_lon = -88
htail_pos_vert = 5.0
htail_incidence = 0.8
htail_sweep = 36.5
htail_thickness_ratio = 0.02
vtail_area = 760
vtail_span = 28.1
vtail_sweep = 43
vtail_pos_lon = -79.5
vtail_pos_vert = 28
vtail_thickness_ratio = 0.03
fuselage_length = 200.92
fuselage_diameter = 19.75
fuselage_center_pos = 10, 0, 1.0
elevator_area = 327.0
aileron_area = 225.0
rudder_area = 190.0
elevator_up_limit = 25
elevator_down_limit = 15
aileron_up_limit = 25
aileron_down_limit = 15
rudder_limit = 23
rudder_trim_limit = 20
elevator_trim_limit = 30
spoiler_limit = 60
spoilerons_available = 1
aileron_to_spoileron_gain = 3
min_ailerons_for_spoilerons = 10
min_flaps_for_spoilerons = 0
spoiler_extension_time = 2.0
spoiler_handle_available = 1
auto_spoiler_available = 1
auto_spoiler_auto_retracts = 0
auto_spoiler_min_speed = 72
positive_g_limit_flaps_up = 5.0
positive_g_limit_flaps_down = 4.0
negative_g_limit_flaps_up = -4.0
negative_g_limit_flaps_down = -3.0
load_safety_factor = 1.5
elevator_trim_neutral = -1
aileron_to_rudder_scale = 0
flap_to_aileron_scale = 0
fly_by_wire = 0
elevator_elasticity_table = 0:0.7, 87:0.3, 210:0.5, 315:0.5
aileron_elasticity_table = 0:1, 300:0.7, 600:0.6, 1500:0.4
rudder_elasticity_table = 0:1, 300:1, 800:1, 1000:0.7
elevator_trim_elasticity_table = 0:0.0, 87:0.40, 240:0.60, 295:1.00, 315:1.00
[AERODYNAMICS]
lift_coef_pitch_rate = -8.09375
lift_coef_daoa = 2.68359
lift_coef_delta_elevator = -0.28906
lift_coef_horizontal_incidence = 0.91357
lift_coef_flaps = 1
lift_coef_spoilers = 0
drag_coef_zero_lift = 0.02539
drag_coef_flaps = 0.1339
drag_coef_gear = 0.0549
drag_coef_spoilers = 0.05207
side_force_slip_angle = -0.77392
side_force_roll_rate = 0.15478
side_force_yaw_rate = 0
side_force_delta_rudder = -0.14746
pitch_moment_horizontal_incidence = 4.24755
pitch_moment_delta_elevator = -2.37011
pitch_moment_delta_trim = 0
pitch_moment_pitch_damping = -214.1455
pitch_moment_aoa_0 = 0.11621
pitch_moment_daoa = 8.87255
pitch_moment_flaps = 0.0105
pitch_moment_gear = 0.0171
pitch_moment_spoilers = 0
pitch_moment_delta_elevator_propwash = -2.37011
pitch_moment_pitch_propwash = -214.1455
roll_moment_slip_angle = 0.26855
roll_moment_roll_damping = -3.40869
roll_moment_yaw_rate = -0.27197
roll_moment_spoilers = 0.07
roll_moment_delta_aileron = -0.34521
roll_moment_delta_rudder = 0.01660
roll_moment_delta_aileron_trim_scalar = -0.2
yaw_moment_slip_angle = 0.18066
yaw_moment_roll = 0.07470
yaw_moment_yaw_damping = -2.49023
yaw_moment_yaw_propwash = 0
yaw_moment_delta_aileron = -0.00683
yaw_moment_delta_rudder = 0.07128
yaw_moment_delta_rudder_propwash = 0.075
yaw_moment_delta_rudder_trim_scalar = -0.2
compute_aero_center = 0
aero_center_lift = -13.75
lift_coef_aoa_table = -3.15:0, -2.36:0.36, -1.57:0, -0.349:-1.2, 0:-0.022, 0.0314:0.6082, 0.221:2.049, 0.244:1.15, 0.349:0.6, 0.436:0.5, 0.698:0.1, 1.963:-0.359, 2.356:-0.5, 3.15:0
lift_coef_ground_effect_mach_table = 0.06:0.50, 0.227:0.80, 0.242:0.80, 0.3:1.0, 0.9:1.0
lift_coef_mach_table = 0:1
lift_coef_delta_elevator_mach_table = 0:0
lift_coef_daoa_mach_table = 0:0
lift_coef_pitch_rate_mach_table = 0:0
lift_coef_horizontal_incidence_mach_table = 0:0
drag_coef_zero_lift_mach_tab = 0:0, 0.4:0.0054, 0.5:0.0056, 0.6:0.0059, 0.7:0.0062, 0.72:0.0062, 0.8:0.0063, 0.8:0.0063, 1:0.0337, 1.2:0.0337, 1.4:0.0337, 1.6:0.0337, 1.8:0.0337, 2.0:0.0337
side_force_slip_angle_mach_table = 0:0
side_force_delta_rudder_mach_table = 0:0
side_force_yaw_rate_mach_table = 0:0
side_force_roll_rate_mach_table = 0:0
pitch_moment_aoa_table = -3.15:-2, -0.436:-0.626, -0.262:-0.434, 0:-0.146, 0.087:-0.05, 0.175:0.0466, 0.262:0.143, 0.314:0.2, 0.349:0.1, 0.436:0.15, 3.15:2
pitch_moment_delta_elevator_aoa_table = -180:-1, -40:0.05, -20:0.455, -14:0.853, -7:1.007, 0:1, 7:0.839, 14:0.693, 20:0.381, 40:-0.08, 180:-1
pitch_moment_horizontal_incidence_aoa_table = 0:1
pitch_moment_daoa_aoa_table = 0:1
pitch_moment_pitch_alpha_table = 0:1
pitch_moment_delta_elevator_mach_table = 0:0
pitch_moment_daoa_mach_table = 0:0
pitch_moment_pitch_rate_mach_table = 0:0
pitch_moment_horizontal_incidence_mach_table = 0:0
pitch_moment_aoa_0_mach_table = 0:0
roll_moment_aoa_table = 0:0
roll_moment_slip_angle_aoa_table = 0:1
roll_moment_roll_rate_aoa_table = 0:1
roll_moment_delta_aileron_aoa_table = 0:1
roll_moment_slip_angle_mach_table = 0:0
roll_moment_delta_rudder_mach_table = 0:0
roll_moment_delta_aileron_mach_table = 0:0
roll_moment_yaw_rate_mach_table = 0:0
roll_moment_roll_rate_mach_table = 0:0
yaw_moment_aoa_table = 0:0
yaw_moment_slip_angle_aoa_table = 0:1
yaw_moment_yaw_rate_aoa_table = 0:1
yaw_moment_delta_rudder_aoa_table = 0:1
yaw_moment_slip_angle_mach_table = 0:0
yaw_moment_delta_rudder_mach_table = 0:0
yaw_moment_delta_aileron_mach_table = 0:0
yaw_moment_yaw_rate_mach_table = 0:0
yaw_moment_roll_rate_mach_table = 0:0
elevator_scaling_table = -0.785:0.5, -0.524:0.85, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.85, 0.785:0.5 ; 0:1
aileron_scaling_table = -0.785:1 ;0:1
rudder_scaling_table = -0.785:0.5, -0.524:0.6, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.6, 0.785:0.5 ;0:1
elevator_lift_coef=3
rudder_lift_coef=2
aileron_load_factor_effectiveness_table = 0:1
lift_coef_at_drag_zero = 0.1
lift_coef_at_drag_zero_flaps = 0.1
[FLIGHT_TUNING]
modern_fm_only = 1
cruise_lift_scalar = 1
parasite_drag_scalar = 1
induced_drag_scalar = 1
flap_induced_drag_scalar = 1
elevator_effectiveness = 1.1
elevator_maxangle_scalar = 1
aileron_effectiveness = 1
rudder_effectiveness = 1
rudder_maxangle_scalar = 1
pitch_stability = 5
roll_stability = 1
yaw_stability = 1
pitch_gyro_stability = 1
roll_gyro_stability = 1
yaw_gyro_stability = 1
empty_CG_deviation_limit=0
elevator_trim_effectiveness = 1.5
aileron_trim_effectiveness = 1
rudder_trim_effectiveness = 1
hi_alpha_on_roll = 0
hi_alpha_on_yaw = 0
p_factor_on_yaw = 0
torque_on_roll = 0
gyro_precession_on_roll = 0
gyro_precession_on_yaw = 0
engine_wash_on_roll = 0
wingflex_scalar = 2
wingflex_offset = 0
stall_coef_at_min_weight = 0.71
ground_crosswind_effect_zero_speed=10
ground_crosswind_effect_max_speed=150
ground_high_speed_steeringwheel_static_friction_scalar=1.5
ground_high_speed_otherwheel_static_friction_scalar=1.2
[REFERENCE SPEEDS]
full_flaps_stall_speed = 115
flaps_up_stall_speed = 149
cruise_speed = 345
cruise_mach = 0.85
crossover_speed = 330
max_mach = 0.9
max_indicated_speed = 395
max_flaps_extended = 170
normal_operating_speed = 325
airspeed_indicator_max = 562.5
rotation_speed_min = 145
climb_speed = 250
cruise_alt = 41000
takeoff_speed = 165
spawn_cruise_altitude = 5000
spawn_descent_altitude = 500
best_angle_climb_speed = 0
approach_speed = 0
best_glide = 0
max_gear_extended = 200
[INTERACTIVE POINTS]
number_of_interactive_points = 13
interactive_point.0 = 0.4,75.650002,-7.92,-0.567,2,0,0,-75,33,2,33,2,2,33,-1
interactive_point.1 = 0.4,75.650002,7.92,-0.567,0,0,0,75,33,2,33,2,2,33,-1
interactive_point.2 = 0.4,33.299999,6.28,-7.18,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.3 = 0.4,-51.700363,6.28,-7.180745,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.4 = 0.4,-68.277824,-2.822939,-5.923376,1,2.395636,12.258935,79.089348,0,0,0,0,0,0,-1
interactive_point.5 = 0,85.062134,-3.882079,4.412694,2,-0,-29.85655,42.814491,0,0,0,0,0,0,-1
interactive_point.6 = 0,85.062134,3.882079,4.412694,2,-0,29.85655,-42.814491,0,0,0,0,0,0,-1
interactive_point.7 = 0.4,44.150002,-10.05,-0.567,0,0,0,-88,35,0,35,0,2,33,-1
interactive_point.8 = 0.4,44.150002,10.05,-0.567,0,0,0,88,35,0,35,0,2,33,-1
interactive_point.9 = 0.4,-2.869313,-10.049908,-0.566572,0,0,0,-90,35,0,35,0,2,33,-1
interactive_point.10 = 0.4,-2.869313,10.049908,-0.566572,0,0,0,90,35,0,35,0,2,33,-1
interactive_point.11 = 0.4,-62.995712,-8.519092,-0.565611,0,0,0,-100,35,0,35,0,2,33,-1
interactive_point.12 = 0.4,-62.995712,8.519092,-0.565611,0,0,0,100,35,0,35,0,2,33,-1
[STALL PROTECTION]
stall_protection = 1 ; Alpha Protection
off_limit = 11.5 ; Alpha below which the Alpha Protection can be disabled (If also below off_yoke_limit)
off_yoke_limit = 1 ; Yoke position (in Pct) below which the Alpha Protection can be disabled (If also below off_limit)
on_limit = 14 ; Alpha above which the Alpha Protection timer starts
on_goal = 10 ; The alpha that the Alpha Protection will attempt to reach when triggered
timer_trigger = 1.0 ; Duration (in Sec) the alpha must be above on_limit before the Alpha Protection is triggered
;===================== FLAPS =====================
[FLAPS.0]
type = 1
system_type = 1
span-outboard = 0.25
extending-time = 22
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.1]
type = 1
system_type = 1
span-outboard = 0.7
extending-time = 23
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.2]
type = 2
system_type = 1
span-outboard = 0.2
extending-time = 8
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
[FLAPS.3]
type = 2
system_type = 1
span-outboard = 0.7
extending-time = 21
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
@@ -0,0 +1,419 @@
; TFDi Designs MD-11 (PW4462) vRC1.8.0_PW 04FEB26
[MODULAR_MERGE]
auto = true
[VERSION]
//KH Bump major
major = 4
minor = 8
[WEIGHT_AND_BALANCE]
max_gross_weight = 630500
empty_weight = 283975
reference_datum_position = 0, 0, 0
empty_weight_CG_position = -10.0, 0, 0
CG_forward_limit = 0.12
CG_aft_limit = 0.34
empty_weight_pitch_MOI = 20897456
empty_weight_roll_MOI = 6368555
empty_weight_yaw_MOI = 40761191
empty_weight_coupled_MOI = 0
activate_mach_limit_based_on_cg = 0
activate_cg_limit_based_on_mach = 0
max_number_of_stations = 21
//KH START Empty default
station_load.0=190, 82.0, -2.0, 4.0, Pilot, 1
station_load.1=190, 82.0, 2.0, 4.0, First Officer, 2
station_load.2=190, 80.0, 3.3, 4.0, Engineer, 0
station_load.3=760, 66.0, 0.0, 4.0, Cabin crew 1, 0
station_load.4=0, 45.0, -5.0, 4.0, Business 1 L, 4
station_load.5=0, 45.0, 0.0, 4.0, Business 1 C, 4
station_load.6=0, 45.0, 5.0, 4.0, Business 1 R, 4
station_load.7=0, 25.0, -5.0, 4.0, Business 2 L, 4
station_load.8=0, 25.0, 0.0, 4.0, Business 2 C, 4
station_load.9=0, 25.0, 5.0, 4.0, Business 2 R, 4
station_load.10=0, -20.0, -5.0, 4.0, Economy 3 L, 3
station_load.11=0, -20.0, 0.0, 4.0, Economy 3 C, 3
station_load.12=0, -20.0, 5.0, 4.0, Economy 3 R, 3
station_load.13=0, -50.0, -5.0, 4.0, Economy 4 L, 5
station_load.14=0, -50.0, 0.0, 4.0, Economy 4 C, 5
station_load.15=0, -50.0, 5.0, 4.0, Economy 4 R, 5
station_load.16=760, -55.0, 0.0, 4.0, Cabin crew 2, 0
station_load.17=0, 30.0, 0.0, -4.5, Forward cargo, 6
station_load.18=0, -30.0, 0.0, -4.5, Rear cargo, 6
station_load.19=0, 5.0, -2.0, -4.5, Left aux tank, 0
station_load.20=0, 5.0, 2.0, -4.5, Right aux tank, 0
//KH END
[CONTACT_POINTS]
static_pitch = 0
static_cg_height = 16.4
gear_system_type = 1
tailwheel_lock = 0
max_number_of_points = 16
gear_locked_on_ground = 0
gear_locked_above_speed = -1
max_speed_full_steering = 25
min_available_steering_angle_pct = 0.2
max_speed_decreasing_steering = 45
max_speed_full_steering_castering = 20
max_speed_decreasing_steering_castering = 35
emergency_extension_type = 2
hyd_need_power_to_function= 0
min_castering_angle = 0.05236
max_castering_angle = 3.142
allow_stopped_steering = 1
point.0 = 1, 64.22, 0.00, -17.31, 1500, 0, 1.67, 70, 1.15, 1.183, 0.9, 49, 50, 0, 200, 250, 8
point.1 = 1, -19.00, -17.15, -18.02, 2000, 1, 2.25, 0, 1.60, 1.116, 0.9, 51, 52, 2, 200, 250, 8
point.2 = 1, -19.00, 17.15, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 53, 54, 3, 200, 250, 8
point.3 = 1, -19.00, 0.00, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 55, 56, 3, 200, 250, 8
point.4 = 2, 93.0, 0.0, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.5 = 2, -48, -82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 5, 0, 0, 1
point.6 = 2, -48, 82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 6, 0, 0, 1
point.7 = 2, 60, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.8 = 2, 60, 0.0, 11.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.9 = 2, 16.0, -28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.10 = 2, 16.0, 28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.11 = 2, -110.0, 0.00, 14.20, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.12 = 2, -96.5, 0.0, 42.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.13 = 2, -94.5, -30.0, 8.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.14 = 2, -94.5, 30.0, 8.05, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.15 = 2, -52.0, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
[FUEL]
LeftMain = -20.00, -38.00, -1.0, 8938, 10.00
RightMain = -20.00, 38.00, -1.0, 8938, 10.00
Center1 = 10.00, 0.00, -3.00, 13000.00, 10.00
Center2 = 0.00, 0.00, -1.00, 1642.00, 10.00
Center3 = 0.00, 0.00, -5.00, 1958.00, 11.00
LeftTip = -39.00, -74.00, 0.00, 884.00, 10.00
RightTip = -39.00, 74.00, 0.00, 884.00, 10.00
External1 = -70.00, 0.00, -3.00, 2371.00, 10.00
//KH From 5.00, -2.00, -3.00, 0.00, 10.00
LeftAux = 5.00, -2.00, -3.00, 1973.00, 10.00
//KH From 5.00, 2.00, -3.00, 0.00, 10.0
RightAux = 5.00, 2.00, -3.00, 1973.00, 10.00
fuel_type = 2
number_of_tank_selectors = 3
electric_pump = 0
engine_driven_pump = 1
manual_transfer_pump = 0
manual_pump = 0
anemometer_pump = 0
fuel_dump_rate = 0.02
default_fuel_tank_selector.1 = 1
default_fuel_tank_selector.2 = 1
default_fuel_tank_selector.3 = 1
[AIRPLANE_GEOMETRY]
wing_area = 3648
wing_span = 170.5
wing_root_chord = 34.68
wing_camber = 1
wing_thickness_ratio = 0.04
wing_dihedral = 2.2
wing_incidence = 1.5
wing_twist = -0.5
oswald_efficiency_factor = 0.72
wing_winglets_flag = 1
wing_sweep = 38
wing_pos_apex_lon = 1
wing_pos_apex_vert = -2.75
htail_area = 920
htail_span = 59.5
htail_pos_lon = -88
htail_pos_vert = 5.0
htail_incidence = 0.8
htail_sweep = 36.5
htail_thickness_ratio = 0.02
vtail_area = 760
vtail_span = 28.1
vtail_sweep = 43
vtail_pos_lon = -79.5
vtail_pos_vert = 28
vtail_thickness_ratio = 0.03
fuselage_length = 200.92
fuselage_diameter = 19.75
fuselage_center_pos = 10, 0, 1.0
elevator_area = 327.0
aileron_area = 225.0
rudder_area = 190.0
elevator_up_limit = 25
elevator_down_limit = 15
aileron_up_limit = 25
aileron_down_limit = 15
rudder_limit = 23
rudder_trim_limit = 20
elevator_trim_limit = 30
spoiler_limit = 60
spoilerons_available = 1
aileron_to_spoileron_gain = 3
min_ailerons_for_spoilerons = 10
min_flaps_for_spoilerons = 0
spoiler_extension_time = 2.0
spoiler_handle_available = 1
auto_spoiler_available = 1
auto_spoiler_auto_retracts = 0
auto_spoiler_min_speed = 72
positive_g_limit_flaps_up = 5.0
positive_g_limit_flaps_down = 4.0
negative_g_limit_flaps_up = -4.0
negative_g_limit_flaps_down = -3.0
load_safety_factor = 1.5
elevator_trim_neutral = -1
aileron_to_rudder_scale = 0
flap_to_aileron_scale = 0
fly_by_wire = 0
elevator_elasticity_table = 0:0.7, 87:0.3, 210:0.5, 315:0.5
aileron_elasticity_table = 0:1, 300:0.7, 600:0.6, 1500:0.4
rudder_elasticity_table = 0:1, 300:1, 800:1, 1000:0.7
elevator_trim_elasticity_table = 0:0.0, 87:0.40, 240:0.60, 295:1.00, 315:1.00
[AERODYNAMICS]
lift_coef_pitch_rate = -8.09375
lift_coef_daoa = 2.68359
lift_coef_delta_elevator = -0.28906
lift_coef_horizontal_incidence = 0.91357
lift_coef_flaps = 1
lift_coef_spoilers = 0
drag_coef_zero_lift = 0.02539
drag_coef_flaps = 0.1339
drag_coef_gear = 0.0549
drag_coef_spoilers = 0.05207
side_force_slip_angle = -0.77392
side_force_roll_rate = 0.15478
side_force_yaw_rate = 0
side_force_delta_rudder = -0.14746
pitch_moment_horizontal_incidence = 4.24755
pitch_moment_delta_elevator = -2.37011
pitch_moment_delta_trim = 0
pitch_moment_pitch_damping = -214.1455
pitch_moment_aoa_0 = 0.11621
pitch_moment_daoa = 8.87255
pitch_moment_flaps = 0.0105
pitch_moment_gear = 0.0171
pitch_moment_spoilers = 0
pitch_moment_delta_elevator_propwash = -2.37011
pitch_moment_pitch_propwash = -214.1455
roll_moment_slip_angle = 0.26855
roll_moment_roll_damping = -3.40869
roll_moment_yaw_rate = -0.27197
roll_moment_spoilers = 0.07
roll_moment_delta_aileron = -0.34521
roll_moment_delta_rudder = 0.01660
roll_moment_delta_aileron_trim_scalar = -0.2
yaw_moment_slip_angle = 0.18066
yaw_moment_roll = 0.07470
yaw_moment_yaw_damping = -2.49023
yaw_moment_yaw_propwash = 0
yaw_moment_delta_aileron = -0.00683
yaw_moment_delta_rudder = 0.07128
yaw_moment_delta_rudder_propwash = 0.075
yaw_moment_delta_rudder_trim_scalar = -0.2
compute_aero_center = 0
aero_center_lift = -13.75
lift_coef_aoa_table = -3.15:0, -2.36:0.36, -1.57:0, -0.349:-1.2, 0:-0.022, 0.0314:0.6082, 0.221:2.049, 0.244:1.15, 0.349:0.6, 0.436:0.5, 0.698:0.1, 1.963:-0.359, 2.356:-0.5, 3.15:0
lift_coef_ground_effect_mach_table = 0.06:0.50, 0.227:0.80, 0.242:0.80, 0.3:1.0, 0.9:1.0
lift_coef_mach_table = 0:1
lift_coef_delta_elevator_mach_table = 0:0
lift_coef_daoa_mach_table = 0:0
lift_coef_pitch_rate_mach_table = 0:0
lift_coef_horizontal_incidence_mach_table = 0:0
drag_coef_zero_lift_mach_tab = 0:0, 0.4:0.0054, 0.5:0.0056, 0.6:0.0059, 0.7:0.0062, 0.72:0.0062, 0.8:0.0063, 0.8:0.0063, 1:0.0337, 1.2:0.0337, 1.4:0.0337, 1.6:0.0337, 1.8:0.0337, 2.0:0.0337
side_force_slip_angle_mach_table = 0:0
side_force_delta_rudder_mach_table = 0:0
side_force_yaw_rate_mach_table = 0:0
side_force_roll_rate_mach_table = 0:0
pitch_moment_aoa_table = -3.15:-2, -0.436:-0.626, -0.262:-0.434, 0:-0.146, 0.087:-0.05, 0.175:0.0466, 0.262:0.143, 0.314:0.2, 0.349:0.1, 0.436:0.15, 3.15:2
pitch_moment_delta_elevator_aoa_table = -180:-1, -40:0.05, -20:0.455, -14:0.853, -7:1.007, 0:1, 7:0.839, 14:0.693, 20:0.381, 40:-0.08, 180:-1
pitch_moment_horizontal_incidence_aoa_table = 0:1
pitch_moment_daoa_aoa_table = 0:1
pitch_moment_pitch_alpha_table = 0:1
pitch_moment_delta_elevator_mach_table = 0:0
pitch_moment_daoa_mach_table = 0:0
pitch_moment_pitch_rate_mach_table = 0:0
pitch_moment_horizontal_incidence_mach_table = 0:0
pitch_moment_aoa_0_mach_table = 0:0
roll_moment_aoa_table = 0:0
roll_moment_slip_angle_aoa_table = 0:1
roll_moment_roll_rate_aoa_table = 0:1
roll_moment_delta_aileron_aoa_table = 0:1
roll_moment_slip_angle_mach_table = 0:0
roll_moment_delta_rudder_mach_table = 0:0
roll_moment_delta_aileron_mach_table = 0:0
roll_moment_yaw_rate_mach_table = 0:0
roll_moment_roll_rate_mach_table = 0:0
yaw_moment_aoa_table = 0:0
yaw_moment_slip_angle_aoa_table = 0:1
yaw_moment_yaw_rate_aoa_table = 0:1
yaw_moment_delta_rudder_aoa_table = 0:1
yaw_moment_slip_angle_mach_table = 0:0
yaw_moment_delta_rudder_mach_table = 0:0
yaw_moment_delta_aileron_mach_table = 0:0
yaw_moment_yaw_rate_mach_table = 0:0
yaw_moment_roll_rate_mach_table = 0:0
elevator_scaling_table = -0.785:0.5, -0.524:0.85, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.85, 0.785:0.5 ; 0:1
aileron_scaling_table = -0.785:1 ;0:1
rudder_scaling_table = -0.785:0.5, -0.524:0.6, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.6, 0.785:0.5 ;0:1
elevator_lift_coef=3
rudder_lift_coef=2
aileron_load_factor_effectiveness_table = 0:1
lift_coef_at_drag_zero = 0.1
lift_coef_at_drag_zero_flaps = 0.1
[FLIGHT_TUNING]
modern_fm_only = 1
cruise_lift_scalar = 1
parasite_drag_scalar = 1
induced_drag_scalar = 1
flap_induced_drag_scalar = 1
elevator_effectiveness = 1.1
elevator_maxangle_scalar = 1
aileron_effectiveness = 1
rudder_effectiveness = 1
rudder_maxangle_scalar = 1
pitch_stability = 5
roll_stability = 1
yaw_stability = 1
pitch_gyro_stability = 1
roll_gyro_stability = 1
yaw_gyro_stability = 1
empty_CG_deviation_limit=0
elevator_trim_effectiveness = 1.5
aileron_trim_effectiveness = 1
rudder_trim_effectiveness = 1
hi_alpha_on_roll = 0
hi_alpha_on_yaw = 0
p_factor_on_yaw = 0
torque_on_roll = 0
gyro_precession_on_roll = 0
gyro_precession_on_yaw = 0
engine_wash_on_roll = 0
wingflex_scalar = 2
wingflex_offset = 0
stall_coef_at_min_weight = 0.71
ground_crosswind_effect_zero_speed=10
ground_crosswind_effect_max_speed=150
ground_high_speed_steeringwheel_static_friction_scalar=1.5
ground_high_speed_otherwheel_static_friction_scalar=1.2
[REFERENCE SPEEDS]
full_flaps_stall_speed = 115
flaps_up_stall_speed = 149
cruise_speed = 345
cruise_mach = 0.85
crossover_speed = 330
max_mach = 0.9
max_indicated_speed = 395
max_flaps_extended = 170
normal_operating_speed = 325
airspeed_indicator_max = 562.5
rotation_speed_min = 145
climb_speed = 250
cruise_alt = 41000
takeoff_speed = 165
spawn_cruise_altitude = 5000
spawn_descent_altitude = 500
best_angle_climb_speed = 0
approach_speed = 0
best_glide = 0
max_gear_extended = 200
[INTERACTIVE POINTS]
number_of_interactive_points = 13
interactive_point.0 = 0.4,75.650002,-7.92,-0.567,2,0,0,-75,33,2,33,2,2,33,-1
interactive_point.1 = 0.4,75.650002,7.92,-0.567,0,0,0,75,33,2,33,2,2,33,-1
interactive_point.2 = 0.4,33.299999,6.28,-7.18,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.3 = 0.4,-51.700363,6.28,-7.180745,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.4 = 0.4,-68.277824,-2.822939,-5.923376,1,2.395636,12.258935,79.089348,0,0,0,0,0,0,-1
interactive_point.5 = 0,85.062134,-3.882079,4.412694,2,-0,-29.85655,42.814491,0,0,0,0,0,0,-1
interactive_point.6 = 0,85.062134,3.882079,4.412694,2,-0,29.85655,-42.814491,0,0,0,0,0,0,-1
interactive_point.7 = 0.4,44.150002,-10.05,-0.567,0,0,0,-88,35,0,35,0,2,33,-1
interactive_point.8 = 0.4,44.150002,10.05,-0.567,0,0,0,88,35,0,35,0,2,33,-1
interactive_point.9 = 0.4,-2.869313,-10.049908,-0.566572,0,0,0,-90,35,0,35,0,2,33,-1
interactive_point.10 = 0.4,-2.869313,10.049908,-0.566572,0,0,0,90,35,0,35,0,2,33,-1
interactive_point.11 = 0.4,-62.995712,-8.519092,-0.565611,0,0,0,-100,35,0,35,0,2,33,-1
interactive_point.12 = 0.4,-62.995712,8.519092,-0.565611,0,0,0,100,35,0,35,0,2,33,-1
[STALL PROTECTION]
stall_protection = 1 ; Alpha Protection
off_limit = 11.5 ; Alpha below which the Alpha Protection can be disabled (If also below off_yoke_limit)
off_yoke_limit = 1 ; Yoke position (in Pct) below which the Alpha Protection can be disabled (If also below off_limit)
on_limit = 14 ; Alpha above which the Alpha Protection timer starts
on_goal = 10 ; The alpha that the Alpha Protection will attempt to reach when triggered
timer_trigger = 1.0 ; Duration (in Sec) the alpha must be above on_limit before the Alpha Protection is triggered
;===================== FLAPS =====================
[FLAPS.0]
type = 1
system_type = 1
span-outboard = 0.25
extending-time = 22
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.1]
type = 1
system_type = 1
span-outboard = 0.7
extending-time = 23
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.2]
type = 2
system_type = 1
span-outboard = 0.2
extending-time = 8
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
[FLAPS.3]
type = 2
system_type = 1
span-outboard = 0.7
extending-time = 21
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
@@ -0,0 +1,409 @@
; TFDi Designs MD-11F (GE CF6-80C2D1F) vRC1.8.0_GE_F 04FEB26
[MODULAR_MERGE]
auto = true
[VERSION]
//KH Bump major
major = 4
minor = 8
[WEIGHT_AND_BALANCE]
max_gross_weight = 630500
empty_weight = 248567
reference_datum_position = 0, 0, 0
empty_weight_CG_position = -10.0, 0, 0
CG_forward_limit = 0.12
CG_aft_limit = 0.34
empty_weight_pitch_MOI = 20897456
empty_weight_roll_MOI = 6368555
empty_weight_yaw_MOI = 40761191
empty_weight_coupled_MOI = 0
activate_mach_limit_based_on_cg = 0
activate_cg_limit_based_on_mach = 0
max_number_of_stations = 15
//KH START Empty default
station_load.0=190.0, 82.0, -2.0, 4.0, Pilot, 1
station_load.1=190.0, 82.0, 2.0, 4.0, First Officer, 2
station_load.2=190.0, 80.0, 3.3, 4.0, Engineer, 0
station_load.3=0, 55.0, -5.0, 4.0, Upper zone 1 L, 0
station_load.4=0, 55.0, 5.0, 4.0, Upper zone 1 R, 0
station_load.5=0, 20.0, -5.0, 4.0, Upper zone 2 L, 0
station_load.6=0, 20.0, 5.0, 4.0, Upper zone 2 R, 0
station_load.7=0, -20.0, -5.0, 4.0, Upper zone 3 L, 0
station_load.8=0, -20.0, 5.0, 4.0, Upper zone 3 R, 0
station_load.9=0, -50.0, -5.0, 4.0, Upper zone 4 L, 0
station_load.10=0, -50.0, 5.0, 4.0, Upper zone 4 R, 0
station_load.11=0, 30.0, 0.0, -4.5, Lower forward cargo, 0
station_load.12=0, -30.0, 0.0, -4.5, Lower rear cargo, 0
station_load.13=0, 5.0, -2.0, -4.5, Left aux tank, 0
station_load.14=0, 5.0, 2.0, -4.5, Right aux tank, 0
//KH END
[CONTACT_POINTS]
static_pitch = 0
static_cg_height = 16.4
gear_system_type = 1
tailwheel_lock = 0
max_number_of_points = 16
gear_locked_on_ground = 0
gear_locked_above_speed = -1
max_speed_full_steering = 25
min_available_steering_angle_pct = 0.2
max_speed_decreasing_steering = 45
max_speed_full_steering_castering = 20
max_speed_decreasing_steering_castering = 35
emergency_extension_type = 2
hyd_need_power_to_function= 0
min_castering_angle = 0.05236
max_castering_angle = 3.142
allow_stopped_steering = 1
point.0 = 1, 64.22, 0.00, -17.31, 1500, 0, 1.67, 70, 1.15, 1.183, 0.9, 49, 50, 0, 200, 250, 8
point.1 = 1, -19.00, -17.15, -18.02, 2000, 1, 2.25, 0, 1.60, 1.116, 0.9, 51, 52, 2, 200, 250, 8
point.2 = 1, -19.00, 17.15, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 53, 54, 3, 200, 250, 8
point.3 = 1, -19.00, 0.00, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 55, 56, 3, 200, 250, 8
point.4 = 2, 93.0, 0.0, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.5 = 2, -48, -82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 5, 0, 0, 1
point.6 = 2, -48, 82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 6, 0, 0, 1
point.7 = 2, 60, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.8 = 2, 60, 0.0, 11.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.9 = 2, 16.0, -28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.10 = 2, 16.0, 28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.11 = 2, -110.0, 0.00, 14.20, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.12 = 2, -96.5, 0.0, 42.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.13 = 2, -94.5, -30.0, 8.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.14 = 2, -94.5, 30.0, 8.05, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.15 = 2, -52.0, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
[FUEL]
LeftMain = -20.00, -38.00, -1.0, 8938, 10.00
RightMain = -20.00, 38.00, -1.0, 8938, 10.00
Center1 = 10.00, 0.00, -3.00, 13000.00, 10.00
Center2 = 0.00, 0.00, -1.00, 1642.00, 10.00
Center3 = 0.00, 0.00, -5.00, 1958.00, 11.00
LeftTip = -39.00, -74.00, 0.00, 884.00, 10.00
RightTip = -39.00, 74.00, 0.00, 884.00, 10.00
External1 = -70.00, 0.00, -3.00, 2371.00, 10.00
//KH From 5.00, -2.00, -3.00, 0.00, 10.00
LeftAux = 5.00, -2.00, -3.00, 1973.00, 10.00
//KH From 5.00, 2.00, -3.00, 0.00, 10.0
RightAux = 5.00, 2.00, -3.00, 1973.00, 10.00
fuel_type = 2
number_of_tank_selectors = 3
electric_pump = 0
engine_driven_pump = 1
manual_transfer_pump = 0
manual_pump = 0
anemometer_pump = 0
fuel_dump_rate = 0.02
default_fuel_tank_selector.1 = 1
default_fuel_tank_selector.2 = 1
default_fuel_tank_selector.3 = 1
[AIRPLANE_GEOMETRY]
wing_area = 3648
wing_span = 170.5
wing_root_chord = 34.68
wing_camber = 1
wing_thickness_ratio = 0.04
wing_dihedral = 2.2
wing_incidence = 1.5
wing_twist = -0.5
oswald_efficiency_factor = 0.72
wing_winglets_flag = 1
wing_sweep = 38
wing_pos_apex_lon = 1
wing_pos_apex_vert = -2.75
htail_area = 920
htail_span = 59.5
htail_pos_lon = -88
htail_pos_vert = 5.0
htail_incidence = 0.8
htail_sweep = 36.5
htail_thickness_ratio = 0.02
vtail_area = 760
vtail_span = 28.1
vtail_sweep = 43
vtail_pos_lon = -79.5
vtail_pos_vert = 28
vtail_thickness_ratio = 0.03
fuselage_length = 202.16
fuselage_diameter = 19.75
fuselage_center_pos = 10, 0, 1.0
elevator_area = 327.0
aileron_area = 225.0
rudder_area = 190.0
elevator_up_limit = 25
elevator_down_limit = 15
aileron_up_limit = 25
aileron_down_limit = 15
rudder_limit = 23
rudder_trim_limit = 20
elevator_trim_limit = 30
spoiler_limit = 60
spoilerons_available = 1
aileron_to_spoileron_gain = 3
min_ailerons_for_spoilerons = 10
min_flaps_for_spoilerons = 0
spoiler_extension_time = 2.0
spoiler_handle_available = 1
auto_spoiler_available = 1
auto_spoiler_auto_retracts = 0
auto_spoiler_min_speed = 72
positive_g_limit_flaps_up = 5.0
positive_g_limit_flaps_down = 4.0
negative_g_limit_flaps_up = -4.0
negative_g_limit_flaps_down = -3.0
load_safety_factor = 1.5
elevator_trim_neutral = -1
aileron_to_rudder_scale = 0
flap_to_aileron_scale = 0
fly_by_wire = 0
elevator_elasticity_table = 0:0.7, 87:0.3, 210:0.5, 315:0.5
aileron_elasticity_table = 0:1, 300:0.7, 600:0.6, 1500:0.4
rudder_elasticity_table = 0:1, 300:1, 800:1, 1000:0.7
elevator_trim_elasticity_table = 0:0.0, 87:0.40, 240:0.60, 295:1.00, 315:1.00
[AERODYNAMICS]
lift_coef_pitch_rate = -8.09375
lift_coef_daoa = 2.68359
lift_coef_delta_elevator = -0.28906
lift_coef_horizontal_incidence = 0.91357
lift_coef_flaps = 1
lift_coef_spoilers = 0
drag_coef_zero_lift = 0.02539
drag_coef_flaps = 0.1339
drag_coef_gear = 0.0549
drag_coef_spoilers = 0.05207
side_force_slip_angle = -0.77392
side_force_roll_rate = 0.15478
side_force_yaw_rate = 0
side_force_delta_rudder = -0.14746
pitch_moment_horizontal_incidence = 4.24755
pitch_moment_delta_elevator = -2.37011
pitch_moment_delta_trim = 0
pitch_moment_pitch_damping = -214.1455
pitch_moment_aoa_0 = 0.11621
pitch_moment_daoa = 8.87255
pitch_moment_flaps = 0.0105
pitch_moment_gear = 0.0171
pitch_moment_spoilers = 0
pitch_moment_delta_elevator_propwash = -2.37011
pitch_moment_pitch_propwash = -214.1455
roll_moment_slip_angle = 0.26855
roll_moment_roll_damping = -3.40869
roll_moment_yaw_rate = -0.27197
roll_moment_spoilers = 0.07
roll_moment_delta_aileron = -0.34521
roll_moment_delta_rudder = 0.01660
roll_moment_delta_aileron_trim_scalar = -0.2
yaw_moment_slip_angle = 0.18066
yaw_moment_roll = 0.07470
yaw_moment_yaw_damping = -2.49023
yaw_moment_yaw_propwash = 0
yaw_moment_delta_aileron = -0.00683
yaw_moment_delta_rudder = 0.07128
yaw_moment_delta_rudder_propwash = 0.075
yaw_moment_delta_rudder_trim_scalar = -0.2
compute_aero_center = 0
aero_center_lift = -13.75
lift_coef_aoa_table = -3.15:0, -2.36:0.36, -1.57:0, -0.349:-1.2, 0:-0.022, 0.0314:0.6082, 0.221:2.049, 0.244:1.15, 0.349:0.6, 0.436:0.5, 0.698:0.1, 1.963:-0.359, 2.356:-0.5, 3.15:0
lift_coef_ground_effect_mach_table = 0.06:0.50, 0.227:0.80, 0.242:0.80, 0.3:1.0, 0.9:1.0
lift_coef_mach_table = 0:1
lift_coef_delta_elevator_mach_table = 0:0
lift_coef_daoa_mach_table = 0:0
lift_coef_pitch_rate_mach_table = 0:0
lift_coef_horizontal_incidence_mach_table = 0:0
drag_coef_zero_lift_mach_tab = 0:0, 0.4:0.0054, 0.5:0.0056, 0.6:0.0059, 0.7:0.0062, 0.72:0.0062, 0.8:0.0063, 0.8:0.0063, 1:0.0337, 1.2:0.0337, 1.4:0.0337, 1.6:0.0337, 1.8:0.0337, 2.0:0.0337
side_force_slip_angle_mach_table = 0:0
side_force_delta_rudder_mach_table = 0:0
side_force_yaw_rate_mach_table = 0:0
side_force_roll_rate_mach_table = 0:0
pitch_moment_aoa_table = -3.15:-2, -0.436:-0.626, -0.262:-0.434, 0:-0.146, 0.087:-0.05, 0.175:0.0466, 0.262:0.143, 0.314:0.2, 0.349:0.1, 0.436:0.15, 3.15:2
pitch_moment_delta_elevator_aoa_table = -180:-1, -40:0.05, -20:0.455, -14:0.853, -7:1.007, 0:1, 7:0.839, 14:0.693, 20:0.381, 40:-0.08, 180:-1
pitch_moment_horizontal_incidence_aoa_table = 0:1
pitch_moment_daoa_aoa_table = 0:1
pitch_moment_pitch_alpha_table = 0:1
pitch_moment_delta_elevator_mach_table = 0:0
pitch_moment_daoa_mach_table = 0:0
pitch_moment_pitch_rate_mach_table = 0:0
pitch_moment_horizontal_incidence_mach_table = 0:0
pitch_moment_aoa_0_mach_table = 0:0
roll_moment_aoa_table = 0:0
roll_moment_slip_angle_aoa_table = 0:1
roll_moment_roll_rate_aoa_table = 0:1
roll_moment_delta_aileron_aoa_table = 0:1
roll_moment_slip_angle_mach_table = 0:0
roll_moment_delta_rudder_mach_table = 0:0
roll_moment_delta_aileron_mach_table = 0:0
roll_moment_yaw_rate_mach_table = 0:0
roll_moment_roll_rate_mach_table = 0:0
yaw_moment_aoa_table = 0:0
yaw_moment_slip_angle_aoa_table = 0:1
yaw_moment_yaw_rate_aoa_table = 0:1
yaw_moment_delta_rudder_aoa_table = 0:1
yaw_moment_slip_angle_mach_table = 0:0
yaw_moment_delta_rudder_mach_table = 0:0
yaw_moment_delta_aileron_mach_table = 0:0
yaw_moment_yaw_rate_mach_table = 0:0
yaw_moment_roll_rate_mach_table = 0:0
elevator_scaling_table = -0.785:0.5, -0.524:0.85, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.85, 0.785:0.5 ; 0:1
aileron_scaling_table = -0.785:1 ;0:1
rudder_scaling_table = -0.785:0.5, -0.524:0.6, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.6, 0.785:0.5 ;0:1
elevator_lift_coef=3
rudder_lift_coef=2
aileron_load_factor_effectiveness_table = 0:1
lift_coef_at_drag_zero = 0.1
lift_coef_at_drag_zero_flaps = 0.1
[FLIGHT_TUNING]
modern_fm_only = 1
cruise_lift_scalar = 1
parasite_drag_scalar = 1
induced_drag_scalar = 1
flap_induced_drag_scalar = 1
elevator_effectiveness = 1.1
elevator_maxangle_scalar = 1
aileron_effectiveness = 1
rudder_effectiveness = 1
rudder_maxangle_scalar = 1
pitch_stability = 5
roll_stability = 1
yaw_stability = 1
pitch_gyro_stability = 1
roll_gyro_stability = 1
yaw_gyro_stability = 1
empty_CG_deviation_limit=0
elevator_trim_effectiveness = 1.5
aileron_trim_effectiveness = 1
rudder_trim_effectiveness = 1
hi_alpha_on_roll = 0
hi_alpha_on_yaw = 0
p_factor_on_yaw = 0
torque_on_roll = 0
gyro_precession_on_roll = 0
gyro_precession_on_yaw = 0
engine_wash_on_roll = 0
wingflex_scalar = 2
wingflex_offset = 0
stall_coef_at_min_weight = 0.71
ground_crosswind_effect_zero_speed=10
ground_crosswind_effect_max_speed=150
ground_high_speed_steeringwheel_static_friction_scalar=1.5
ground_high_speed_otherwheel_static_friction_scalar=1.2
[REFERENCE SPEEDS]
full_flaps_stall_speed = 115
flaps_up_stall_speed = 149
cruise_speed = 345
cruise_mach = 0.85
crossover_speed = 330
max_mach = 0.9
max_indicated_speed = 395
max_flaps_extended = 170
normal_operating_speed = 325
airspeed_indicator_max = 562.5
rotation_speed_min = 145
climb_speed = 250
cruise_alt = 41000
takeoff_speed = 165
spawn_cruise_altitude = 5000
spawn_descent_altitude = 500
best_angle_climb_speed = 0
approach_speed = 0
best_glide = 0
max_gear_extended = 200
[INTERACTIVE POINTS]
number_of_interactive_points = 8
interactive_point.0 = 0.4,75.650002,-7.92,-0.567,0,0,0,-75,33,2,33,2,2,33,-1
interactive_point.1 = 0.4,75.650002,7.92,-0.567,0,0,0,75,33,2,33,2,2,33,-1
interactive_point.2 = 0.4,33.299999,6.28,-7.18,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.3 = 0.4,-51.700363,6.28,-7.180745,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.4 = 0.4,-68.277824,-2.822939,-5.923376,1,2.395636,12.258935,79.089348,0,0,0,0,0,0,-1
interactive_point.5 = 0,85.062134,-3.882079,4.412694,2,-0,-29.85655,42.814491,0,0,0,0,0,0,-1
interactive_point.6 = 0,85.062134,3.882079,4.412694,2,-0,29.85655,-42.814491,0,0,0,0,0,0,-1
interactive_point.7 = 0,54.038418,-9.45901,-0.003025,1,0,0,0,0,0,0,0,0,0,-1
[STALL PROTECTION]
stall_protection = 1 ; Alpha Protection
off_limit = 11.5 ; Alpha below which the Alpha Protection can be disabled (If also below off_yoke_limit)
off_yoke_limit = 1 ; Yoke position (in Pct) below which the Alpha Protection can be disabled (If also below off_limit)
on_limit = 14 ; Alpha above which the Alpha Protection timer starts
on_goal = 10 ; The alpha that the Alpha Protection will attempt to reach when triggered
timer_trigger = 1.0 ; Duration (in Sec) the alpha must be above on_limit before the Alpha Protection is triggered
;===================== FLAPS =====================
[FLAPS.0]
type = 1
system_type = 1
span-outboard = 0.25
extending-time = 22
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.1]
type = 1
system_type = 1
span-outboard = 0.7
extending-time = 23
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.2]
type = 2
system_type = 1
span-outboard = 0.2
extending-time = 8
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
[FLAPS.3]
type = 2
system_type = 1
span-outboard = 0.7
extending-time = 21
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
@@ -0,0 +1,409 @@
; TFDi Designs MD-11F (GE CF6-80C2D1F) vRC1.8.0_GE_F 04FEB26
[MODULAR_MERGE]
auto = true
[VERSION]
//KH Bump major
major = 4
minor = 8
[WEIGHT_AND_BALANCE]
max_gross_weight = 630500
empty_weight = 248567
reference_datum_position = 0, 0, 0
empty_weight_CG_position = -10.0, 0, 0
CG_forward_limit = 0.12
CG_aft_limit = 0.34
empty_weight_pitch_MOI = 20897456
empty_weight_roll_MOI = 6368555
empty_weight_yaw_MOI = 40761191
empty_weight_coupled_MOI = 0
activate_mach_limit_based_on_cg = 0
activate_cg_limit_based_on_mach = 0
max_number_of_stations = 15
//KH START Empty default
station_load.0=190.0, 82.0, -2.0, 4.0, Pilot, 1
station_load.1=190.0, 82.0, 2.0, 4.0, First Officer, 2
station_load.2=190.0, 80.0, 3.3, 4.0, Engineer, 0
station_load.3=0, 55.0, -5.0, 4.0, Upper zone 1 L, 0
station_load.4=0, 55.0, 5.0, 4.0, Upper zone 1 R, 0
station_load.5=0, 20.0, -5.0, 4.0, Upper zone 2 L, 0
station_load.6=0, 20.0, 5.0, 4.0, Upper zone 2 R, 0
station_load.7=0, -20.0, -5.0, 4.0, Upper zone 3 L, 0
station_load.8=0, -20.0, 5.0, 4.0, Upper zone 3 R, 0
station_load.9=0, -50.0, -5.0, 4.0, Upper zone 4 L, 0
station_load.10=0, -50.0, 5.0, 4.0, Upper zone 4 R, 0
station_load.11=0, 30.0, 0.0, -4.5, Lower forward cargo, 0
station_load.12=0, -30.0, 0.0, -4.5, Lower rear cargo, 0
station_load.13=0, 5.0, -2.0, -4.5, Left aux tank, 0
station_load.14=0, 5.0, 2.0, -4.5, Right aux tank, 0
//KH END
[CONTACT_POINTS]
static_pitch = 0
static_cg_height = 16.4
gear_system_type = 1
tailwheel_lock = 0
max_number_of_points = 16
gear_locked_on_ground = 0
gear_locked_above_speed = -1
max_speed_full_steering = 25
min_available_steering_angle_pct = 0.2
max_speed_decreasing_steering = 45
max_speed_full_steering_castering = 20
max_speed_decreasing_steering_castering = 35
emergency_extension_type = 2
hyd_need_power_to_function= 0
min_castering_angle = 0.05236
max_castering_angle = 3.142
allow_stopped_steering = 1
point.0 = 1, 64.22, 0.00, -17.31, 1500, 0, 1.67, 70, 1.15, 1.183, 0.9, 49, 50, 0, 200, 250, 8
point.1 = 1, -19.00, -17.15, -18.02, 2000, 1, 2.25, 0, 1.60, 1.116, 0.9, 51, 52, 2, 200, 250, 8
point.2 = 1, -19.00, 17.15, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 53, 54, 3, 200, 250, 8
point.3 = 1, -19.00, 0.00, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 55, 56, 3, 200, 250, 8
point.4 = 2, 93.0, 0.0, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.5 = 2, -48, -82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 5, 0, 0, 1
point.6 = 2, -48, 82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 6, 0, 0, 1
point.7 = 2, 60, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.8 = 2, 60, 0.0, 11.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.9 = 2, 16.0, -28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.10 = 2, 16.0, 28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.11 = 2, -110.0, 0.00, 14.20, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.12 = 2, -96.5, 0.0, 42.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.13 = 2, -94.5, -30.0, 8.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.14 = 2, -94.5, 30.0, 8.05, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.15 = 2, -52.0, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
[FUEL]
LeftMain = -20.00, -38.00, -1.0, 8938, 10.00
RightMain = -20.00, 38.00, -1.0, 8938, 10.00
Center1 = 10.00, 0.00, -3.00, 13000.00, 10.00
Center2 = 0.00, 0.00, -1.00, 1642.00, 10.00
Center3 = 0.00, 0.00, -5.00, 1958.00, 11.00
LeftTip = -39.00, -74.00, 0.00, 884.00, 10.00
RightTip = -39.00, 74.00, 0.00, 884.00, 10.00
External1 = -70.00, 0.00, -3.00, 2371.00, 10.00
//KH From 5.00, -2.00, -3.00, 0.00, 10.00
LeftAux = 5.00, -2.00, -3.00, 1973.00, 10.00
//KH From 5.00, 2.00, -3.00, 0.00, 10.0
RightAux = 5.00, 2.00, -3.00, 1973.00, 10.00
fuel_type = 2
number_of_tank_selectors = 3
electric_pump = 0
engine_driven_pump = 1
manual_transfer_pump = 0
manual_pump = 0
anemometer_pump = 0
fuel_dump_rate = 0.02
default_fuel_tank_selector.1 = 1
default_fuel_tank_selector.2 = 1
default_fuel_tank_selector.3 = 1
[AIRPLANE_GEOMETRY]
wing_area = 3648
wing_span = 170.5
wing_root_chord = 34.68
wing_camber = 1
wing_thickness_ratio = 0.04
wing_dihedral = 2.2
wing_incidence = 1.5
wing_twist = -0.5
oswald_efficiency_factor = 0.72
wing_winglets_flag = 1
wing_sweep = 38
wing_pos_apex_lon = 1
wing_pos_apex_vert = -2.75
htail_area = 920
htail_span = 59.5
htail_pos_lon = -88
htail_pos_vert = 5.0
htail_incidence = 0.8
htail_sweep = 36.5
htail_thickness_ratio = 0.02
vtail_area = 760
vtail_span = 28.1
vtail_sweep = 43
vtail_pos_lon = -79.5
vtail_pos_vert = 28
vtail_thickness_ratio = 0.03
fuselage_length = 202.16
fuselage_diameter = 19.75
fuselage_center_pos = 10, 0, 1.0
elevator_area = 327.0
aileron_area = 225.0
rudder_area = 190.0
elevator_up_limit = 25
elevator_down_limit = 15
aileron_up_limit = 25
aileron_down_limit = 15
rudder_limit = 23
rudder_trim_limit = 20
elevator_trim_limit = 30
spoiler_limit = 60
spoilerons_available = 1
aileron_to_spoileron_gain = 3
min_ailerons_for_spoilerons = 10
min_flaps_for_spoilerons = 0
spoiler_extension_time = 2.0
spoiler_handle_available = 1
auto_spoiler_available = 1
auto_spoiler_auto_retracts = 0
auto_spoiler_min_speed = 72
positive_g_limit_flaps_up = 5.0
positive_g_limit_flaps_down = 4.0
negative_g_limit_flaps_up = -4.0
negative_g_limit_flaps_down = -3.0
load_safety_factor = 1.5
elevator_trim_neutral = -1
aileron_to_rudder_scale = 0
flap_to_aileron_scale = 0
fly_by_wire = 0
elevator_elasticity_table = 0:0.7, 87:0.3, 210:0.5, 315:0.5
aileron_elasticity_table = 0:1, 300:0.7, 600:0.6, 1500:0.4
rudder_elasticity_table = 0:1, 300:1, 800:1, 1000:0.7
elevator_trim_elasticity_table = 0:0.0, 87:0.40, 240:0.60, 295:1.00, 315:1.00
[AERODYNAMICS]
lift_coef_pitch_rate = -8.09375
lift_coef_daoa = 2.68359
lift_coef_delta_elevator = -0.28906
lift_coef_horizontal_incidence = 0.91357
lift_coef_flaps = 1
lift_coef_spoilers = 0
drag_coef_zero_lift = 0.02539
drag_coef_flaps = 0.1339
drag_coef_gear = 0.0549
drag_coef_spoilers = 0.05207
side_force_slip_angle = -0.77392
side_force_roll_rate = 0.15478
side_force_yaw_rate = 0
side_force_delta_rudder = -0.14746
pitch_moment_horizontal_incidence = 4.24755
pitch_moment_delta_elevator = -2.37011
pitch_moment_delta_trim = 0
pitch_moment_pitch_damping = -214.1455
pitch_moment_aoa_0 = 0.11621
pitch_moment_daoa = 8.87255
pitch_moment_flaps = 0.0105
pitch_moment_gear = 0.0171
pitch_moment_spoilers = 0
pitch_moment_delta_elevator_propwash = -2.37011
pitch_moment_pitch_propwash = -214.1455
roll_moment_slip_angle = 0.26855
roll_moment_roll_damping = -3.40869
roll_moment_yaw_rate = -0.27197
roll_moment_spoilers = 0.07
roll_moment_delta_aileron = -0.34521
roll_moment_delta_rudder = 0.01660
roll_moment_delta_aileron_trim_scalar = -0.2
yaw_moment_slip_angle = 0.18066
yaw_moment_roll = 0.07470
yaw_moment_yaw_damping = -2.49023
yaw_moment_yaw_propwash = 0
yaw_moment_delta_aileron = -0.00683
yaw_moment_delta_rudder = 0.07128
yaw_moment_delta_rudder_propwash = 0.075
yaw_moment_delta_rudder_trim_scalar = -0.2
compute_aero_center = 0
aero_center_lift = -13.75
lift_coef_aoa_table = -3.15:0, -2.36:0.36, -1.57:0, -0.349:-1.2, 0:-0.022, 0.0314:0.6082, 0.221:2.049, 0.244:1.15, 0.349:0.6, 0.436:0.5, 0.698:0.1, 1.963:-0.359, 2.356:-0.5, 3.15:0
lift_coef_ground_effect_mach_table = 0.06:0.50, 0.227:0.80, 0.242:0.80, 0.3:1.0, 0.9:1.0
lift_coef_mach_table = 0:1
lift_coef_delta_elevator_mach_table = 0:0
lift_coef_daoa_mach_table = 0:0
lift_coef_pitch_rate_mach_table = 0:0
lift_coef_horizontal_incidence_mach_table = 0:0
drag_coef_zero_lift_mach_tab = 0:0, 0.4:0.0054, 0.5:0.0056, 0.6:0.0059, 0.7:0.0062, 0.72:0.0062, 0.8:0.0063, 0.8:0.0063, 1:0.0337, 1.2:0.0337, 1.4:0.0337, 1.6:0.0337, 1.8:0.0337, 2.0:0.0337
side_force_slip_angle_mach_table = 0:0
side_force_delta_rudder_mach_table = 0:0
side_force_yaw_rate_mach_table = 0:0
side_force_roll_rate_mach_table = 0:0
pitch_moment_aoa_table = -3.15:-2, -0.436:-0.626, -0.262:-0.434, 0:-0.146, 0.087:-0.05, 0.175:0.0466, 0.262:0.143, 0.314:0.2, 0.349:0.1, 0.436:0.15, 3.15:2
pitch_moment_delta_elevator_aoa_table = -180:-1, -40:0.05, -20:0.455, -14:0.853, -7:1.007, 0:1, 7:0.839, 14:0.693, 20:0.381, 40:-0.08, 180:-1
pitch_moment_horizontal_incidence_aoa_table = 0:1
pitch_moment_daoa_aoa_table = 0:1
pitch_moment_pitch_alpha_table = 0:1
pitch_moment_delta_elevator_mach_table = 0:0
pitch_moment_daoa_mach_table = 0:0
pitch_moment_pitch_rate_mach_table = 0:0
pitch_moment_horizontal_incidence_mach_table = 0:0
pitch_moment_aoa_0_mach_table = 0:0
roll_moment_aoa_table = 0:0
roll_moment_slip_angle_aoa_table = 0:1
roll_moment_roll_rate_aoa_table = 0:1
roll_moment_delta_aileron_aoa_table = 0:1
roll_moment_slip_angle_mach_table = 0:0
roll_moment_delta_rudder_mach_table = 0:0
roll_moment_delta_aileron_mach_table = 0:0
roll_moment_yaw_rate_mach_table = 0:0
roll_moment_roll_rate_mach_table = 0:0
yaw_moment_aoa_table = 0:0
yaw_moment_slip_angle_aoa_table = 0:1
yaw_moment_yaw_rate_aoa_table = 0:1
yaw_moment_delta_rudder_aoa_table = 0:1
yaw_moment_slip_angle_mach_table = 0:0
yaw_moment_delta_rudder_mach_table = 0:0
yaw_moment_delta_aileron_mach_table = 0:0
yaw_moment_yaw_rate_mach_table = 0:0
yaw_moment_roll_rate_mach_table = 0:0
elevator_scaling_table = -0.785:0.5, -0.524:0.85, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.85, 0.785:0.5 ; 0:1
aileron_scaling_table = -0.785:1 ;0:1
rudder_scaling_table = -0.785:0.5, -0.524:0.6, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.6, 0.785:0.5 ;0:1
elevator_lift_coef=3
rudder_lift_coef=2
aileron_load_factor_effectiveness_table = 0:1
lift_coef_at_drag_zero = 0.1
lift_coef_at_drag_zero_flaps = 0.1
[FLIGHT_TUNING]
modern_fm_only = 1
cruise_lift_scalar = 1
parasite_drag_scalar = 1
induced_drag_scalar = 1
flap_induced_drag_scalar = 1
elevator_effectiveness = 1.1
elevator_maxangle_scalar = 1
aileron_effectiveness = 1
rudder_effectiveness = 1
rudder_maxangle_scalar = 1
pitch_stability = 5
roll_stability = 1
yaw_stability = 1
pitch_gyro_stability = 1
roll_gyro_stability = 1
yaw_gyro_stability = 1
empty_CG_deviation_limit=0
elevator_trim_effectiveness = 1.5
aileron_trim_effectiveness = 1
rudder_trim_effectiveness = 1
hi_alpha_on_roll = 0
hi_alpha_on_yaw = 0
p_factor_on_yaw = 0
torque_on_roll = 0
gyro_precession_on_roll = 0
gyro_precession_on_yaw = 0
engine_wash_on_roll = 0
wingflex_scalar = 2
wingflex_offset = 0
stall_coef_at_min_weight = 0.71
ground_crosswind_effect_zero_speed=10
ground_crosswind_effect_max_speed=150
ground_high_speed_steeringwheel_static_friction_scalar=1.5
ground_high_speed_otherwheel_static_friction_scalar=1.2
[REFERENCE SPEEDS]
full_flaps_stall_speed = 115
flaps_up_stall_speed = 149
cruise_speed = 345
cruise_mach = 0.85
crossover_speed = 330
max_mach = 0.9
max_indicated_speed = 395
max_flaps_extended = 170
normal_operating_speed = 325
airspeed_indicator_max = 562.5
rotation_speed_min = 145
climb_speed = 250
cruise_alt = 41000
takeoff_speed = 165
spawn_cruise_altitude = 5000
spawn_descent_altitude = 500
best_angle_climb_speed = 0
approach_speed = 0
best_glide = 0
max_gear_extended = 200
[INTERACTIVE POINTS]
number_of_interactive_points = 8
interactive_point.0 = 0.4,75.650002,-7.92,-0.567,0,0,0,-75,33,2,33,2,2,33,-1
interactive_point.1 = 0.4,75.650002,7.92,-0.567,0,0,0,75,33,2,33,2,2,33,-1
interactive_point.2 = 0.4,33.299999,6.28,-7.18,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.3 = 0.4,-51.700363,6.28,-7.180745,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.4 = 0.4,-68.277824,-2.822939,-5.923376,1,2.395636,12.258935,79.089348,0,0,0,0,0,0,-1
interactive_point.5 = 0,85.062134,-3.882079,4.412694,2,-0,-29.85655,42.814491,0,0,0,0,0,0,-1
interactive_point.6 = 0,85.062134,3.882079,4.412694,2,-0,29.85655,-42.814491,0,0,0,0,0,0,-1
interactive_point.7 = 0,54.038418,-9.45901,-0.003025,1,0,0,0,0,0,0,0,0,0,-1
[STALL PROTECTION]
stall_protection = 1 ; Alpha Protection
off_limit = 11.5 ; Alpha below which the Alpha Protection can be disabled (If also below off_yoke_limit)
off_yoke_limit = 1 ; Yoke position (in Pct) below which the Alpha Protection can be disabled (If also below off_limit)
on_limit = 14 ; Alpha above which the Alpha Protection timer starts
on_goal = 10 ; The alpha that the Alpha Protection will attempt to reach when triggered
timer_trigger = 1.0 ; Duration (in Sec) the alpha must be above on_limit before the Alpha Protection is triggered
;===================== FLAPS =====================
[FLAPS.0]
type = 1
system_type = 1
span-outboard = 0.25
extending-time = 22
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.1]
type = 1
system_type = 1
span-outboard = 0.7
extending-time = 23
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.2]
type = 2
system_type = 1
span-outboard = 0.2
extending-time = 8
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
[FLAPS.3]
type = 2
system_type = 1
span-outboard = 0.7
extending-time = 21
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
@@ -0,0 +1,408 @@
; TFDi Designs MD-11F (P&W PW4662) vRC1.8.0_PW_F 04FEB26
[MODULAR_MERGE]
auto = true
[VERSION]
//KH Bump major
major = 4
minor = 8
[WEIGHT_AND_BALANCE]
max_gross_weight = 630500
empty_weight = 248567
reference_datum_position = 0, 0, 0
empty_weight_CG_position = -10.0, 0, 0
CG_forward_limit = 0.12
CG_aft_limit = 0.34
empty_weight_pitch_MOI = 20897456
empty_weight_roll_MOI = 6368555
empty_weight_yaw_MOI = 40761191
empty_weight_coupled_MOI = 0
activate_mach_limit_based_on_cg = 0
activate_cg_limit_based_on_mach = 0
max_number_of_stations = 15
//KH START Empty default
station_load.0=190.0, 82.0, -2.0, 4.0, Pilot, 1
station_load.1=190.0, 82.0, 2.0, 4.0, First Officer, 2
station_load.2=190.0, 80.0, 3.3, 4.0, Engineer, 0
station_load.3=0, 55.0, -5.0, 4.0, Upper zone 1 L, 0
station_load.4=0, 55.0, 5.0, 4.0, Upper zone 1 R, 0
station_load.5=0, 20.0, -5.0, 4.0, Upper zone 2 L, 0
station_load.6=0, 20.0, 5.0, 4.0, Upper zone 2 R, 0
station_load.7=0, -20.0, -5.0, 4.0, Upper zone 3 L, 0
station_load.8=0, -20.0, 5.0, 4.0, Upper zone 3 R, 0
station_load.9=0, -50.0, -5.0, 4.0, Upper zone 4 L, 0
station_load.10=0, -50.0, 5.0, 4.0, Upper zone 4 R, 0
station_load.11=0, 30.0, 0.0, -4.5, Lower forward cargo, 0
station_load.12=0, -30.0, 0.0, -4.5, Lower rear cargo, 0
station_load.13=0, 5.0, -2.0, -4.5, Left aux tank, 0
station_load.14=0, 5.0, 2.0, -4.5, Right aux tank, 0
//KH END
[CONTACT_POINTS]
static_pitch = 0
static_cg_height = 16.4
gear_system_type = 1
tailwheel_lock = 0
max_number_of_points = 16
gear_locked_on_ground = 0
gear_locked_above_speed = -1
max_speed_full_steering = 25
min_available_steering_angle_pct = 0.2
max_speed_decreasing_steering = 45
max_speed_full_steering_castering = 20
max_speed_decreasing_steering_castering = 35
emergency_extension_type = 2
hyd_need_power_to_function= 0
min_castering_angle = 0.05236
max_castering_angle = 3.142
allow_stopped_steering = 1
point.0 = 1, 64.22, 0.00, -17.31, 1500, 0, 1.67, 70, 1.15, 1.183, 0.9, 49, 50, 0, 200, 250, 8
point.1 = 1, -19.00, -17.15, -18.02, 2000, 1, 2.25, 0, 1.60, 1.116, 0.9, 51, 52, 2, 200, 250, 8
point.2 = 1, -19.00, 17.15, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 53, 54, 3, 200, 250, 8
point.3 = 1, -19.00, 0.00, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 55, 56, 3, 200, 250, 8
point.4 = 2, 93.0, 0.0, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.5 = 2, -48, -82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 5, 0, 0, 1
point.6 = 2, -48, 82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 6, 0, 0, 1
point.7 = 2, 60, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.8 = 2, 60, 0.0, 11.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.9 = 2, 16.0, -28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.10 = 2, 16.0, 28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.11 = 2, -110.0, 0.00, 14.20, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.12 = 2, -96.5, 0.0, 42.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.13 = 2, -94.5, -30.0, 8.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.14 = 2, -94.5, 30.0, 8.05, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.15 = 2, -52.0, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
[FUEL]
LeftMain = -20.00, -38.00, -1.0, 8938, 10.00
RightMain = -20.00, 38.00, -1.0, 8938, 10.00
Center1 = 10.00, 0.00, -3.00, 13000.00, 10.00
Center2 = 0.00, 0.00, -1.00, 1642.00, 10.00
Center3 = 0.00, 0.00, -5.00, 1958.00, 11.00
LeftTip = -39.00, -74.00, 0.00, 884.00, 10.00
RightTip = -39.00, 74.00, 0.00, 884.00, 10.00
External1 = -70.00, 0.00, -3.00, 2371.00, 10.00
//KH From 5.00, -2.00, -3.00, 0.00, 10.00
LeftAux = 5.00, -2.00, -3.00, 1973.00, 10.00
//KH From 5.00, 2.00, -3.00, 0.00, 10.0
RightAux = 5.00, 2.00, -3.00, 1973.00, 10.00
fuel_type = 2
number_of_tank_selectors = 3
electric_pump = 0
engine_driven_pump = 1
manual_transfer_pump = 0
manual_pump = 0
anemometer_pump = 0
fuel_dump_rate = 0.02
default_fuel_tank_selector.1 = 1
default_fuel_tank_selector.2 = 1
default_fuel_tank_selector.3 = 1
[AIRPLANE_GEOMETRY]
wing_area = 3648
wing_span = 170.5
wing_root_chord = 34.68
wing_camber = 1
wing_thickness_ratio = 0.04
wing_dihedral = 2.2
wing_incidence = 1.5
wing_twist = -0.5
oswald_efficiency_factor = 0.72
wing_winglets_flag = 1
wing_sweep = 38
wing_pos_apex_lon = 1
wing_pos_apex_vert = -2.75
htail_area = 920
htail_span = 59.5
htail_pos_lon = -88
htail_pos_vert = 5.0
htail_incidence = 0.8
htail_sweep = 36.5
htail_thickness_ratio = 0.02
vtail_area = 760
vtail_span = 28.1
vtail_sweep = 43
vtail_pos_lon = -79.5
vtail_pos_vert = 28
vtail_thickness_ratio = 0.03
fuselage_length = 200.92
fuselage_diameter = 19.75
fuselage_center_pos = 10, 0, 1.0
elevator_area = 327.0
aileron_area = 225.0
rudder_area = 190.0
elevator_up_limit = 25
elevator_down_limit = 15
aileron_up_limit = 25
aileron_down_limit = 15
rudder_limit = 23
rudder_trim_limit = 20
elevator_trim_limit = 30
spoiler_limit = 60
spoilerons_available = 1
aileron_to_spoileron_gain = 3
min_ailerons_for_spoilerons = 10
min_flaps_for_spoilerons = 0
spoiler_extension_time = 2.0
spoiler_handle_available = 1
auto_spoiler_available = 1
auto_spoiler_auto_retracts = 0
auto_spoiler_min_speed = 72
positive_g_limit_flaps_up = 5.0
positive_g_limit_flaps_down = 4.0
negative_g_limit_flaps_up = -4.0
negative_g_limit_flaps_down = -3.0
load_safety_factor = 1.5
elevator_trim_neutral = -1
aileron_to_rudder_scale = 0
flap_to_aileron_scale = 0
fly_by_wire = 0
elevator_elasticity_table = 0:0.7, 87:0.3, 210:0.5, 315:0.5
aileron_elasticity_table = 0:1, 300:0.7, 600:0.6, 1500:0.4
rudder_elasticity_table = 0:1, 300:1, 800:1, 1000:0.7
elevator_trim_elasticity_table = 0:0.0, 87:0.40, 240:0.60, 295:1.00, 315:1.00
[AERODYNAMICS]
lift_coef_pitch_rate = -8.09375
lift_coef_daoa = 2.68359
lift_coef_delta_elevator = -0.28906
lift_coef_horizontal_incidence = 0.91357
lift_coef_flaps = 1
lift_coef_spoilers = 0
drag_coef_zero_lift = 0.02539
drag_coef_flaps = 0.1339
drag_coef_gear = 0.0549
drag_coef_spoilers = 0.05207
side_force_slip_angle = -0.77392
side_force_roll_rate = 0.15478
side_force_yaw_rate = 0
side_force_delta_rudder = -0.14746
pitch_moment_horizontal_incidence = 4.24755
pitch_moment_delta_elevator = -2.37011
pitch_moment_delta_trim = 0
pitch_moment_pitch_damping = -214.1455
pitch_moment_aoa_0 = 0.11621
pitch_moment_daoa = 8.87255
pitch_moment_flaps = 0.0105
pitch_moment_gear = 0.0171
pitch_moment_spoilers = 0
pitch_moment_delta_elevator_propwash = -2.37011
pitch_moment_pitch_propwash = -214.1455
roll_moment_slip_angle = 0.26855
roll_moment_roll_damping = -3.40869
roll_moment_yaw_rate = -0.27197
roll_moment_spoilers = 0.07
roll_moment_delta_aileron = -0.34521
roll_moment_delta_rudder = 0.01660
roll_moment_delta_aileron_trim_scalar = -0.2
yaw_moment_slip_angle = 0.18066
yaw_moment_roll = 0.07470
yaw_moment_yaw_damping = -2.49023
yaw_moment_yaw_propwash = 0
yaw_moment_delta_aileron = -0.00683
yaw_moment_delta_rudder = 0.07128
yaw_moment_delta_rudder_propwash = 0.075
yaw_moment_delta_rudder_trim_scalar = -0.2
compute_aero_center = 0
aero_center_lift = -13.75
lift_coef_aoa_table = -3.15:0, -2.36:0.36, -1.57:0, -0.349:-1.2, 0:-0.022, 0.0314:0.6082, 0.221:2.049, 0.244:1.15, 0.349:0.6, 0.436:0.5, 0.698:0.1, 1.963:-0.359, 2.356:-0.5, 3.15:0
lift_coef_ground_effect_mach_table = 0.06:0.50, 0.227:0.80, 0.242:0.80, 0.3:1.0, 0.9:1.0
lift_coef_mach_table = 0:1
lift_coef_delta_elevator_mach_table = 0:0
lift_coef_daoa_mach_table = 0:0
lift_coef_pitch_rate_mach_table = 0:0
lift_coef_horizontal_incidence_mach_table = 0:0
drag_coef_zero_lift_mach_tab = 0:0, 0.4:0.0054, 0.5:0.0056, 0.6:0.0059, 0.7:0.0062, 0.72:0.0062, 0.8:0.0063, 0.8:0.0063, 1:0.0337, 1.2:0.0337, 1.4:0.0337, 1.6:0.0337, 1.8:0.0337, 2.0:0.0337
side_force_slip_angle_mach_table = 0:0
side_force_delta_rudder_mach_table = 0:0
side_force_yaw_rate_mach_table = 0:0
side_force_roll_rate_mach_table = 0:0
pitch_moment_aoa_table = -3.15:-2, -0.436:-0.626, -0.262:-0.434, 0:-0.146, 0.087:-0.05, 0.175:0.0466, 0.262:0.143, 0.314:0.2, 0.349:0.1, 0.436:0.15, 3.15:2
pitch_moment_delta_elevator_aoa_table = -180:-1, -40:0.05, -20:0.455, -14:0.853, -7:1.007, 0:1, 7:0.839, 14:0.693, 20:0.381, 40:-0.08, 180:-1
pitch_moment_horizontal_incidence_aoa_table = 0:1
pitch_moment_daoa_aoa_table = 0:1
pitch_moment_pitch_alpha_table = 0:1
pitch_moment_delta_elevator_mach_table = 0:0
pitch_moment_daoa_mach_table = 0:0
pitch_moment_pitch_rate_mach_table = 0:0
pitch_moment_horizontal_incidence_mach_table = 0:0
pitch_moment_aoa_0_mach_table = 0:0
roll_moment_aoa_table = 0:0
roll_moment_slip_angle_aoa_table = 0:1
roll_moment_roll_rate_aoa_table = 0:1
roll_moment_delta_aileron_aoa_table = 0:1
roll_moment_slip_angle_mach_table = 0:0
roll_moment_delta_rudder_mach_table = 0:0
roll_moment_delta_aileron_mach_table = 0:0
roll_moment_yaw_rate_mach_table = 0:0
roll_moment_roll_rate_mach_table = 0:0
yaw_moment_aoa_table = 0:0
yaw_moment_slip_angle_aoa_table = 0:1
yaw_moment_yaw_rate_aoa_table = 0:1
yaw_moment_delta_rudder_aoa_table = 0:1
yaw_moment_slip_angle_mach_table = 0:0
yaw_moment_delta_rudder_mach_table = 0:0
yaw_moment_delta_aileron_mach_table = 0:0
yaw_moment_yaw_rate_mach_table = 0:0
yaw_moment_roll_rate_mach_table = 0:0
elevator_scaling_table = -0.785:0.5, -0.524:0.85, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.85, 0.785:0.5 ; 0:1
aileron_scaling_table = -0.785:1 ;0:1
rudder_scaling_table = -0.785:0.5, -0.524:0.6, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.6, 0.785:0.5 ;0:1
elevator_lift_coef=3
rudder_lift_coef=2
aileron_load_factor_effectiveness_table = 0:1
lift_coef_at_drag_zero = 0.1
lift_coef_at_drag_zero_flaps = 0.1
[FLIGHT_TUNING]
modern_fm_only = 1
cruise_lift_scalar = 1
parasite_drag_scalar = 1
induced_drag_scalar = 1
flap_induced_drag_scalar = 1
elevator_effectiveness = 1.1
elevator_maxangle_scalar = 1
aileron_effectiveness = 1
rudder_effectiveness = 1
rudder_maxangle_scalar = 1
pitch_stability = 5
roll_stability = 1
yaw_stability = 1
pitch_gyro_stability = 1
roll_gyro_stability = 1
yaw_gyro_stability = 1
empty_CG_deviation_limit=0
elevator_trim_effectiveness = 1.5
aileron_trim_effectiveness = 1
rudder_trim_effectiveness = 1
hi_alpha_on_roll = 0
hi_alpha_on_yaw = 0
p_factor_on_yaw = 0
torque_on_roll = 0
gyro_precession_on_roll = 0
gyro_precession_on_yaw = 0
engine_wash_on_roll = 0
wingflex_scalar = 2
wingflex_offset = 0
stall_coef_at_min_weight = 0.71
ground_crosswind_effect_zero_speed=10
ground_crosswind_effect_max_speed=150
ground_high_speed_steeringwheel_static_friction_scalar=1.5
ground_high_speed_otherwheel_static_friction_scalar=1.2
[REFERENCE SPEEDS]
full_flaps_stall_speed = 115
flaps_up_stall_speed = 149
cruise_speed = 345
cruise_mach = 0.85
crossover_speed = 330
max_mach = 0.9
max_indicated_speed = 395
max_flaps_extended = 170
normal_operating_speed = 325
airspeed_indicator_max = 562.5
rotation_speed_min = 145
climb_speed = 250
cruise_alt = 41000
takeoff_speed = 165
spawn_cruise_altitude = 5000
spawn_descent_altitude = 500
best_angle_climb_speed = 0
approach_speed = 0
best_glide = 0
max_gear_extended = 200
[INTERACTIVE POINTS]
number_of_interactive_points = 8
interactive_point.0 = 0.4,75.650002,-7.92,-0.567,0,0,0,-75,33,2,33,2,2,33,-1
interactive_point.1 = 0.4,75.650002,7.92,-0.567,0,0,0,75,33,2,33,2,2,33,-1
interactive_point.2 = 0.4,33.299999,6.28,-7.18,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.3 = 0.4,-51.700363,6.28,-7.180745,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.4 = 0.4,-68.277824,-2.822939,-5.923376,1,2.395636,12.258935,79.089348,0,0,0,0,0,0,-1
interactive_point.5 = 0,85.062134,-3.882079,4.412694,2,-0,-29.85655,42.814491,0,0,0,0,0,0,-1
interactive_point.6 = 0,85.062134,3.882079,4.412694,2,-0,29.85655,-42.814491,0,0,0,0,0,0,-1
interactive_point.7 = 0,54.038418,-9.45901,-0.003025,1,0,0,0,0,0,0,0,0,0,-1
[STALL PROTECTION]
stall_protection = 1 ; Alpha Protection
off_limit = 11.5 ; Alpha below which the Alpha Protection can be disabled (If also below off_yoke_limit)
off_yoke_limit = 1 ; Yoke position (in Pct) below which the Alpha Protection can be disabled (If also below off_limit)
on_limit = 14 ; Alpha above which the Alpha Protection timer starts
on_goal = 10 ; The alpha that the Alpha Protection will attempt to reach when triggered
timer_trigger = 1.0 ; Duration (in Sec) the alpha must be above on_limit before the Alpha Protection is triggered
;===================== FLAPS =====================
[FLAPS.0]
type = 1
system_type = 1
span-outboard = 0.25
extending-time = 22
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.1]
type = 1
system_type = 1
span-outboard = 0.7
extending-time = 23
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.2]
type = 2
system_type = 1
span-outboard = 0.2
extending-time = 8
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
[FLAPS.3]
type = 2
system_type = 1
span-outboard = 0.7
extending-time = 21
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
@@ -0,0 +1,408 @@
; TFDi Designs MD-11F (P&W PW4662) vRC1.8.0_PW_F 04FEB26
[MODULAR_MERGE]
auto = true
[VERSION]
//KH Bump major
major = 4
minor = 8
[WEIGHT_AND_BALANCE]
max_gross_weight = 630500
empty_weight = 248567
reference_datum_position = 0, 0, 0
empty_weight_CG_position = -10.0, 0, 0
CG_forward_limit = 0.12
CG_aft_limit = 0.34
empty_weight_pitch_MOI = 20897456
empty_weight_roll_MOI = 6368555
empty_weight_yaw_MOI = 40761191
empty_weight_coupled_MOI = 0
activate_mach_limit_based_on_cg = 0
activate_cg_limit_based_on_mach = 0
max_number_of_stations = 15
//KH START Empty default
station_load.0=190.0, 82.0, -2.0, 4.0, Pilot, 1
station_load.1=190.0, 82.0, 2.0, 4.0, First Officer, 2
station_load.2=190.0, 80.0, 3.3, 4.0, Engineer, 0
station_load.3=0, 55.0, -5.0, 4.0, Upper zone 1 L, 0
station_load.4=0, 55.0, 5.0, 4.0, Upper zone 1 R, 0
station_load.5=0, 20.0, -5.0, 4.0, Upper zone 2 L, 0
station_load.6=0, 20.0, 5.0, 4.0, Upper zone 2 R, 0
station_load.7=0, -20.0, -5.0, 4.0, Upper zone 3 L, 0
station_load.8=0, -20.0, 5.0, 4.0, Upper zone 3 R, 0
station_load.9=0, -50.0, -5.0, 4.0, Upper zone 4 L, 0
station_load.10=0, -50.0, 5.0, 4.0, Upper zone 4 R, 0
station_load.11=0, 30.0, 0.0, -4.5, Lower forward cargo, 0
station_load.12=0, -30.0, 0.0, -4.5, Lower rear cargo, 0
station_load.13=0, 5.0, -2.0, -4.5, Left aux tank, 0
station_load.14=0, 5.0, 2.0, -4.5, Right aux tank, 0
//KH END
[CONTACT_POINTS]
static_pitch = 0
static_cg_height = 16.4
gear_system_type = 1
tailwheel_lock = 0
max_number_of_points = 16
gear_locked_on_ground = 0
gear_locked_above_speed = -1
max_speed_full_steering = 25
min_available_steering_angle_pct = 0.2
max_speed_decreasing_steering = 45
max_speed_full_steering_castering = 20
max_speed_decreasing_steering_castering = 35
emergency_extension_type = 2
hyd_need_power_to_function= 0
min_castering_angle = 0.05236
max_castering_angle = 3.142
allow_stopped_steering = 1
point.0 = 1, 64.22, 0.00, -17.31, 1500, 0, 1.67, 70, 1.15, 1.183, 0.9, 49, 50, 0, 200, 250, 8
point.1 = 1, -19.00, -17.15, -18.02, 2000, 1, 2.25, 0, 1.60, 1.116, 0.9, 51, 52, 2, 200, 250, 8
point.2 = 1, -19.00, 17.15, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 53, 54, 3, 200, 250, 8
point.3 = 1, -19.00, 0.00, -18.02, 2000, 2, 2.25, 0, 1.60, 1.116, 0.9, 55, 56, 3, 200, 250, 8
point.4 = 2, 93.0, 0.0, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.5 = 2, -48, -82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 5, 0, 0, 1
point.6 = 2, -48, 82.5, 0.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 6, 0, 0, 1
point.7 = 2, 60, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.8 = 2, 60, 0.0, 11.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
point.9 = 2, 16.0, -28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.10 = 2, 16.0, 28.00, -13.00, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.11 = 2, -110.0, 0.00, 14.20, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.12 = 2, -96.5, 0.0, 42.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.13 = 2, -94.5, -30.0, 8.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.14 = 2, -94.5, 30.0, 8.05, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 4, 0, 0, 1
point.15 = 2, -52.0, 0.0, -9.0, 787, 0, 0.0, 0, 0.00, 0.0, 0.0, 0.0, 0.0, 9, 0, 0, 1
[FUEL]
LeftMain = -20.00, -38.00, -1.0, 8938, 10.00
RightMain = -20.00, 38.00, -1.0, 8938, 10.00
Center1 = 10.00, 0.00, -3.00, 13000.00, 10.00
Center2 = 0.00, 0.00, -1.00, 1642.00, 10.00
Center3 = 0.00, 0.00, -5.00, 1958.00, 11.00
LeftTip = -39.00, -74.00, 0.00, 884.00, 10.00
RightTip = -39.00, 74.00, 0.00, 884.00, 10.00
External1 = -70.00, 0.00, -3.00, 2371.00, 10.00
//KH From 5.00, -2.00, -3.00, 0.00, 10.00
LeftAux = 5.00, -2.00, -3.00, 1973.00, 10.00
//KH From 5.00, 2.00, -3.00, 0.00, 10.0
RightAux = 5.00, 2.00, -3.00, 1973.00, 10.00
fuel_type = 2
number_of_tank_selectors = 3
electric_pump = 0
engine_driven_pump = 1
manual_transfer_pump = 0
manual_pump = 0
anemometer_pump = 0
fuel_dump_rate = 0.02
default_fuel_tank_selector.1 = 1
default_fuel_tank_selector.2 = 1
default_fuel_tank_selector.3 = 1
[AIRPLANE_GEOMETRY]
wing_area = 3648
wing_span = 170.5
wing_root_chord = 34.68
wing_camber = 1
wing_thickness_ratio = 0.04
wing_dihedral = 2.2
wing_incidence = 1.5
wing_twist = -0.5
oswald_efficiency_factor = 0.72
wing_winglets_flag = 1
wing_sweep = 38
wing_pos_apex_lon = 1
wing_pos_apex_vert = -2.75
htail_area = 920
htail_span = 59.5
htail_pos_lon = -88
htail_pos_vert = 5.0
htail_incidence = 0.8
htail_sweep = 36.5
htail_thickness_ratio = 0.02
vtail_area = 760
vtail_span = 28.1
vtail_sweep = 43
vtail_pos_lon = -79.5
vtail_pos_vert = 28
vtail_thickness_ratio = 0.03
fuselage_length = 200.92
fuselage_diameter = 19.75
fuselage_center_pos = 10, 0, 1.0
elevator_area = 327.0
aileron_area = 225.0
rudder_area = 190.0
elevator_up_limit = 25
elevator_down_limit = 15
aileron_up_limit = 25
aileron_down_limit = 15
rudder_limit = 23
rudder_trim_limit = 20
elevator_trim_limit = 30
spoiler_limit = 60
spoilerons_available = 1
aileron_to_spoileron_gain = 3
min_ailerons_for_spoilerons = 10
min_flaps_for_spoilerons = 0
spoiler_extension_time = 2.0
spoiler_handle_available = 1
auto_spoiler_available = 1
auto_spoiler_auto_retracts = 0
auto_spoiler_min_speed = 72
positive_g_limit_flaps_up = 5.0
positive_g_limit_flaps_down = 4.0
negative_g_limit_flaps_up = -4.0
negative_g_limit_flaps_down = -3.0
load_safety_factor = 1.5
elevator_trim_neutral = -1
aileron_to_rudder_scale = 0
flap_to_aileron_scale = 0
fly_by_wire = 0
elevator_elasticity_table = 0:0.7, 87:0.3, 210:0.5, 315:0.5
aileron_elasticity_table = 0:1, 300:0.7, 600:0.6, 1500:0.4
rudder_elasticity_table = 0:1, 300:1, 800:1, 1000:0.7
elevator_trim_elasticity_table = 0:0.0, 87:0.40, 240:0.60, 295:1.00, 315:1.00
[AERODYNAMICS]
lift_coef_pitch_rate = -8.09375
lift_coef_daoa = 2.68359
lift_coef_delta_elevator = -0.28906
lift_coef_horizontal_incidence = 0.91357
lift_coef_flaps = 1
lift_coef_spoilers = 0
drag_coef_zero_lift = 0.02539
drag_coef_flaps = 0.1339
drag_coef_gear = 0.0549
drag_coef_spoilers = 0.05207
side_force_slip_angle = -0.77392
side_force_roll_rate = 0.15478
side_force_yaw_rate = 0
side_force_delta_rudder = -0.14746
pitch_moment_horizontal_incidence = 4.24755
pitch_moment_delta_elevator = -2.37011
pitch_moment_delta_trim = 0
pitch_moment_pitch_damping = -214.1455
pitch_moment_aoa_0 = 0.11621
pitch_moment_daoa = 8.87255
pitch_moment_flaps = 0.0105
pitch_moment_gear = 0.0171
pitch_moment_spoilers = 0
pitch_moment_delta_elevator_propwash = -2.37011
pitch_moment_pitch_propwash = -214.1455
roll_moment_slip_angle = 0.26855
roll_moment_roll_damping = -3.40869
roll_moment_yaw_rate = -0.27197
roll_moment_spoilers = 0.07
roll_moment_delta_aileron = -0.34521
roll_moment_delta_rudder = 0.01660
roll_moment_delta_aileron_trim_scalar = -0.2
yaw_moment_slip_angle = 0.18066
yaw_moment_roll = 0.07470
yaw_moment_yaw_damping = -2.49023
yaw_moment_yaw_propwash = 0
yaw_moment_delta_aileron = -0.00683
yaw_moment_delta_rudder = 0.07128
yaw_moment_delta_rudder_propwash = 0.075
yaw_moment_delta_rudder_trim_scalar = -0.2
compute_aero_center = 0
aero_center_lift = -13.75
lift_coef_aoa_table = -3.15:0, -2.36:0.36, -1.57:0, -0.349:-1.2, 0:-0.022, 0.0314:0.6082, 0.221:2.049, 0.244:1.15, 0.349:0.6, 0.436:0.5, 0.698:0.1, 1.963:-0.359, 2.356:-0.5, 3.15:0
lift_coef_ground_effect_mach_table = 0.06:0.50, 0.227:0.80, 0.242:0.80, 0.3:1.0, 0.9:1.0
lift_coef_mach_table = 0:1
lift_coef_delta_elevator_mach_table = 0:0
lift_coef_daoa_mach_table = 0:0
lift_coef_pitch_rate_mach_table = 0:0
lift_coef_horizontal_incidence_mach_table = 0:0
drag_coef_zero_lift_mach_tab = 0:0, 0.4:0.0054, 0.5:0.0056, 0.6:0.0059, 0.7:0.0062, 0.72:0.0062, 0.8:0.0063, 0.8:0.0063, 1:0.0337, 1.2:0.0337, 1.4:0.0337, 1.6:0.0337, 1.8:0.0337, 2.0:0.0337
side_force_slip_angle_mach_table = 0:0
side_force_delta_rudder_mach_table = 0:0
side_force_yaw_rate_mach_table = 0:0
side_force_roll_rate_mach_table = 0:0
pitch_moment_aoa_table = -3.15:-2, -0.436:-0.626, -0.262:-0.434, 0:-0.146, 0.087:-0.05, 0.175:0.0466, 0.262:0.143, 0.314:0.2, 0.349:0.1, 0.436:0.15, 3.15:2
pitch_moment_delta_elevator_aoa_table = -180:-1, -40:0.05, -20:0.455, -14:0.853, -7:1.007, 0:1, 7:0.839, 14:0.693, 20:0.381, 40:-0.08, 180:-1
pitch_moment_horizontal_incidence_aoa_table = 0:1
pitch_moment_daoa_aoa_table = 0:1
pitch_moment_pitch_alpha_table = 0:1
pitch_moment_delta_elevator_mach_table = 0:0
pitch_moment_daoa_mach_table = 0:0
pitch_moment_pitch_rate_mach_table = 0:0
pitch_moment_horizontal_incidence_mach_table = 0:0
pitch_moment_aoa_0_mach_table = 0:0
roll_moment_aoa_table = 0:0
roll_moment_slip_angle_aoa_table = 0:1
roll_moment_roll_rate_aoa_table = 0:1
roll_moment_delta_aileron_aoa_table = 0:1
roll_moment_slip_angle_mach_table = 0:0
roll_moment_delta_rudder_mach_table = 0:0
roll_moment_delta_aileron_mach_table = 0:0
roll_moment_yaw_rate_mach_table = 0:0
roll_moment_roll_rate_mach_table = 0:0
yaw_moment_aoa_table = 0:0
yaw_moment_slip_angle_aoa_table = 0:1
yaw_moment_yaw_rate_aoa_table = 0:1
yaw_moment_delta_rudder_aoa_table = 0:1
yaw_moment_slip_angle_mach_table = 0:0
yaw_moment_delta_rudder_mach_table = 0:0
yaw_moment_delta_aileron_mach_table = 0:0
yaw_moment_yaw_rate_mach_table = 0:0
yaw_moment_roll_rate_mach_table = 0:0
elevator_scaling_table = -0.785:0.5, -0.524:0.85, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.85, 0.785:0.5 ; 0:1
aileron_scaling_table = -0.785:1 ;0:1
rudder_scaling_table = -0.785:0.5, -0.524:0.6, -0.175:0.9, 0:1, 0.175:0.9, 0.524:0.6, 0.785:0.5 ;0:1
elevator_lift_coef=3
rudder_lift_coef=2
aileron_load_factor_effectiveness_table = 0:1
lift_coef_at_drag_zero = 0.1
lift_coef_at_drag_zero_flaps = 0.1
[FLIGHT_TUNING]
modern_fm_only = 1
cruise_lift_scalar = 1
parasite_drag_scalar = 1
induced_drag_scalar = 1
flap_induced_drag_scalar = 1
elevator_effectiveness = 1.1
elevator_maxangle_scalar = 1
aileron_effectiveness = 1
rudder_effectiveness = 1
rudder_maxangle_scalar = 1
pitch_stability = 5
roll_stability = 1
yaw_stability = 1
pitch_gyro_stability = 1
roll_gyro_stability = 1
yaw_gyro_stability = 1
empty_CG_deviation_limit=0
elevator_trim_effectiveness = 1.5
aileron_trim_effectiveness = 1
rudder_trim_effectiveness = 1
hi_alpha_on_roll = 0
hi_alpha_on_yaw = 0
p_factor_on_yaw = 0
torque_on_roll = 0
gyro_precession_on_roll = 0
gyro_precession_on_yaw = 0
engine_wash_on_roll = 0
wingflex_scalar = 2
wingflex_offset = 0
stall_coef_at_min_weight = 0.71
ground_crosswind_effect_zero_speed=10
ground_crosswind_effect_max_speed=150
ground_high_speed_steeringwheel_static_friction_scalar=1.5
ground_high_speed_otherwheel_static_friction_scalar=1.2
[REFERENCE SPEEDS]
full_flaps_stall_speed = 115
flaps_up_stall_speed = 149
cruise_speed = 345
cruise_mach = 0.85
crossover_speed = 330
max_mach = 0.9
max_indicated_speed = 395
max_flaps_extended = 170
normal_operating_speed = 325
airspeed_indicator_max = 562.5
rotation_speed_min = 145
climb_speed = 250
cruise_alt = 41000
takeoff_speed = 165
spawn_cruise_altitude = 5000
spawn_descent_altitude = 500
best_angle_climb_speed = 0
approach_speed = 0
best_glide = 0
max_gear_extended = 200
[INTERACTIVE POINTS]
number_of_interactive_points = 8
interactive_point.0 = 0.4,75.650002,-7.92,-0.567,0,0,0,-75,33,2,33,2,2,33,-1
interactive_point.1 = 0.4,75.650002,7.92,-0.567,0,0,0,75,33,2,33,2,2,33,-1
interactive_point.2 = 0.4,33.299999,6.28,-7.18,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.3 = 0.4,-51.700363,6.28,-7.180745,1,0,0,90,0,0,0,0,0,0,-1
interactive_point.4 = 0.4,-68.277824,-2.822939,-5.923376,1,2.395636,12.258935,79.089348,0,0,0,0,0,0,-1
interactive_point.5 = 0,85.062134,-3.882079,4.412694,2,-0,-29.85655,42.814491,0,0,0,0,0,0,-1
interactive_point.6 = 0,85.062134,3.882079,4.412694,2,-0,29.85655,-42.814491,0,0,0,0,0,0,-1
interactive_point.7 = 0,54.038418,-9.45901,-0.003025,1,0,0,0,0,0,0,0,0,0,-1
[STALL PROTECTION]
stall_protection = 1 ; Alpha Protection
off_limit = 11.5 ; Alpha below which the Alpha Protection can be disabled (If also below off_yoke_limit)
off_yoke_limit = 1 ; Yoke position (in Pct) below which the Alpha Protection can be disabled (If also below off_limit)
on_limit = 14 ; Alpha above which the Alpha Protection timer starts
on_goal = 10 ; The alpha that the Alpha Protection will attempt to reach when triggered
timer_trigger = 1.0 ; Duration (in Sec) the alpha must be above on_limit before the Alpha Protection is triggered
;===================== FLAPS =====================
[FLAPS.0]
type = 1
system_type = 1
span-outboard = 0.25
extending-time = 22
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.1]
type = 1
system_type = 1
span-outboard = 0.7
extending-time = 23
damaging-speed = 280
blowout-speed = 310
maneuvering_flaps = 0
lift_scalar = 0.1
drag_scalar = 1.1
pitch_scalar = 1
max_on_ground_position = 7
flaps-position.0 = 0, -1, 0
flaps-position.1 = 0, -1, 0
flaps-position.2 = 15, 215, 0.45, 2, 0, 0, 0, 1
flaps-position.3 = 20, 200, 0.46, 1.1, 0, 0, 0, 1
flaps-position.4 = 24, 185, 0.48, 1.0, 0, 0, 0, 1
flaps-position.5 = 28, 177, 0.3, 1.0, 1.5, 0, 0
flaps-position.6 = 35, 160, 0.32, 1
flaps-position.7 = 50, 155, 0.43, 1
[FLAPS.2]
type = 2
system_type = 1
span-outboard = 0.2
extending-time = 8
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
[FLAPS.3]
type = 2
system_type = 1
span-outboard = 0.7
extending-time = 21
damaging-speed = 300
blowout-speed = 330
maneuvering_flaps = 0
lift_scalar = 0.5
drag_scalar = 0.75
pitch_scalar = 1
max_on_ground_position = 1
flaps-position.0 = 0, -1, 0
flaps-position.1 = 20, 215, 0.5, 0.5
@@ -1,59 +0,0 @@
// Panel Configuration File
// TFDi Design MD-11
[VCockpit01]
size_mm=2048,2048
visible=1
pixel_size=2048,2048
texture=$vc1
background_color=0,0,0
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=Core, 0,0,509,510,PW
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU1,0,0,508,508
htmlgauge02=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU2,514,0,510,510
htmlgauge03=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU3,1027,0,510,510
htmlgauge04=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU4,1539,0,510,508
htmlgauge05=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU5,0,513,511,509
htmlgauge06=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU6,513,512,510,511
htmlgauge07=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=LMCDU, 0,1046,333,287
htmlgauge08=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=RMCDU,0,1386,334,288
htmlgauge09=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=CMCDU,0,1728,333,285
htmlgauge10=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=ISFD,1032,519,544,505
//KH new gauge
htmlgauge11=WasmInstrument/WasmInstrument.html?wasm_module=load-manager.wasm&wasm_gauge=Load_Manager,0,0,509,510
[VIEWS]
VIEW_FORWARD_DIR=2.000, 0.000, 0.000
[Color]
Day=255,255,255
Night=255,255,255
Luminous=201,64,64
[Vcockpit02]
Background_color=0,0,0
size_mm=1024,1024
visible=1
pixel_size=1024,1024
texture=$vc2
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=AFS,3,0,1015,185
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=FUEL,4,200,1016,196
//above should actually be 3,192,1018,199 - moved due to visual offset
[Vcockpit03]
Background_color=0,0,0
size_mm=1024,1024
visible=1
pixel_size=1024,1024
texture=$RADIOS_XPNDR
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=RADIOS_XPNDR,0,5,1019,295
[VCockpit04]
Background_color=0,0,0
size_mm=1536,1024
visible=1
pixel_size=1536,1024
texture=$EFB
htmlgauge00=aircraft_efb/TFDi_MD11_efb/efb.html,0,0,1536,1024
@@ -1,59 +0,0 @@
// Panel Configuration File
// TFDi Design MD-11
[VCockpit01]
size_mm=2048,2048
visible=1
pixel_size=2048,2048
texture=$vc1
background_color=0,0,0
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=Core, 0,0,509,510
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU1,0,0,508,508
htmlgauge02=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU2,514,0,510,510
htmlgauge03=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU3,1027,0,510,510
htmlgauge04=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU4,1539,0,510,508
htmlgauge05=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU5,0,513,511,509
htmlgauge06=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU6,513,512,510,511
htmlgauge07=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=LMCDU, 0,1046,333,287
htmlgauge08=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=RMCDU,0,1386,334,288
htmlgauge09=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=CMCDU,0,1728,333,285
htmlgauge10=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=ISFD,1032,519,544,505
//KH new gauge
htmlgauge11=WasmInstrument/WasmInstrument.html?wasm_module=load-manager.wasm&wasm_gauge=Load_Manager,0,0,509,510
[VIEWS]
VIEW_FORWARD_DIR=2.000, 0.000, 0.000
[Color]
Day=255,255,255
Night=255,255,255
Luminous=201,64,64
[Vcockpit02]
Background_color=0,0,0
size_mm=1024,1024
visible=1
pixel_size=1024,1024
texture=$vc2
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=AFS,3,0,1015,185
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=FUEL,4,200,1016,196
//above should actually be 3,192,1018,199 - moved due to visual offset
[Vcockpit03]
Background_color=0,0,0
size_mm=1024,1024
visible=1
pixel_size=1024,1024
texture=$RADIOS_XPNDR
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=RADIOS_XPNDR,0,5,1019,295
[VCockpit04]
Background_color=0,0,0
size_mm=1536,1024
visible=1
pixel_size=1536,1024
texture=$EFB
htmlgauge00=aircraft_efb/TFDi_MD11_efb/efb.html,0,0,1536,1024
@@ -1,59 +0,0 @@
// Panel Configuration File
// TFDi Design MD-11
[VCockpit01]
size_mm=2048,2048
visible=1
pixel_size=2048,2048
texture=$vc1
background_color=0,0,0
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=Core, 0,0,509,510,PW
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU1,0,0,508,508
htmlgauge02=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU2,514,0,510,510
htmlgauge03=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU3,1027,0,510,510
htmlgauge04=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU4,1539,0,510,508
htmlgauge05=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU5,0,513,511,509
htmlgauge06=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=DU6,513,512,510,511
htmlgauge07=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=LMCDU, 0,1046,333,287
htmlgauge08=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=RMCDU,0,1386,334,288
htmlgauge09=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=CMCDU,0,1728,333,285
htmlgauge10=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=ISFD,1032,519,544,505
//KH new gauge
htmlgauge11=WasmInstrument/WasmInstrument.html?wasm_module=load-manager.wasm&wasm_gauge=Load_Manager,0,0,509,510
[VIEWS]
VIEW_FORWARD_DIR=2.000, 0.000, 0.000
[Color]
Day=255,255,255
Night=255,255,255
Luminous=201,64,64
[Vcockpit02]
Background_color=0,0,0
size_mm=1024,1024
visible=1
pixel_size=1024,1024
texture=$vc2
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=AFS,3,0,1015,185
htmlgauge01=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=FUEL,4,200,1016,196
//above should actually be 3,192,1018,199 - moved due to visual offset
[Vcockpit03]
Background_color=0,0,0
size_mm=1024,1024
visible=1
pixel_size=1024,1024
texture=$RADIOS_XPNDR
htmlgauge00=WasmInstrument/WasmInstrument.html?wasm_module=md11host.wasm&wasm_gauge=RADIOS_XPNDR,0,5,1019,295
[VCockpit04]
Background_color=0,0,0
size_mm=1536,1024
visible=1
pixel_size=1536,1024
texture=$EFB
htmlgauge00=aircraft_efb/TFDi_MD11_efb/efb.html,0,0,1536,1024
+2
View File
@@ -4,3 +4,5 @@
/// <reference types="@microsoft/msfs-types/js/buttons.d.ts" />
/// <reference types="@microsoft/msfs-types/js/services/toolbarpanels.d.ts" />
/// <reference types="@microsoft/msfs-types/js/simvar.d.ts" />
function useSelector(selector: (state: any) => any): any;
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "tfdidesign-md11-load-manager",
"version": "0.1.21",
"name": "js-bundle",
"version": "0.2.34",
"description": "",
"main": "index.js",
"type": "module",
@@ -10,12 +10,11 @@
"licenses": "license-report --output=markdown > ./src/assets/licenses_node.md",
"debugger": "cd \"%MSFS_SDK%\\Tools\\CoherentGT Debugger\" && Debugger.exe",
"locale": "cd \"%MSFS_SDK%\\Tools\\MSFS_Localization\" && MSFSLocalizationManager.exe",
"clean": "rimraf ..\\html_ui\\Pages\\VCockpit\\Instruments\\aircraft_efb\\KH_TFDi_MD11_efb",
"dev": "npx rollup -c -w",
"clean": "rimraf ../html_ui/InGamePanels/tfdidesign-md11-load-manager-panel/ && rimraf .rollup.cache",
"build": "npm version patch && npx rollup -c",
"build-efb": "npm version patch && cross-env SPLIT=true npx rollup -c",
"release": "pnpm types && pnpm lint && pnpm run licenses && pnpm clean && npm version patch && cross-env NODE_ENV=production npx rollup -c",
"release-efb": "pnpm types && pnpm lint && pnpm run licenses && pnpm clean && npm version patch && cross-env NODE_ENV=production SPLIT=true npx rollup -c"
"build": "npm version patch && npx rollup -c && pnpm efb",
"release": "pnpm types && pnpm lint && pnpm run licenses && pnpm clean && npm version patch && cross-env NODE_ENV=production npx rollup -c && pnpm efb ",
"efb": "cd ..\\.. && node insert-efb && rm PackageSources\\html_ui\\Pages\\VCockpit\\Instruments\\aircraft_efb\\KH_TFDi_MD11_efb/vendor*"
},
"engines": {
"node": ">=22"
@@ -31,6 +30,7 @@
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^24.3.1",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.6",
"@types/uuid": "^10.0.0",
@@ -54,12 +54,12 @@
"rollup-plugin-react-svg": "^3.0.3",
"rollup-plugin-version-injector": "^1.3.3",
"sass": "^1.89.1",
"svg-slim": "^2.0.5",
"tslib": "^2.8.1",
"typed-scss-modules": "^8.1.1",
"typescript": "5.8.3"
},
"dependencies": {
"lucide-react": "^0.555.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"uuid": "^11.1.0"
+24 -173
View File
@@ -8,6 +8,9 @@ importers:
.:
dependencies:
lucide-react:
specifier: ^0.555.0
version: 0.555.0(react@19.1.0)
react:
specifier: ^19.1.0
version: 19.1.0
@@ -39,6 +42,9 @@ importers:
'@rollup/plugin-typescript':
specifier: ^12.1.2
version: 12.1.2(rollup@4.42.0)(tslib@2.8.1)(typescript@5.8.3)
'@types/node':
specifier: ^24.3.1
version: 24.3.1
'@types/react':
specifier: ^19.1.6
version: 19.1.6
@@ -108,9 +114,6 @@ importers:
sass:
specifier: ^1.89.1
version: 1.89.1
svg-slim:
specifier: ^2.0.5
version: 2.0.5
tslib:
specifier: ^2.8.1
version: 2.8.1
@@ -707,10 +710,6 @@ packages:
resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}
engines: {node: '>=10.13.0'}
'@types/browserslist@4.15.4':
resolution: {integrity: sha512-gmSSW1GuQN9ZTDs0nmCT1ybj76N/+mSJAgVaNoEsxCCKs7yblsZsKY3Vt/L2VKtHL5dysWhwPDaawCr0y1gt0Q==}
deprecated: This is a stub types definition. browserslist provides its own type definitions, so you do not need this installed.
'@types/estree@1.0.7':
resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==}
@@ -735,8 +734,8 @@ packages:
'@types/minimatch@5.1.2':
resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==}
'@types/node@22.15.30':
resolution: {integrity: sha512-6Q7lr06bEHdlfplU6YRbgG1SFBdlsfNC4/lX+SkhiTs0cpJkOElmWls8PxDFv4yY/xKb8Y6SO0OmSX4wgqTZbA==}
'@types/node@24.3.1':
resolution: {integrity: sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==}
'@types/q@1.5.8':
resolution: {integrity: sha512-hroOstUScF6zhIi+5+x0dzqrHA1EJi+Irri6b1fxolMTqqHIV/Cg77EtnQcZqZCu8hR3mX2BzIxN4/GzI68Kfw==}
@@ -819,9 +818,6 @@ packages:
'@ungap/structured-clone@1.3.0':
resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
abs-svg-path@0.1.1:
resolution: {integrity: sha512-d8XPSGjfyzlXC3Xx891DJRyZfqk5JU0BJrDQcsWomFIV1/BIzPW5HDH5iDdWpqWaav0YVIEzT1RHTwWr0FFshA==}
acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies:
@@ -832,9 +828,6 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
adaptive-bezier-curve@1.0.3:
resolution: {integrity: sha512-mDcwN284LlNAdunqnVmS0PAoDNHKze/PY8zvpCdxzyXD+ZZFeMWQ3FKNBw0VMOd9IfnhIyzAWJDXzRcWnXtoSg==}
ajv@6.12.6:
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
@@ -912,11 +905,6 @@ packages:
resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}
engines: {node: '>= 0.4'}
atob@2.1.2:
resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==}
engines: {node: '>= 4.5.0'}
hasBin: true
autoprefixer@10.4.21:
resolution: {integrity: sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==}
engines: {node: ^10 || ^12 || >=14}
@@ -1112,9 +1100,6 @@ packages:
resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==}
engines: {node: '>= 6'}
css@2.2.4:
resolution: {integrity: sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==}
cssesc@3.0.0:
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'}
@@ -1177,10 +1162,6 @@ packages:
supports-color:
optional: true
decode-uri-component@0.2.2:
resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==}
engines: {node: '>=0.10'}
decompress-response@6.0.0:
resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}
engines: {node: '>=10'}
@@ -1611,10 +1592,6 @@ packages:
resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
engines: {node: '>= 0.4'}
he@1.2.0:
resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
hasBin: true
header-case@2.0.4:
resolution: {integrity: sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==}
@@ -1859,9 +1836,6 @@ packages:
keyv@4.5.4:
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
known-css-properties@0.19.0:
resolution: {integrity: sha512-eYboRV94Vco725nKMlpkn3nV2+96p9c3gKXRsYqAJSswSENvBhN7n5L+uDhY58xQa0UukWsDMTGELzmD8Q+wTA==}
levn@0.4.1:
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'}
@@ -1926,6 +1900,11 @@ packages:
lru-cache@5.1.1:
resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
lucide-react@0.555.0:
resolution: {integrity: sha512-D8FvHUGbxWBRQM90NZeIyhAvkFfsh3u9ekrMvJ30Z6gnpBHS6HC6ldLg7tL45hwiIz/u66eKDtdA23gwwGsAHA==}
peerDependencies:
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
magic-string@0.30.17:
resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
@@ -2005,9 +1984,6 @@ packages:
resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}
engines: {node: '>=0.10.0'}
normalize-svg-path@0.1.0:
resolution: {integrity: sha512-1/kmYej2iedi5+ROxkRESL/pI02pkg0OBnaR4hJkSIX6+ORzepwbuUXfrdZaPjysTsJInj0Rj5NuX027+dMBvA==}
normalize-url@6.1.0:
resolution: {integrity: sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==}
engines: {node: '>=10'}
@@ -2428,9 +2404,6 @@ packages:
resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}
engines: {node: '>=10'}
ramda@0.25.0:
resolution: {integrity: sha512-GXpfrYVPwx3K7RQ6aYT8KPS8XViSXUVJT1ONhoKPE9VAleW42YE+U+8VEyGWt41EnEQW7gwecYJriTI0pKoecQ==}
randombytes@2.1.0:
resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==}
@@ -2491,10 +2464,6 @@ packages:
resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}
engines: {node: '>=8'}
resolve-url@0.2.1:
resolution: {integrity: sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==}
deprecated: https://github.com/lydell/resolve-url#deprecated
resolve@1.22.10:
resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==}
engines: {node: '>= 0.4'}
@@ -2550,10 +2519,6 @@ packages:
run-parallel@1.2.0:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
rxjs@6.6.7:
resolution: {integrity: sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==}
engines: {npm: '>=2.0.0'}
safe-array-concat@1.1.3:
resolution: {integrity: sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==}
engines: {node: '>=0.4'}
@@ -2652,17 +2617,9 @@ packages:
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
engines: {node: '>=0.10.0'}
source-map-resolve@0.5.3:
resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==}
deprecated: See https://github.com/lydell/source-map-resolve#deprecated
source-map-support@0.5.21:
resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
source-map-url@0.4.1:
resolution: {integrity: sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==}
deprecated: See https://github.com/lydell/source-map-url#deprecated
source-map@0.6.1:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
@@ -2753,15 +2710,6 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
svg-path-contours@2.0.0:
resolution: {integrity: sha512-mUpqlUkchMV5lQq2DdPIulNQ2lqPjYTUvY8bUUql/SlOMdPkavijO/oJgvimz31CC4Hvfce6uq+Jn0xzRysmVw==}
svg-slim@2.0.5:
resolution: {integrity: sha512-5sJIPU8vbgHsLWzskcUidc/cjvbw7sNocY5Y9vBw/TaogKGXKE6V7uS6D3tXxTDOwmfmjS0/N84X0NO/ifCqVQ==}
svg-vdom@1.0.12:
resolution: {integrity: sha512-z+EbYuKuyBugGNIierDnz9ZGKThgwybAvTfQTtfLsW1X++M+AuioyHF6MNlTzysTpj8U/l7lWAIVwZYh8Fr9UQ==}
svgo@1.3.2:
resolution: {integrity: sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==}
engines: {node: '>=4.0.0'}
@@ -2782,9 +2730,6 @@ packages:
engines: {node: '>=10'}
hasBin: true
tess2@1.0.0:
resolution: {integrity: sha512-iSWBSOUoPn3cCT26L5Wi6mvVgL11RV4kReSnVIIPdMN7qNpkL5SLKen5BJcWj+ZTN7kK6JrHBdqTV7vvL8g+9w==}
text-table@0.2.0:
resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}
@@ -2792,9 +2737,6 @@ packages:
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'}
triangulate-contours@1.0.2:
resolution: {integrity: sha512-g1p3BRI0iMjkWcpCKgnbBdgiU26kynO9uZmzTotmOilPlch/aGEObyMk0C+OJj1mUZBwPP9/BUkBeYZiUuGKKw==}
ts-api-utils@1.4.3:
resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==}
engines: {node: '>=16'}
@@ -2804,9 +2746,6 @@ packages:
tsconfig-paths@3.15.0:
resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
tslib@1.14.1:
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
tslib@2.8.1:
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
@@ -2860,8 +2799,8 @@ packages:
resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==}
engines: {node: '>= 0.4'}
undici-types@6.21.0:
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
undici-types@7.10.0:
resolution: {integrity: sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==}
universalify@0.1.2:
resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
@@ -2885,10 +2824,6 @@ packages:
uri-js@4.4.1:
resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
urix@0.1.0:
resolution: {integrity: sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==}
deprecated: Please see https://github.com/lydell/urix#deprecated
util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
@@ -2899,9 +2834,6 @@ packages:
resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}
hasBin: true
vec2-copy@1.0.0:
resolution: {integrity: sha512-jeitylCmqqyM4Z2blr4vLpScsROaiJfhN2dFOjn1VK01cM4fi5GNt60L0Zxhm0OT1vYYiv7BKDOZch0YfPA8qw==}
visit-values@2.0.0:
resolution: {integrity: sha512-vLFU70y3D915d611GnHYeHkEmq6ZZETzTH4P1hM6I9E3lBwH2VeBBEESe/bGCY+gAyK0qqLFn5bNFpui/GKmww==}
@@ -2941,10 +2873,6 @@ packages:
wrappy@1.0.2:
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
xtend@4.0.2:
resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}
engines: {node: '>=0.4'}
y18n@5.0.8:
resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
engines: {node: '>=10'}
@@ -3466,22 +3394,18 @@ snapshots:
'@trysound/sax@0.2.0': {}
'@types/browserslist@4.15.4':
dependencies:
browserslist: 4.25.0
'@types/estree@1.0.7': {}
'@types/estree@1.0.8': {}
'@types/fs-extra@8.1.5':
dependencies:
'@types/node': 22.15.30
'@types/node': 24.3.1
'@types/glob@7.2.0':
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 22.15.30
'@types/node': 24.3.1
'@types/http-cache-semantics@4.0.4': {}
@@ -3491,9 +3415,9 @@ snapshots:
'@types/minimatch@5.1.2': {}
'@types/node@22.15.30':
'@types/node@24.3.1':
dependencies:
undici-types: 6.21.0
undici-types: 7.10.0
'@types/q@1.5.8': {}
@@ -3599,16 +3523,12 @@ snapshots:
'@ungap/structured-clone@1.3.0': {}
abs-svg-path@0.1.1: {}
acorn-jsx@5.3.2(acorn@8.14.1):
dependencies:
acorn: 8.14.1
acorn@8.14.1: {}
adaptive-bezier-curve@1.0.3: {}
ajv@6.12.6:
dependencies:
fast-deep-equal: 3.1.3
@@ -3723,8 +3643,6 @@ snapshots:
async-function@1.0.0: {}
atob@2.1.2: {}
autoprefixer@10.4.21(postcss@8.5.4):
dependencies:
browserslist: 4.25.0
@@ -3962,13 +3880,6 @@ snapshots:
css-what@6.1.0: {}
css@2.2.4:
dependencies:
inherits: 2.0.4
source-map: 0.6.1
source-map-resolve: 0.5.3
urix: 0.1.0
cssesc@3.0.0: {}
cssnano-preset-default@5.2.14(postcss@8.5.4):
@@ -4049,8 +3960,6 @@ snapshots:
dependencies:
ms: 2.1.3
decode-uri-component@0.2.2: {}
decompress-response@6.0.0:
dependencies:
mimic-response: 3.1.0
@@ -4646,8 +4555,6 @@ snapshots:
dependencies:
function-bind: 1.1.2
he@1.2.0: {}
header-case@2.0.4:
dependencies:
capital-case: 1.0.4
@@ -4884,8 +4791,6 @@ snapshots:
dependencies:
json-buffer: 3.0.1
known-css-properties@0.19.0: {}
levn@0.4.1:
dependencies:
prelude-ls: 1.2.1
@@ -4945,6 +4850,10 @@ snapshots:
dependencies:
yallist: 3.1.1
lucide-react@0.555.0(react@19.1.0):
dependencies:
react: 19.1.0
magic-string@0.30.17:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
@@ -5006,8 +4915,6 @@ snapshots:
normalize-range@0.1.2: {}
normalize-svg-path@0.1.0: {}
normalize-url@6.1.0: {}
normalize-url@8.0.1: {}
@@ -5410,8 +5317,6 @@ snapshots:
quick-lru@5.1.1: {}
ramda@0.25.0: {}
randombytes@2.1.0:
dependencies:
safe-buffer: 5.2.1
@@ -5484,8 +5389,6 @@ snapshots:
resolve-from@5.0.0: {}
resolve-url@0.2.1: {}
resolve@1.22.10:
dependencies:
is-core-module: 2.16.1
@@ -5587,10 +5490,6 @@ snapshots:
dependencies:
queue-microtask: 1.2.3
rxjs@6.6.7:
dependencies:
tslib: 1.14.1
safe-array-concat@1.1.3:
dependencies:
call-bind: 1.0.8
@@ -5709,21 +5608,11 @@ snapshots:
source-map-js@1.2.1: {}
source-map-resolve@0.5.3:
dependencies:
atob: 2.1.2
decode-uri-component: 0.2.2
resolve-url: 0.2.1
source-map-url: 0.4.1
urix: 0.1.0
source-map-support@0.5.21:
dependencies:
buffer-from: 1.1.2
source-map: 0.6.1
source-map-url@0.4.1: {}
source-map@0.6.1: {}
split-text-to-chunks@1.0.0:
@@ -5830,29 +5719,6 @@ snapshots:
supports-preserve-symlinks-flag@1.0.0: {}
svg-path-contours@2.0.0:
dependencies:
abs-svg-path: 0.1.1
adaptive-bezier-curve: 1.0.3
normalize-svg-path: 0.1.0
vec2-copy: 1.0.0
svg-slim@2.0.5:
dependencies:
'@types/browserslist': 4.15.4
browserslist: 4.25.0
caniuse-lite: 1.0.30001721
css: 2.2.4
he: 1.2.0
known-css-properties: 0.19.0
ramda: 0.25.0
rxjs: 6.6.7
svg-path-contours: 2.0.0
svg-vdom: 1.0.12
triangulate-contours: 1.0.2
svg-vdom@1.0.12: {}
svgo@1.3.2:
dependencies:
chalk: 2.4.2
@@ -5891,19 +5757,12 @@ snapshots:
commander: 2.20.3
source-map-support: 0.5.21
tess2@1.0.0: {}
text-table@0.2.0: {}
to-regex-range@5.0.1:
dependencies:
is-number: 7.0.0
triangulate-contours@1.0.2:
dependencies:
tess2: 1.0.0
xtend: 4.0.2
ts-api-utils@1.4.3(typescript@5.8.3):
dependencies:
typescript: 5.8.3
@@ -5915,8 +5774,6 @@ snapshots:
minimist: 1.2.8
strip-bom: 3.0.0
tslib@1.14.1: {}
tslib@2.8.1: {}
type-check@0.4.0:
@@ -5986,7 +5843,7 @@ snapshots:
has-symbols: 1.1.0
which-boxed-primitive: 1.1.1
undici-types@6.21.0: {}
undici-types@7.10.0: {}
universalify@0.1.2: {}
@@ -6010,8 +5867,6 @@ snapshots:
dependencies:
punycode: 2.3.1
urix@0.1.0: {}
util-deprecate@1.0.2: {}
util.promisify@1.0.1:
@@ -6023,8 +5878,6 @@ snapshots:
uuid@11.1.0: {}
vec2-copy@1.0.0: {}
visit-values@2.0.0: {}
which-boxed-primitive@1.1.1:
@@ -6088,8 +5941,6 @@ snapshots:
wrappy@1.0.2: {}
xtend@4.0.2: {}
y18n@5.0.8: {}
yallist@3.1.1: {}
+15 -32
View File
@@ -2,7 +2,6 @@ import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import replace from '@rollup/plugin-replace';
import terser from '@rollup/plugin-terser';
import typescript from '@rollup/plugin-typescript';
import autoprefixer from 'autoprefixer';
import atImport from 'postcss-import';
@@ -10,38 +9,29 @@ import copy from 'rollup-plugin-copy';
import postcss from 'rollup-plugin-postcss';
import reactSvg from 'rollup-plugin-react-svg';
import versionInjector from 'rollup-plugin-version-injector';
import svgs from 'svg-slim';
const { NODE_ENV: targetEnv = 'development' } = process.env;
const outDirBase = '../html_ui';
const panelDirBase = `${outDirBase}/InGamePanels/tfdidesign-md11-load-manager-panel`;
function svgSlim(code, id) {
if (!id.endsWith('.svg')) return code;
return svgs(code.toString(), {}).then((res) => res);
}
const panelDirBase = `${outDirBase}/Pages/VCockpit/Instruments/aircraft_efb/KH_TFDi_MD11_efb`;
export default {
input: 'src/index.ts',
input: 'src/App.tsx',
output: {
dir: panelDirBase,
format: 'es',
sourcemap: targetEnv !== 'production',
manualChunks: process.env.SPLIT
? (id) => {
if (id.includes('node_modules')) {
return 'vendor';
}
manualChunks: (id) => {
if (id.includes('node_modules')) {
return 'vendor';
}
return null;
}
: undefined,
return null;
},
},
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify(targetEnv),
'import.meta.env': true,
'import.meta.env.MODE': JSON.stringify(targetEnv),
'process.env.NODE_ENV': targetEnv,
preventAssignment: true,
}),
versionInjector(),
postcss({
@@ -54,22 +44,15 @@ export default {
reactSvg(),
resolve(),
json(),
typescript(),
typescript({
outputToFilesystem: false,
}),
commonjs({
requireReturnsDefault: 'auto',
}),
targetEnv === 'production' && terser(),
// targetEnv === 'production' && terser(), // Disabled due to script running afterwards
copy({
targets: [
{ src: ['src/assets/*', '!**/*.svg'], dest: `${panelDirBase}/assets` },
{ src: 'src/assets/img/*', dest: `${panelDirBase}/assets/img`, transform: svgSlim },
{ src: ['src/index.html'], dest: `${panelDirBase}` },
{
src: ['src/assets/ICON_TFDIDESIGN_MD11_LOAD_MANAGER.svg'],
dest: [`${outDirBase}/icons/toolbar`, `${outDirBase}/Textures/Menu/toolbar`],
transform: svgSlim,
},
],
targets: [{ src: ['src/assets/*', '!**/*.svg'], dest: `${panelDirBase}/assets` }],
}),
],
onwarn: function (warning, warn) {
@@ -1,9 +0,0 @@
@import 'fonts/300.css';
@import 'fonts/400.css';
@import 'fonts/500.css';
@import 'fonts/700.css';
.app {
width: 100%;
height: 100%;
}
+21 -23
View File
@@ -1,51 +1,49 @@
import { FC, useCallback, useEffect, useState } from 'react';
import Freighter from './components/freighter/Freighter';
import Pax from './components/pax/Pax';
import {
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_LIVE_DATA_EVENT,
TFDI_SIMBRIEF_USERNAME_CALL,
TFDI_SIMBRIEF_USERNAME_EVENT,
} from './constants';
import { COHERENT_COMM_BUS_WASM_CALL } from './constants';
import { WASMDataF, WASMDataPax } from './types/WASMData';
import { CommBusCall, CommBusEvent } from './types/general';
interface IAppProps {
commBus: ViewListener.ViewListener;
}
const App: FC<IAppProps> = ({ commBus }) => {
const App: FC = () => {
const [SBUsername, setSBUsername] = useState<string>();
const [WASMData, setWASMData] = useState<WASMDataPax | WASMDataF>();
const [isReady, setIsReady] = useState(false);
// CommBus
const usernameCallback = useCallback((username: string) => {
setSBUsername(username);
setIsReady(true);
}, []);
const wasmCallback = useCallback((data: string) => {
setWASMData(JSON.parse(data));
}, []);
useEffect(() => {
console.log('Initializing CommBus');
console.log(
'[KHOFMANN TFDi MD-11 Load Manager] JS Version [VI]{version}[/VI]: process.env.NODE_ENV [VI]{date}[/VI]'
);
commBus.on(TFDI_SIMBRIEF_USERNAME_EVENT, usernameCallback);
commBus.on(COMM_BUS_LIVE_DATA_EVENT, wasmCallback);
console.log('[KHOFMANN TFDi MD-11 Load Manager] Initialising CommBus');
setTimeout(() => {
Coherent.call(COHERENT_COMM_BUS_WASM_CALL, TFDI_SIMBRIEF_USERNAME_CALL, 'null');
}, 1000);
const commBus = RegisterViewListener('JS_LISTENER_COMM_BUS');
commBus.on(CommBusEvent.TFDI_SIMBRIEF_USERNAME, usernameCallback);
commBus.on(CommBusEvent.LIVE_DATA, wasmCallback);
Coherent.call(COHERENT_COMM_BUS_WASM_CALL, CommBusCall.TFDI_SIMBRIEF_USERNAME, 'null');
return () => {
commBus.off(TFDI_SIMBRIEF_USERNAME_EVENT, usernameCallback);
commBus.off(COMM_BUS_LIVE_DATA_EVENT, wasmCallback);
console.log('[KHOFMANN TFDi MD-11 Load Manager] De-Initialising CommBus');
commBus.off(CommBusEvent.TFDI_SIMBRIEF_USERNAME, usernameCallback);
commBus.off(CommBusEvent.LIVE_DATA, wasmCallback);
commBus.unregister();
};
}, []);
return (
<div className="flex w-full justify-center pt-2 bg-zinc-900">
<div className="flex w-full justify-center py-5 bg-zinc-900">
<div className="flex w-3/4 flex-col items-center">
{isReady && WASMData ? (
{WASMData ? (
WASMData.userData.isCargo ? (
<Freighter WASMData={WASMData as WASMDataF} username={SBUsername} />
) : (
@@ -1,10 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 54 35">
<path
d="M17.08737 32.03408c-6.24 0-11.298-5.216-11.298-11.651 0-6.434 5.058-11.651 11.298-11.651s11.298 5.217 11.298 11.651c0 .679-.059 1.343-.167 1.989l1.052.29c.13-.741.202-1.502.202-2.281 0-7.082-5.579-12.823-12.46-12.823-6.881 0-12.46 5.741-12.46 12.823 0 7.081 5.579 12.822 12.46 12.822 4.524 0 8.485-2.482 10.668-6.196h-1.301c-2.039 3.037-5.439 5.027-9.292 5.027" />
<path
d="M43.10237.39308s-1.764 2.479-3.978 5.076c-2.212 2.595-4.01 4.393-4.01 4.393l-.166-.716-.766-.116s2.147-2.33 4.343-4.56c2.197-2.23 4.577-4.077 4.577-4.077" />
<path
d="M34.63157 9.42938s-.316 1.082-.732 1.547c-.416.466-.949.649-1.431 1.065-.483.417-1.964 2.031-1.964 2.031s-5.525 5.974-9.186 9.302c-3.661 3.329-8.058 7.009-11.183 8.837-3.129 1.831-5.675 2.912-7.805 2.147-2.13-.766-2.32-2.96-1.864-4.693.416-1.581 1.598-2.646 1.598-2.646s-1.698 1.88-1.664 3.977c.014.899.299 1.664.732 2.23.251.328 1.794 1.632 4.476.766 1.598-.516 4.015-1.526 6.84-3.695 5.875-4.51 7.805-6.174 13.696-12.131 3.277-3.314 5.375-5.642 5.375-5.642s.483-.432.665-.798c.184-.367.367-1.049.883-1.448s1.564-.849 1.564-.849" />
<path
d="M17.89017 18.03288h1.023s3.096 2.696 6.915 3.994 6.989 1.997 13.28 2.296c6.29.3 10.958.375 12.431.575 1.473.199 2.197.499 2.197.499s-13.056.424-17.224.599c-4.169.174-11.857.823-11.857.823l-.625-.299 5.592-1.598-6.964-.075z" />
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

File diff suppressed because it is too large Load Diff
@@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -1,40 +1,41 @@
| Department | Related to | Name | License period | Material not material | License type | Link | Remote version | Installed version | Defined version | Author |
| :--------- | :--------- | :------------------------------- | :------------- | :-------------------- | :----------- | :------------------------------------------------------------------------ | :------------- | :---------------- | :-------------- | :---------------------------------------------------------- |
| kessler | stuff | react | perpetual | material | MIT | git+https://github.com/facebook/react.git | 19.1.0 | 19.1.0 | ^19.1.0 | n/a |
| kessler | stuff | react-dom | perpetual | material | MIT | git+https://github.com/facebook/react.git | 19.1.0 | 19.1.0 | ^19.1.0 | n/a |
| kessler | stuff | uuid | perpetual | material | MIT | git+https://github.com/uuidjs/uuid.git | 11.1.0 | 11.1.0 | ^11.1.0 | n/a |
| kessler | stuff | @microsoft/msfs-types | perpetual | material | MIT | git+https://github.com/microsoft/msfs-avionics-mirror.git | 1.14.6 | 1.14.6 | ^1.14.6 | Asobo Studio / Working Title Simulations |
| kessler | stuff | @rollup/plugin-commonjs | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 28.0.5 | 28.0.3 | ^28.0.3 | Rich Harris <richard.a.harris@gmail.com> |
| kessler | stuff | @rollup/plugin-json | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 6.1.0 | 6.1.0 | ^6.1.0 | rollup |
| kessler | stuff | @rollup/plugin-node-resolve | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 16.0.1 | 16.0.1 | ^16.0.1 | Rich Harris <richard.a.harris@gmail.com> |
| kessler | stuff | @rollup/plugin-replace | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 6.0.2 | 6.0.2 | ^6.0.2 | Rich Harris <richard.a.harris@gmail.com> |
| kessler | stuff | @rollup/plugin-terser | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 0.4.4 | 0.4.4 | ^0.4.4 | Peter Placzek <peter.placzek1996@gmail.com> |
| kessler | stuff | @rollup/plugin-typescript | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 12.1.2 | 12.1.2 | ^12.1.2 | Oskar Segersvärd |
| kessler | stuff | @types/react | perpetual | material | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | 19.1.8 | 19.1.6 | ^19.1.6 | n/a |
| kessler | stuff | @types/react-dom | perpetual | material | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | 19.1.6 | 19.1.6 | ^19.1.6 | n/a |
| kessler | stuff | @types/uuid | perpetual | material | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | 10.0.0 | 10.0.0 | ^10.0.0 | n/a |
| kessler | stuff | @typescript-eslint/eslint-plugin | perpetual | material | MIT | git+https://github.com/typescript-eslint/typescript-eslint.git | 6.21.0 | 6.21.0 | ^6.21.0 | n/a |
| kessler | stuff | @typescript-eslint/parser | perpetual | material | BSD-2-Clause | git+https://github.com/typescript-eslint/typescript-eslint.git | 6.21.0 | 6.21.0 | ^6.21.0 | n/a |
| kessler | stuff | autoprefixer | perpetual | material | MIT | git+https://github.com/postcss/autoprefixer.git | 10.4.21 | 10.4.21 | ^10.4.21 | Andrey Sitnik <andrey@sitnik.ru> |
| kessler | stuff | cross-env | perpetual | material | MIT | git+https://github.com/kentcdodds/cross-env.git | 7.0.3 | 7.0.3 | ^7.0.3 | Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com) |
| kessler | stuff | eslint | perpetual | material | MIT | git+https://github.com/eslint/eslint.git | 8.57.1 | 8.57.1 | ^8.57.1 | Nicholas C. Zakas <nicholas+npm@nczconsulting.com> |
| kessler | stuff | eslint-plugin-import | perpetual | material | MIT | git+https://github.com/import-js/eslint-plugin-import.git | 2.31.0 | 2.31.0 | ^2.31.0 | Ben Mosher <me@benmosher.com> |
| kessler | stuff | eslint-plugin-react | perpetual | material | MIT | git+https://github.com/jsx-eslint/eslint-plugin-react.git | 7.37.5 | 7.37.5 | ^7.37.5 | Yannick Croissant <yannick.croissant+npm@gmail.com> |
| kessler | stuff | eslint-plugin-react-hooks | perpetual | material | MIT | git+https://github.com/facebook/react.git | 4.6.2 | 4.6.2 | ^4.6.2 | n/a |
| kessler | stuff | license-report | perpetual | material | MIT | git+https://github.com/kessler/license-report.git | 6.8.0 | 6.7.2 | ^6.7.2 | Yaniv Kessler |
| kessler | stuff | postcss | perpetual | material | MIT | git+https://github.com/postcss/postcss.git | 8.5.5 | 8.5.4 | ^8.5.4 | Andrey Sitnik <andrey@sitnik.ru> |
| kessler | stuff | postcss-import | perpetual | material | MIT | git+https://github.com/postcss/postcss-import.git | 16.1.0 | 16.1.0 | ^16.1.0 | Maxime Thirouin |
| kessler | stuff | prettier | perpetual | material | MIT | git+https://github.com/prettier/prettier.git | 3.5.3 | 3.5.3 | ^3.5.3 | James Long |
| kessler | stuff | prettier-plugin-organize-imports | perpetual | material | MIT | git+https://github.com/simonhaenisch/prettier-plugin-organize-imports.git | 4.1.0 | 4.1.0 | ^4.1.0 | Simon Haenisch (https://github.com/simonhaenisch) |
| kessler | stuff | rimraf | perpetual | material | ISC | git://github.com/isaacs/rimraf.git | 6.0.1 | 6.0.1 | ^6.0.1 | Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/) |
| kessler | stuff | rollup | perpetual | material | MIT | git+https://github.com/rollup/rollup.git | 4.43.0 | 4.42.0 | ^4.42.0 | Rich Harris |
| kessler | stuff | rollup-plugin-copy | perpetual | material | MIT | git+https://github.com/vladshcherbin/rollup-plugin-copy.git | 3.5.0 | 3.5.0 | ^3.5.0 | Vlad Shcherbin <vlad.shcherbin@gmail.com> |
| kessler | stuff | rollup-plugin-postcss | perpetual | material | MIT | git+https://github.com/egoist/rollup-plugin-postcss.git | 4.0.2 | 4.0.2 | ^4.0.2 | EGOIST <0x142857@gmail.com> |
| kessler | stuff | rollup-plugin-react-svg | perpetual | material | MIT | git+https://github.com/boopathi/react-svg-loader.git | 3.0.3 | 3.0.3 | ^3.0.3 | boopathi |
| kessler | stuff | rollup-plugin-version-injector | perpetual | material | ISC | git+https://github.com/djhouseknecht/rollup-plugin-version-injector.git | 1.3.3 | 1.3.3 | ^1.3.3 | David Houseknecht <david.j.houseknecht@gmail.com> |
| kessler | stuff | sass | perpetual | material | MIT | git+https://github.com/sass/dart-sass.git | 1.89.2 | 1.89.1 | ^1.89.1 | Natalie Weizenbaum nweiz@google.com https://github.com/nex3 |
| kessler | stuff | svg-slim | perpetual | material | MIT | git+https://github.com/benboba/svg-slim.git | 2.0.5 | 2.0.5 | ^2.0.5 | Wang Feng <benboba@gmail.com> |
| kessler | stuff | tslib | perpetual | material | 0BSD | git+https://github.com/Microsoft/tslib.git | 2.8.1 | 2.8.1 | ^2.8.1 | Microsoft Corp. |
| kessler | stuff | typed-scss-modules | perpetual | material | MIT | git+https://github.com/skovy/typed-scss-modules.git | 8.1.1 | 8.1.1 | ^8.1.1 | Spencer Miskoviak <smiskoviak@gmail.com> |
| kessler | stuff | typescript | perpetual | material | Apache-2.0 | git+https://github.com/microsoft/TypeScript.git | 5.8.3 | 5.8.3 | 5.8.3 | Microsoft Corp. |
| Department | Related to | Name | License period | Material not material | License type | Link | Remote version | Installed version | Defined version | Author |
| :--------- | :--------- | :------------------------------- | :------------- | :-------------------- | :------------ | :------------------------------------------------------------------------ | :------------- | :---------------- | :-------------- | :---------------------------------------------------------- |
| kessler | stuff | lucide-react | perpetual | material | ISC | git+https://github.com/lucide-icons/lucide.git | 0.555.0 | 0.555.0 | ^0.555.0 | Eric Fennis |
| kessler | stuff | react | perpetual | material | MIT | git+https://github.com/facebook/react.git | 19.2.4 | 19.2.4 | ^19.1.0 | n/a |
| kessler | stuff | react-dom | perpetual | material | MIT | git+https://github.com/facebook/react.git | 19.2.4 | 19.2.4 | ^19.1.0 | n/a |
| kessler | stuff | uuid | perpetual | material | MIT | git+https://github.com/uuidjs/uuid.git | 11.1.0 | 11.1.0 | ^11.1.0 | n/a |
| kessler | stuff | @microsoft/msfs-types | perpetual | material | MIT | git+https://github.com/microsoft/msfs-avionics-mirror.git | 1.14.6 | 1.14.6 | ^1.14.6 | Asobo Studio / Working Title Simulations |
| kessler | stuff | @rollup/plugin-commonjs | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 28.0.9 | 28.0.9 | ^28.0.3 | Rich Harris <richard.a.harris@gmail.com> |
| kessler | stuff | @rollup/plugin-json | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 6.1.0 | 6.1.0 | ^6.1.0 | rollup |
| kessler | stuff | @rollup/plugin-node-resolve | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 16.0.3 | 16.0.3 | ^16.0.1 | Rich Harris <richard.a.harris@gmail.com> |
| kessler | stuff | @rollup/plugin-replace | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 6.0.3 | 6.0.3 | ^6.0.2 | Rich Harris <richard.a.harris@gmail.com> |
| kessler | stuff | @rollup/plugin-terser | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 0.4.4 | 0.4.4 | ^0.4.4 | Peter Placzek <peter.placzek1996@gmail.com> |
| kessler | stuff | @rollup/plugin-typescript | perpetual | material | MIT | git+https://github.com/rollup/plugins.git | 12.3.0 | 12.3.0 | ^12.1.2 | Oskar Segersvärd |
| kessler | stuff | @types/node | perpetual | material | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | 24.12.2 | 24.12.0 | ^24.3.1 | n/a |
| kessler | stuff | @types/react | perpetual | material | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | 19.2.14 | 19.2.14 | ^19.1.6 | n/a |
| kessler | stuff | @types/react-dom | perpetual | material | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | 19.2.3 | 19.2.3 | ^19.1.6 | n/a |
| kessler | stuff | @types/uuid | perpetual | material | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | 10.0.0 | 10.0.0 | ^10.0.0 | n/a |
| kessler | stuff | @typescript-eslint/eslint-plugin | perpetual | material | MIT | git+https://github.com/typescript-eslint/typescript-eslint.git | 6.21.0 | 6.21.0 | ^6.21.0 | n/a |
| kessler | stuff | @typescript-eslint/parser | perpetual | material | BSD-2-Clause | git+https://github.com/typescript-eslint/typescript-eslint.git | 6.21.0 | 6.21.0 | ^6.21.0 | n/a |
| kessler | stuff | autoprefixer | perpetual | material | MIT | git+https://github.com/postcss/autoprefixer.git | 10.4.27 | 10.4.27 | ^10.4.21 | Andrey Sitnik <andrey@sitnik.ru> |
| kessler | stuff | cross-env | perpetual | material | MIT | git+https://github.com/kentcdodds/cross-env.git | 7.0.3 | 7.0.3 | ^7.0.3 | Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com) |
| kessler | stuff | eslint | perpetual | material | MIT | git+https://github.com/eslint/eslint.git | 8.57.1 | 8.57.1 | ^8.57.1 | Nicholas C. Zakas <nicholas+npm@nczconsulting.com> |
| kessler | stuff | eslint-plugin-import | perpetual | material | MIT | git+https://github.com/import-js/eslint-plugin-import.git | 2.32.0 | 2.32.0 | ^2.31.0 | Ben Mosher <me@benmosher.com> |
| kessler | stuff | eslint-plugin-react | perpetual | material | MIT | git+https://github.com/jsx-eslint/eslint-plugin-react.git | 7.37.5 | 7.37.5 | ^7.37.5 | Yannick Croissant <yannick.croissant+npm@gmail.com> |
| kessler | stuff | eslint-plugin-react-hooks | perpetual | material | MIT | git+https://github.com/facebook/react.git | 4.6.2 | 4.6.2 | ^4.6.2 | n/a |
| kessler | stuff | license-report | perpetual | material | MIT | git+https://github.com/kessler/license-report.git | 6.8.2 | 6.8.2 | ^6.7.2 | Yaniv Kessler |
| kessler | stuff | postcss | perpetual | material | MIT | git+https://github.com/postcss/postcss.git | 8.5.8 | 8.5.8 | ^8.5.4 | Andrey Sitnik <andrey@sitnik.ru> |
| kessler | stuff | postcss-import | perpetual | material | MIT | git+https://github.com/postcss/postcss-import.git | 16.1.1 | 16.1.1 | ^16.1.0 | Maxime Thirouin |
| kessler | stuff | prettier | perpetual | material | MIT | git+https://github.com/prettier/prettier.git | 3.8.1 | 3.8.1 | ^3.5.3 | James Long |
| kessler | stuff | prettier-plugin-organize-imports | perpetual | material | MIT | git+https://github.com/simonhaenisch/prettier-plugin-organize-imports.git | 4.3.0 | 4.3.0 | ^4.1.0 | Simon Haenisch (https://github.com/simonhaenisch) |
| kessler | stuff | rimraf | perpetual | material | BlueOak-1.0.0 | git+ssh://git@github.com/isaacs/rimraf.git | 6.1.3 | 6.1.3 | ^6.0.1 | Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/) |
| kessler | stuff | rollup | perpetual | material | MIT | git+https://github.com/rollup/rollup.git | 4.60.1 | 4.60.0 | ^4.42.0 | Rich Harris |
| kessler | stuff | rollup-plugin-copy | perpetual | material | MIT | git+https://github.com/vladshcherbin/rollup-plugin-copy.git | 3.5.0 | 3.5.0 | ^3.5.0 | Vlad Shcherbin <vlad.shcherbin@gmail.com> |
| kessler | stuff | rollup-plugin-postcss | perpetual | material | MIT | git+https://github.com/egoist/rollup-plugin-postcss.git | 4.0.2 | 4.0.2 | ^4.0.2 | EGOIST <0x142857@gmail.com> |
| kessler | stuff | rollup-plugin-react-svg | perpetual | material | MIT | git+https://github.com/boopathi/react-svg-loader.git | 3.0.3 | 3.0.3 | ^3.0.3 | boopathi |
| kessler | stuff | rollup-plugin-version-injector | perpetual | material | ISC | git+https://github.com/djhouseknecht/rollup-plugin-version-injector.git | 1.3.3 | 1.3.3 | ^1.3.3 | David Houseknecht <david.j.houseknecht@gmail.com> |
| kessler | stuff | sass | perpetual | material | MIT | git+https://github.com/sass/dart-sass.git | 1.99.0 | 1.98.0 | ^1.89.1 | Natalie Weizenbaum nweiz@google.com https://github.com/nex3 |
| kessler | stuff | tslib | perpetual | material | 0BSD | git+https://github.com/Microsoft/tslib.git | 2.8.1 | 2.8.1 | ^2.8.1 | Microsoft Corp. |
| kessler | stuff | typed-scss-modules | perpetual | material | MIT | git+https://github.com/skovy/typed-scss-modules.git | 8.1.1 | 8.1.1 | ^8.1.1 | Spencer Miskoviak <smiskoviak@gmail.com> |
| kessler | stuff | typescript | perpetual | material | Apache-2.0 | git+https://github.com/microsoft/TypeScript.git | 5.8.3 | 5.8.3 | 5.8.3 | Microsoft Corp. |
@@ -1,36 +1,30 @@
import { FC, useEffect, useRef, useState } from 'react';
import {
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
GSX_SERVICE_CALLED,
GSX_SERVICE_FINISHED,
} from '../../constants';
import { FC, useEffect, useState } from 'react';
import { WASMDataF } from '../../types/WASMData';
import { LoadingState } from '../../types/general';
import { ImportFlightPlan } from '../../utils/TFDISBImport';
import { inRangeOf, loadAircraft, unloadAircraft } from '../../utils/utils';
import { LoadingState, SimBrief } from '../../types/general';
import { ImportFlightPlanKH } from '../../utils/TFDISBImport';
import { CoherentCallSBEntryF, loadAircraft, unloadAircraft } from '../../utils/utils';
import CGSelect from '../CGSelect/CGSelect';
import ActionBar from '../actionbar/ActionBar';
import Input from '../input/Input';
interface SBEntryProps {
WASMData: WASMDataF;
loadingState: LoadingState;
username: string;
gsxActive: boolean;
gsxFuelActive: boolean;
setLoadingState: (newState: LoadingState) => void;
}
const SBEntryF: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoadingState }) => {
const SBEntryF: FC<SBEntryProps> = ({ WASMData, loadingState, gsxActive, gsxFuelActive, setLoadingState }) => {
const [CGTarget, setCGTarget] = useState(WASMData.targetPayload.CGTarget);
const [fuel, setFuel] = useState(Math.round(WASMData.livePayload.fuel));
const [fuelEnabled, setFuelEnabled] = useState(true);
//eslint-disable-next-line @typescript-eslint/no-explicit-any
const [SBPlan, setSBPlan] = useState<any>();
const [fuel, setFuel] = useState(Math.round(WASMData.targetPayload.fuel));
const [SBInFlight, setSBInFlight] = useState(false);
const cargo = useRef(0);
// FROM EFB
const simBrief = useSelector((state) => state.simbrief.plan);
const ZFW = () => {
if (loadingState !== 'loaded' && !GSXActive()) return Math.round(WASMData.targetPayload.total);
if (loadingState !== 'loaded' && !gsxActive) return Math.round(WASMData.targetPayload.total);
return Math.round(WASMData.livePayload.total);
};
@@ -44,13 +38,6 @@ const SBEntryF: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoadi
return GW() <= WASMData.limits.maxTOW;
};
const GSXActive = () => {
return (
(WASMData.GSX.boardingState >= GSX_SERVICE_CALLED || WASMData.GSX.deboardingState >= GSX_SERVICE_CALLED) &&
WASMData.GSX.deboardingState !== GSX_SERVICE_FINISHED
);
};
const handleInput = (input: string, maxValue: number, setter: (value: number) => void) => {
if (!input) {
setter(0);
@@ -65,11 +52,18 @@ const SBEntryF: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoadi
}
};
const handleSB = async () => {
const updateData = (SBPlan?: SimBrief, _fuel?: number) => {
CoherentCallSBEntryF(CGTarget, _fuel ?? fuel, SBPlan);
};
useEffect(() => updateData(), [CGTarget, fuel]);
useEffect(() => {
if (!simBrief || gsxActive) return;
setSBInFlight(true);
const SBResponse = await ImportFlightPlan(
username,
const SBResponse = ImportFlightPlanKH(
simBrief,
WASMData.limits.maxZFW,
WASMData.limits.maxTOW,
WASMData.limits.maxFuel,
@@ -81,15 +75,13 @@ const SBEntryF: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoadi
return;
}
cargo.current = parseFloat(SBResponse.message.cargo) ?? 0;
const _fuel = parseFloat((SBResponse.message as SimBrief).fuel as unknown as string) ?? 0;
updateData();
updateData(SBResponse.message as SimBrief, _fuel);
setSBPlan(SBResponse.message);
setFuel(parseFloat(SBResponse.message.fuel) ?? 0);
setFuel(_fuel);
setSBInFlight(false);
};
}, [simBrief, gsxActive]);
useEffect(
() =>
setFuel((prev) => {
@@ -98,128 +90,107 @@ const SBEntryF: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoadi
}),
[WASMData.userData.isER]
);
useEffect(() => {
setFuelEnabled(inRangeOf(Math.round(WASMData.livePayload.fuel), fuel));
}, [WASMData.livePayload.fuel]);
const updateData = (_CGTarget?: number) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
JSON.stringify({
mode: 0,
cargo: cargo.current ?? 0,
CGTarget: _CGTarget ?? CGTarget,
})
);
};
return (
<>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-md bg-zinc-600 p-2 px-4">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(e) => handleInput(e.target.value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<button
className="middle none center rounded-lg bg-green-600 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-green-500/20 transition-all hover:shadow-lg hover:shadow-green-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
data-ripple-light="true"
onClick={() => {
SimVar.SetSimVarValue(
'L:MD11_EFB_PAYLOAD_FUEL',
'lbs',
WASMData.userData.isImperial ? fuel : fuel * 2.20462262185
);
SimVar.SetSimVarValue('L:MD11_EFB_READ_READY', 'bool', true);
setFuelEnabled(WASMData.livePayload.fuel === fuel);
}}
disabled={loadingState !== 'preview' || !fuelEnabled || GSXActive()}
>
Load Fuel
</button>
<div className="flex w-full items-center justify-between text-xs">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(value) => handleInput(value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || gsxFuelActive}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>Planned ZFW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={SBPlan?.plannedZFW ?? 0}
disabled
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Planned ZFW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={WASMData.sbPlanned.ZFW}
disabled
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-700 p-2 px-4">
<label>Planned GW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={SBPlan?.plannedGW ?? 0}
disabled
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Planned GW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={WASMData.sbPlanned.GW}
disabled
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-600 p-2 px-4">
<label>
Target ZFWCG ({WASMData.limits.minCG} - {WASMData.limits.maxCG})
</label>
<CGSelect
minCG={WASMData.limits.minCG}
maxCG={WASMData.limits.maxCG}
value={CGTarget}
disabled={loadingState !== 'preview' || GSXActive()}
increase={() =>
setCGTarget((prev) => {
const _new = prev + 0.1;
updateData(_new);
return _new;
})
}
decrease={() =>
setCGTarget((prev) => {
const _new = prev - 0.1;
updateData(_new);
return _new;
})
}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
Target ZFWCG ({WASMData.limits.minCG} - {WASMData.limits.maxCG})
</label>
<CGSelect
minCG={WASMData.limits.minCG}
maxCG={WASMData.limits.maxCG}
value={CGTarget}
disabled={loadingState !== 'preview' || gsxActive}
increase={() =>
setCGTarget((prev) => {
const _new = prev + 0.1;
return _new;
})
}
decrease={() =>
setCGTarget((prev) => {
const _new = prev - 0.1;
return _new;
})
}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
</div>
</div>
</div>
@@ -227,8 +198,6 @@ const SBEntryF: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoadi
loadingState={loadingState}
loadDisabled={!GWValid() || SBInFlight}
GSXSync={WASMData.options.GSXSync}
GSXActive={GSXActive()}
importSB={handleSB}
load={() => {
setLoadingState('loaded');
@@ -1,37 +1,30 @@
import { FC, useEffect, useRef, useState } from 'react';
import {
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
GSX_SERVICE_CALLED,
GSX_SERVICE_FINISHED,
} from '../../constants';
import { FC, useEffect, useState } from 'react';
import { WASMDataPax } from '../../types/WASMData';
import { LoadingState } from '../../types/general';
import { ImportFlightPlan } from '../../utils/TFDISBImport';
import { inRangeOf, loadAircraft, unloadAircraft } from '../../utils/utils';
import { LoadingState, SimBrief } from '../../types/general';
import { ImportFlightPlanKH } from '../../utils/TFDISBImport';
import { CoherentCallSBEntryPax, loadAircraft, unloadAircraft } from '../../utils/utils';
import CGSelect from '../CGSelect/CGSelect';
import ActionBar from '../actionbar/ActionBar';
import Input from '../input/Input';
interface SBEntryProps {
WASMData: WASMDataPax;
loadingState: LoadingState;
username: string;
gsxActive: boolean;
gsxFuelActive: boolean;
setLoadingState: (newState: LoadingState) => void;
}
const SBEntryPax: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoadingState }) => {
const SBEntryPax: FC<SBEntryProps> = ({ WASMData, loadingState, gsxActive, gsxFuelActive, setLoadingState }) => {
const [CGTarget, setCGTarget] = useState(WASMData.targetPayload.CGTarget);
const [fuel, setFuel] = useState(Math.round(WASMData.livePayload.fuel));
const [fuelEnabled, setFuelEnabled] = useState(true);
//eslint-disable-next-line @typescript-eslint/no-explicit-any
const [SBPlan, setSBPlan] = useState<any>();
const [fuel, setFuel] = useState(Math.round(WASMData.targetPayload.fuel));
const [SBInFlight, setSBInFlight] = useState(false);
const numPax = useRef(0);
const cargo = useRef(0);
// FROM EFB
const simBrief = useSelector((state) => state.simbrief.plan);
const ZFW = () => {
if (loadingState !== 'loaded' && !GSXActive()) return Math.round(WASMData.targetPayload.total);
if (loadingState !== 'loaded' && !gsxActive) return Math.round(WASMData.targetPayload.total);
return Math.round(WASMData.livePayload.total);
};
@@ -45,13 +38,6 @@ const SBEntryPax: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoa
return GW() <= WASMData.limits.maxTOW;
};
const GSXActive = () => {
return (
(WASMData.GSX.boardingState >= GSX_SERVICE_CALLED || WASMData.GSX.deboardingState >= GSX_SERVICE_CALLED) &&
WASMData.GSX.deboardingState !== GSX_SERVICE_FINISHED
);
};
const handleInput = (input: string, maxValue: number, setter: (value: number) => void) => {
if (!input) {
setter(0);
@@ -66,11 +52,17 @@ const SBEntryPax: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoa
}
};
const handleSB = async () => {
const updateData = (SBPlan?: SimBrief, _fuel?: number) => {
CoherentCallSBEntryPax(CGTarget, _fuel ?? fuel, SBPlan);
};
useEffect(() => {
if (!simBrief || gsxActive) return;
setSBInFlight(true);
const SBResponse = await ImportFlightPlan(
username,
const SBResponse = ImportFlightPlanKH(
simBrief,
WASMData.limits.maxZFW,
WASMData.limits.maxTOW,
WASMData.limits.maxFuel,
@@ -82,16 +74,17 @@ const SBEntryPax: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoa
return;
}
cargo.current = parseFloat(SBResponse.message.cargo) ?? 0;
numPax.current = parseInt(SBResponse.message.pax) ?? 0;
const _fuel = parseFloat((SBResponse.message as SimBrief).fuel as unknown as string) ?? 0;
updateData();
updateData(SBResponse.message as SimBrief, _fuel);
setSBPlan(SBResponse.message);
setFuel(parseFloat(SBResponse.message.fuel) ?? 0);
setFuel(_fuel);
setFuel(parseFloat((SBResponse.message as SimBrief).fuel as unknown as string) ?? 0);
setSBInFlight(false);
};
}, [simBrief, gsxActive]);
useEffect(() => updateData(), [CGTarget, fuel]);
useEffect(
() =>
setFuel((prev) => {
@@ -100,129 +93,107 @@ const SBEntryPax: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoa
}),
[WASMData.userData.isER]
);
useEffect(() => {
setFuelEnabled(inRangeOf(Math.round(WASMData.livePayload.fuel), fuel));
}, [WASMData.livePayload.fuel]);
const updateData = (_CGTarget?: number) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
JSON.stringify({
mode: 0,
cargo: cargo.current ?? 0,
numPax: numPax.current ?? 0,
CGTarget: _CGTarget ?? CGTarget,
})
);
};
return (
<>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-md bg-zinc-600 p-2 px-4">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(e) => handleInput(e.target.value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<button
className="middle none center rounded-lg bg-green-600 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-green-500/20 transition-all hover:shadow-lg hover:shadow-green-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
data-ripple-light="true"
onClick={() => {
SimVar.SetSimVarValue(
'L:MD11_EFB_PAYLOAD_FUEL',
'lbs',
WASMData.userData.isImperial ? fuel : fuel * 2.20462262185
);
SimVar.SetSimVarValue('L:MD11_EFB_READ_READY', 'bool', true);
setFuelEnabled(WASMData.livePayload.fuel === fuel);
}}
disabled={loadingState !== 'preview' || !fuelEnabled || GSXActive()}
>
Load Fuel
</button>
<div className="flex w-full items-center justify-between rounded-md bg-zinc-600 p-2 px-4">
<div className="flex w-full items-center justify-between text-xs">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(value) => handleInput(value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || gsxFuelActive}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>Planned ZFW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={SBPlan?.plannedZFW ?? 0}
disabled
/>
<div className="flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<div className="flex w-full items-center justify-between text-xs">
<label>Planned ZFW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={WASMData.sbPlanned.ZFW}
disabled
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-700 p-2 px-4">
<label>Planned GW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={SBPlan?.plannedGW ?? 0}
disabled
/>
<div className="flex w-full items-center justify-between bg-zinc-700 p-2 px-4">
<div className="flex w-full items-center justify-between text-xs">
<label>Planned GW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={WASMData.sbPlanned.GW}
disabled
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-600 p-2 px-4">
<label>
Target ZFWCG ({WASMData.limits.minCG} - {WASMData.limits.maxCG})
</label>
<CGSelect
minCG={WASMData.limits.minCG}
maxCG={WASMData.limits.maxCG}
value={CGTarget}
disabled={loadingState !== 'preview' || GSXActive()}
increase={() =>
setCGTarget((prev) => {
const _new = prev + 0.1;
updateData(_new);
return _new;
})
}
decrease={() =>
setCGTarget((prev) => {
const _new = prev - 0.1;
updateData(_new);
return _new;
})
}
/>
<div className="flex w-full items-center justify-between rounded-b-md bg-zinc-600 p-2 px-4">
<div className="flex w-full items-center justify-between text-xs">
<label>
Target ZFWCG ({WASMData.limits.minCG} - {WASMData.limits.maxCG})
</label>
<CGSelect
minCG={WASMData.limits.minCG}
maxCG={WASMData.limits.maxCG}
value={CGTarget}
disabled={loadingState !== 'preview' || gsxActive}
increase={() =>
setCGTarget((prev) => {
const _new = prev + 0.1;
return _new;
})
}
decrease={() =>
setCGTarget((prev) => {
const _new = prev - 0.1;
return _new;
})
}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
<div className="flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
<div className="flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
</div>
</div>
</div>
@@ -230,8 +201,6 @@ const SBEntryPax: FC<SBEntryProps> = ({ WASMData, loadingState, username, setLoa
loadingState={loadingState}
loadDisabled={!GWValid() || SBInFlight}
GSXSync={WASMData.options.GSXSync}
GSXActive={GSXActive()}
importSB={handleSB}
load={() => {
setLoadingState('loaded');
@@ -5,13 +5,11 @@ interface ActionBarProps {
loadingState: LoadingState;
loadDisabled: boolean;
GSXSync: boolean;
GSXActive: boolean;
importSB?: () => void;
load: () => void;
unload: () => void;
}
const ActionBar: FC<ActionBarProps> = ({ loadingState, loadDisabled, GSXSync, GSXActive, importSB, load, unload }) => {
const ActionBar: FC<ActionBarProps> = ({ loadingState, loadDisabled, GSXSync, load, unload }) => {
return (
<div className="relative flex w-full items-center justify-start gap-x-6">
{loadingState === 'preview' && !GSXSync && (
@@ -33,19 +31,6 @@ const ActionBar: FC<ActionBarProps> = ({ loadingState, loadDisabled, GSXSync, GS
Unload
</button>
)}
<div className="grow" />
{!!importSB && loadingState === 'preview' && (
<button
className="middle none center rounded-lg bg-green-600 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-green-500/20 transition-all hover:shadow-lg hover:shadow-green-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
data-ripple-light="true"
onClick={importSB}
disabled={GSXActive}
>
Import from SimBrief
</button>
)}
</div>
);
};
@@ -1,7 +1,7 @@
import { FC, useState } from 'react';
import { GSX_SERVICE_CALLED, GSX_SERVICE_FINISHED } from '../../constants';
import { FC, useEffect, useState } from 'react';
import { LoadingState } from '../../types/general';
import { WASMDataF } from '../../types/WASMData';
import { GSXFuelingState, GSXLoadingState, WASMDataF } from '../../types/WASMData';
import OptionsF from '../options/OptionsF';
import Profile from '../profile/Profile';
import SBEntryF from '../SBEntry/SBEntryF';
import StationEntryF from '../stationEntry/StationEntryF';
@@ -60,10 +60,14 @@ const Freighter: FC<FreighterProps> = ({ WASMData, username }) => {
const GSXActive = () => {
return (
(WASMData.GSX.boardingState >= GSX_SERVICE_CALLED || WASMData.GSX.deboardingState >= GSX_SERVICE_CALLED) &&
WASMData.GSX.deboardingState !== GSX_SERVICE_FINISHED
WASMData.GSX.couatlStarted &&
WASMData.GSX.loadingState !== GSXLoadingState.IDLE &&
WASMData.GSX.loadingState !== GSXLoadingState.DEBOARDED
);
};
const GSXFuelActive = () => {
return WASMData.GSX.couatlStarted && WASMData.GSX.fuelingState !== GSXFuelingState.IDLE;
};
const CGs = (): [string, boolean, string, boolean] => {
if (loadingState !== 'loaded' && !GSXActive()) {
@@ -75,6 +79,15 @@ const Freighter: FC<FreighterProps> = ({ WASMData, username }) => {
];
}
if (WASMData.options.GSXSync && GSXActive() && WASMData.GSX.loadingState === GSXLoadingState.BOARDING) {
return [
WASMData.targetPayload.ZFWCG.toFixed(1),
WASMData.targetPayload.ZFWCG < WASMData.limits.minCG || WASMData.targetPayload.ZFWCG > WASMData.limits.maxCG,
WASMData.targetPayload.TOCG.toFixed(1),
WASMData.targetPayload.TOCG < WASMData.limits.minCG || WASMData.targetPayload.TOCG > WASMData.limits.maxCG,
];
}
return [
WASMData.livePayload.ZFWCG.toFixed(1),
WASMData.livePayload.ZFWCG < WASMData.limits.minCG || WASMData.livePayload.ZFWCG > WASMData.limits.maxCG,
@@ -83,10 +96,14 @@ const Freighter: FC<FreighterProps> = ({ WASMData, username }) => {
];
};
useEffect(() => {
setLoadingState(WASMData.loaded ? 'loaded' : 'preview');
}, [WASMData.loaded]);
return (
<>
<Profile
type="PAX"
type="F"
isER={WASMData.userData.isER}
upper1={`${upper1(GSXActive() ? 'loaded' : loadingState)}`}
upper2={`${upper2(GSXActive() ? 'loaded' : loadingState)}`}
@@ -99,11 +116,12 @@ const Freighter: FC<FreighterProps> = ({ WASMData, username }) => {
unit={WASMData.userData.isImperial ? 'LBS' : 'KG'}
inPreview={loadingState !== 'loaded' && !GSXActive()}
CGs={CGs()}
done={
WASMData.options.GSXSync ? WASMData.GSX.loadingState === GSXLoadingState.BOARDED : loadingState !== 'preview'
}
/>
<Tabbar
tabs={
username ? ['Simbrief', 'ZFW', 'Passengers & Cargo', 'Options'] : ['ZFW', 'Passengers & Cargo', 'Options']
}
tabs={username ? ['Simbrief', 'ZFW', 'Cargo', 'Options'] : ['ZFW', 'Cargo', 'Options']}
selectedTab={selectedTab}
setSelectedTab={setSelectedTab}
/>
@@ -111,15 +129,31 @@ const Freighter: FC<FreighterProps> = ({ WASMData, username }) => {
<SBEntryF
WASMData={WASMData}
loadingState={loadingState}
username={username}
setLoadingState={setLoadingState}
gsxActive={GSXActive()}
gsxFuelActive={GSXFuelActive()}
/>
)}
{((username && selectedTab === 1) || (!username && selectedTab === 0)) && (
<ZFWEntryF WASMData={WASMData} loadingState={loadingState} setLoadingState={setLoadingState} />
<ZFWEntryF
WASMData={WASMData}
loadingState={loadingState}
setLoadingState={setLoadingState}
gsxActive={GSXActive()}
gsxFuelActive={GSXFuelActive()}
/>
)}
{((username && selectedTab === 2) || (!username && selectedTab === 1)) && (
<StationEntryF WASMData={WASMData} loadingState={loadingState} setLoadingState={setLoadingState} />
<StationEntryF
WASMData={WASMData}
loadingState={loadingState}
setLoadingState={setLoadingState}
gsxActive={GSXActive()}
gsxFuelActive={GSXFuelActive()}
/>
)}
{((username && selectedTab === 3) || (!username && selectedTab === 2)) && (
<OptionsF WASMData={WASMData} loadingState={loadingState} gsxActive={GSXActive()} />
)}
</>
);
@@ -0,0 +1,102 @@
import { useEffect, useRef, useState } from 'react';
import { v4 } from 'uuid';
import Keyboard from '../keyboard/Keyboard';
export default function Input(props: {
type?: string;
topKeyboard?: boolean;
value: number | string;
min?: number;
max?: number;
step?: number;
placeholder?: string;
className?: string;
disabled?: boolean;
onChange?: (value: string) => void;
onBlur?: (value: string) => void;
}) {
const [guid] = useState(v4());
const ref = useRef<HTMLInputElement>(null);
const keyboardRef = useRef<HTMLDivElement>(null);
const blurRef = useRef<boolean>(false);
const [isFocused, setFocused] = useState(false);
const [showKeyboard, setShowKeyboard] = useState(false);
const [unfocusTimer, setUnfocusTimer] = useState<NodeJS.Timeout | null>(null);
useEffect(() => {
if (unfocusTimer) {
clearTimeout(unfocusTimer);
setUnfocusTimer(null);
}
if (isFocused) {
setUnfocusTimer(setTimeout(() => ref.current?.blur(), 5e3));
Coherent.trigger('FOCUS_INPUT_FIELD', guid, '', '', '', false);
} else {
console.log('UNFOCUS_INPUT_FIELD');
Coherent.trigger('UNFOCUS_INPUT_FIELD', guid);
}
return () => {
if (unfocusTimer) {
clearTimeout(unfocusTimer);
setUnfocusTimer(null);
}
};
}, [isFocused, guid]);
return (
<>
<input
ref={ref}
type={props.type ? props.type : 'text'}
min={props.min}
max={props.max}
step={props.step}
placeholder={props.placeholder}
disabled={props.disabled}
onFocus={() => {
if (!isFocused) {
setFocused(true);
setShowKeyboard(true);
ref.current?.select();
}
}}
onBlur={(e) => {
if (blurRef.current && isFocused) ref.current?.focus();
else {
props.onBlur?.(e.target.value);
setShowKeyboard(false);
setFocused(false);
ref.current?.blur();
}
blurRef.current = false;
}}
onChange={(e) => {
if (props.onChange) props.onChange(e.target.value);
if (unfocusTimer) {
clearTimeout(unfocusTimer);
setUnfocusTimer(null);
}
if (isFocused) setUnfocusTimer(setTimeout(() => ref.current?.blur(), 5e3));
}}
value={props.value}
className={props.className}
/>
{showKeyboard && (
<Keyboard
ref={keyboardRef}
top={props.topKeyboard}
value={String(props.value)}
blurRef={blurRef}
onInput={(value) => props.onChange && props.onChange(value)}
onClose={() => {
setShowKeyboard(false);
setFocused(false);
ref.current?.blur();
}}
/>
)}
</>
);
}
@@ -0,0 +1,108 @@
import { ArrowBigUp, Delete, Space, X } from 'lucide-react';
import { forwardRef, RefObject, useState } from 'react';
import { createPortal } from 'react-dom';
const defaultLayout = {
default: [
'1 2 3 4 5 6 7 8 9 0 {bksp}',
'q w e r t y u i o p',
'a s d f g h j k l',
'{shift} z x c v b n m /',
'{space} {close}',
],
shift: [
'1 2 3 4 5 6 7 8 9 0 {bksp}',
'Q W E R T Y U I O P',
'A S D F G H J K L',
'{shift} Z X C V B N M /',
'{space} {close}',
],
};
const Keyboard = forwardRef<
HTMLDivElement,
{
value: string;
blurRef: RefObject<boolean>;
top?: boolean;
onInput: (value: string) => void;
onClose: () => void;
}
>(({ value, top, blurRef, onInput, onClose }, ref) => {
const [shift, setShift] = useState(false);
const layout = shift ? defaultLayout.shift : defaultLayout.default;
const handleKeyPress = (key: string) => {
console.log('KEY PRESSED', key);
if (key === '{close}') {
onClose();
return;
}
blurRef.current = true;
if (key === '{shift}') {
setShift(!shift);
return;
}
let newValue = value;
if (key === '{bksp}') {
newValue = value.slice(0, -1);
} else if (key === '{space}') {
newValue = value + ' ';
} else if (key.length === 1) {
newValue = value + key;
}
onInput(newValue);
};
return createPortal(
<div
ref={ref}
className={`absolute ${top ? 'top-0' : 'bottom-0'} left-0 z-50 box-border w-full touch-manipulation select-none overflow-hidden bg-zinc-800 p-2 text-white`}
>
{layout.map((row, rowIndex) => (
<div key={`row-${rowIndex}`} className="mb-1 flex w-full justify-center gap-1">
{row.split(' ').map((key, keyIndex) => {
let keyIdent = <>{key}</>;
switch (key) {
case '{shift}':
keyIdent = <ArrowBigUp />;
break;
case '{bksp}':
keyIdent = <Delete />;
break;
case '{close}':
keyIdent = <X />;
break;
case '{space}':
keyIdent = <Space />;
break;
}
return (
<button
key={`key-${rowIndex}-${keyIndex}`}
className={`flex justify-center rounded-md p-4 ${
key === '{close}' ? 'bg-zinc-700 px-12 focus:bg-zinc-600' : 'flex-1 bg-zinc-600'
}`}
onMouseDown={() => handleKeyPress(key)}
>
{keyIdent}
</button>
);
})}
</div>
))}
</div>,
document.body
);
});
Keyboard.displayName = "Keyboard"
export default Keyboard;
@@ -0,0 +1,121 @@
import { FC } from 'react';
import { LoadingState } from '../../types/general';
import { WASMDataF } from '../../types/WASMData';
import { CoherentCallGSXReset, CoherentCallOptionsSet } from '../../utils/utils';
import ToggleComponentKH from '../toggleComponent/ToggleComponent';
interface OptionsFProps {
WASMData: WASMDataF;
loadingState: LoadingState;
gsxActive: boolean;
}
const OptionsF: FC<OptionsFProps> = ({ WASMData, loadingState, gsxActive }) => {
return (
<>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-md bg-zinc-600 p-2 px-4">
<ToggleComponentKH
optionName="GSX Sync"
value={WASMData.options.GSXSync}
leftLabel={{ value: true }}
rightLabel={{ value: false }}
backgroundColor="bg-zinc-700"
setValue={(value) => {
CoherentCallOptionsSet(value);
}}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
{WASMData.userData.isER ? (
<>
<h2 className="text-sm font-medium uppercase">SimBrief Profile Settings - ER Variant</h2>
<table className="text-xs">
<tbody>
<tr>
<td className="p-1 px-2">Max Passengers</td>
<td className="p-1 px-2">0</td>
</tr>
<tr>
<td className="p-1 px-2">Passenger Weight</td>
<td className="p-1 px-2">1 {WASMData.userData.isImperial ? 'lbs' : 'kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Bag Weight</td>
<td className="p-1 px-2">0 {WASMData.userData.isImperial ? 'lbs' : 'kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Empty Weight (inc. crew)</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '249537 lbs' : '113188 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Zero Fuel Weight</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '451300 lbs' : '204706 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Takeoff Weight</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '630500 lbs' : '285990 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Fuel Capacity</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '282619 lbs' : '128193 kg'}</td>
</tr>
</tbody>
</table>
</>
) : (
<>
<h2 className="text-sm font-medium uppercase">SimBrief Profile Settings - Normal variant</h2>
<table className="text-xs">
<tbody>
<tr>
<td className="p-1 px-2">Max Passengers</td>
<td className="p-1 px-2">0</td>
</tr>
<tr>
<td className="p-1 px-2">Passenger Weight</td>
<td className="p-1 px-2">1 {WASMData.userData.isImperial ? 'lbs' : 'kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Bag Weight</td>
<td className="p-1 px-2">0 {WASMData.userData.isImperial ? 'lbs' : 'kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Empty Weight (inc. crew)</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '249137 lbs' : '113006 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Zero Fuel Weight</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '451300 lbs' : '204706 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Takeoff Weight</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '625500 lbs' : '283722 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Fuel Capacity</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '256207 lbs' : '116213 kg'}</td>
</tr>
</tbody>
</table>
</>
)}
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<button
className="middle none center rounded-lg bg-red-600 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-red-500/20 transition-all hover:shadow-lg hover:shadow-red-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
data-ripple-light="true"
onClick={CoherentCallGSXReset}
>
Reset internal GSX state
</button>
</div>
</>
);
};
export default OptionsF;
@@ -0,0 +1,182 @@
import { FC, useEffect, useState } from 'react';
import { LoadingState } from '../../types/general';
import { WASMDataPax } from '../../types/WASMData';
import { CoherentCallGSXReset, CoherentCallOptionsSet } from '../../utils/utils';
import Input from '../input/Input';
import ToggleComponentKH from '../toggleComponent/ToggleComponent';
interface OptionsPaxProps {
WASMData: WASMDataPax;
loadingState: LoadingState;
gsxActive: boolean;
}
const OptionsPax: FC<OptionsPaxProps> = ({ WASMData, loadingState, gsxActive }) => {
const [paxWeight, setPaxWeight] = useState(WASMData.options.paxWeight);
const [bagWeight, setBagWeight] = useState(WASMData.options.bagWeight);
const updateData = () => {
CoherentCallOptionsSet(undefined, paxWeight, bagWeight);
};
const handleInput = (input: string, maxValue: number, setter: (value: number) => void) => {
if (!input) {
setter(0);
return;
}
const converted = parseInt(input);
if (converted) {
if (converted < 0) setter(0);
else if (converted > maxValue) setter(maxValue);
else setter(converted);
}
};
useEffect(() => updateData(), [paxWeight, bagWeight]);
return (
<>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-md bg-zinc-600 p-2 px-4">
<ToggleComponentKH
optionName="GSX Sync"
value={WASMData.options.GSXSync}
leftLabel={{ value: true }}
rightLabel={{ value: false }}
backgroundColor="bg-zinc-700"
setValue={(value) => {
CoherentCallOptionsSet(value);
}}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<div className="flex w-full items-center justify-between text-xs">
<label>Pax Weight ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={paxWeight}
onChange={(value) => handleInput(value, Number.MAX_VALUE, setPaxWeight)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<div className="flex w-full items-center justify-between text-xs">
<label>Bag Weight ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={bagWeight}
onChange={(value) => handleInput(value, Number.MAX_VALUE, setBagWeight)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
{WASMData.userData.isER ? (
<>
<h2 className="text-sm font-medium uppercase">SimBrief Profile Settings - ER Variant</h2>
<table className="text-xs">
<tbody>
<tr>
<td className="p-1 px-2">Max Passengers</td>
<td className="p-1 px-2">313</td>
</tr>
<tr>
<td className="p-1 px-2">Passenger Weight</td>
<td className="p-1 px-2">
{WASMData.options.paxWeight} {WASMData.userData.isImperial ? 'lbs' : 'kg'}
</td>
</tr>
<tr>
<td className="p-1 px-2">Bag Weight</td>
<td className="p-1 px-2">
{WASMData.options.bagWeight} {WASMData.userData.isImperial ? 'lbs' : 'kg'}
</td>
</tr>
<tr>
<td className="p-1 px-2">Empty Weight (inc. crew)</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '286465 lbs' : '129937 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Zero Fuel Weight</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '400000 lbs' : '181437 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Takeoff Weight</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '630500 lbs' : '285990 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Fuel Capacity</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '282619 lbs' : '128193 kg'}</td>
</tr>
</tbody>
</table>
</>
) : (
<>
<h2 className="text-sm font-medium uppercase">SimBrief Profile Settings - Normal variant</h2>
<table className="text-xs">
<tbody>
<tr>
<td className="p-1 px-2">Max Passengers</td>
<td className="p-1 px-2">313</td>
</tr>
<tr>
<td className="p-1 px-2">Passenger Weight</td>
<td className="p-1 px-2">
{WASMData.options.paxWeight} {WASMData.userData.isImperial ? 'lbs' : 'kg'}
</td>
</tr>
<tr>
<td className="p-1 px-2">Bag Weight</td>
<td className="p-1 px-2">
{WASMData.options.bagWeight} {WASMData.userData.isImperial ? 'lbs' : 'kg'}
</td>
</tr>
<tr>
<td className="p-1 px-2">Empty Weight (inc. crew)</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '286065 lbs' : '129755 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Zero Fuel Weight</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '400000 lbs' : '181437 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Takeoff Weight</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '625500 lbs' : '283722 kg'}</td>
</tr>
<tr>
<td className="p-1 px-2">Max Fuel Capacity</td>
<td className="p-1 px-2">{WASMData.userData.isImperial ? '256207 lbs' : '116213 kg'}</td>
</tr>
</tbody>
</table>
</>
)}
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<button
className="middle none center rounded-lg bg-red-600 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-red-500/20 transition-all hover:shadow-lg hover:shadow-red-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
data-ripple-light="true"
onClick={CoherentCallGSXReset}
>
Reset internal GSX state & disable SYNC
</button>
</div>
</>
);
};
export default OptionsPax;
@@ -1,7 +1,7 @@
import { FC, useState } from 'react';
import { GSX_SERVICE_CALLED, GSX_SERVICE_FINISHED } from '../../constants';
import { FC, useEffect, useState } from 'react';
import { LoadingState } from '../../types/general';
import { WASMDataPax } from '../../types/WASMData';
import { GSXFuelingState, GSXLoadingState, WASMDataPax } from '../../types/WASMData';
import OptionsPax from '../options/OptionsPax';
import Profile from '../profile/Profile';
import SBEntryPax from '../SBEntry/SBEntryPax';
import StationEntryPax from '../stationEntry/StationEntryPax';
@@ -60,10 +60,14 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
const GSXActive = () => {
return (
(WASMData.GSX.boardingState >= GSX_SERVICE_CALLED || WASMData.GSX.deboardingState >= GSX_SERVICE_CALLED) &&
WASMData.GSX.deboardingState !== GSX_SERVICE_FINISHED
WASMData.GSX.couatlStarted &&
WASMData.GSX.loadingState !== GSXLoadingState.IDLE &&
WASMData.GSX.loadingState !== GSXLoadingState.DEBOARDED
);
};
const GSXFuelActive = () => {
return WASMData.GSX.couatlStarted && WASMData.GSX.fuelingState !== GSXFuelingState.IDLE;
};
const CGs = (): [string, boolean, string, boolean] => {
if (loadingState !== 'loaded' && !GSXActive()) {
@@ -75,6 +79,15 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
];
}
if (WASMData.options.GSXSync && GSXActive() && WASMData.GSX.loadingState === GSXLoadingState.BOARDING) {
return [
WASMData.targetPayload.ZFWCG.toFixed(1),
WASMData.targetPayload.ZFWCG < WASMData.limits.minCG || WASMData.targetPayload.ZFWCG > WASMData.limits.maxCG,
WASMData.targetPayload.TOCG.toFixed(1),
WASMData.targetPayload.TOCG < WASMData.limits.minCG || WASMData.targetPayload.TOCG > WASMData.limits.maxCG,
];
}
return [
WASMData.livePayload.ZFWCG.toFixed(1),
WASMData.livePayload.ZFWCG < WASMData.limits.minCG || WASMData.livePayload.ZFWCG > WASMData.limits.maxCG,
@@ -83,6 +96,10 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
];
};
useEffect(() => {
setLoadingState(WASMData.loaded ? 'loaded' : 'preview');
}, [WASMData.loaded]);
return (
<>
<Profile
@@ -103,6 +120,9 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
unit={WASMData.userData.isImperial ? 'LBS' : 'KG'}
inPreview={loadingState !== 'loaded' && !GSXActive()}
CGs={CGs()}
done={
WASMData.options.GSXSync ? WASMData.GSX.loadingState === GSXLoadingState.BOARDED : loadingState !== 'preview'
}
/>
<Tabbar
tabs={
@@ -115,15 +135,31 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
<SBEntryPax
WASMData={WASMData}
loadingState={loadingState}
username={username}
setLoadingState={setLoadingState}
gsxActive={GSXActive()}
gsxFuelActive={GSXFuelActive()}
/>
)}
{((username && selectedTab === 1) || (!username && selectedTab === 0)) && (
<ZFWEntryPax WASMData={WASMData} loadingState={loadingState} setLoadingState={setLoadingState} />
<ZFWEntryPax
WASMData={WASMData}
loadingState={loadingState}
setLoadingState={setLoadingState}
gsxActive={GSXActive()}
gsxFuelActive={GSXFuelActive()}
/>
)}
{((username && selectedTab === 2) || (!username && selectedTab === 1)) && (
<StationEntryPax WASMData={WASMData} loadingState={loadingState} setLoadingState={setLoadingState} />
<StationEntryPax
WASMData={WASMData}
loadingState={loadingState}
setLoadingState={setLoadingState}
gsxActive={GSXActive()}
gsxFuelActive={GSXFuelActive()}
/>
)}
{((username && selectedTab === 3) || (!username && selectedTab === 2)) && (
<OptionsPax WASMData={WASMData} loadingState={loadingState} gsxActive={GSXActive()} />
)}
</>
);
@@ -20,6 +20,7 @@ interface ProfileProps {
CGs: [string, boolean, string, boolean];
unit: string;
inPreview: boolean;
done: boolean;
}
const Profile: FC<ProfileProps> = ({
@@ -40,10 +41,12 @@ const Profile: FC<ProfileProps> = ({
CGs,
unit,
inPreview,
done,
}) => {
const previewClass = inPreview ? styles['fill-neutral-500'] : undefined;
const ZFWCGClass = CGs[1] ? styles['fill-red-500'] : previewClass;
const TOCGClass = CGs[3] ? styles['fill-red-500'] : previewClass;
const doneClass = done ? undefined : styles['fill-neutral-500'];
const ZFWCGClass = CGs[1] ? styles['fill-red-500'] : doneClass;
const TOCGClass = CGs[3] ? styles['fill-red-500'] : doneClass;
return (
<svg viewBox="0 0 4002 780" version="1.1" xmlns="http://www.w3.org/2000/svg" className="mb-4">
@@ -113,17 +116,17 @@ const Profile: FC<ProfileProps> = ({
</text>
<text style={{ fill: 'white', fontSize: '160px' }} x="1730.4194" y="142.15625">
ZFWCG:
</text>
<text style={{ fill: 'white', fontSize: '160px' }} x="2540.771" y="142.15625">
<tspan className={ZFWCGClass}>{CGs[0]}</tspan>
</text>
<text style={{ fill: 'white', fontSize: '160px' }} x="1730.4194" y="288.875">
TOCG:
</text>
<text style={{ fill: 'white', fontSize: '160px' }} x="2540.771" y="288.875">
<text style={{ fill: 'white', fontSize: '160px' }} x="2540.771" y="142.15625">
<tspan className={TOCGClass}>{CGs[2]}</tspan>
</text>
<text style={{ fill: 'white', fontSize: '160px' }} x="1730.4194" y="288.875">
ZFWCG:
</text>
<text style={{ fill: 'white', fontSize: '160px' }} x="2540.771" y="288.875">
<tspan className={ZFWCGClass}>{CGs[0]}</tspan>
</text>
<path
style={{
@@ -1,33 +1,29 @@
import { FC, useEffect, useState } from 'react';
import {
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
GSX_SERVICE_CALLED,
GSX_SERVICE_FINISHED,
} from '../../constants';
import { LoadingState } from '../../types/general';
import { WASMDataF } from '../../types/WASMData';
import { inRangeOf, loadAircraft, unloadAircraft } from '../../utils/utils';
import { CoherentCallStationEntryF, loadAircraft, unloadAircraft } from '../../utils/utils';
import ActionBar from '../actionbar/ActionBar';
import Input from '../input/Input';
interface StationEntryProps {
WASMData: WASMDataF;
loadingState: LoadingState;
gsxActive: boolean;
gsxFuelActive: boolean;
setLoadingState: (newState: LoadingState) => void;
}
const StationEntryF: FC<StationEntryProps> = ({ WASMData, loadingState, setLoadingState }) => {
const StationEntryF: FC<StationEntryProps> = ({ WASMData, loadingState, gsxActive, gsxFuelActive, setLoadingState }) => {
const [upper1, setUpper1] = useState(WASMData.targetPayload.upper1);
const [upper2, setUpper2] = useState(WASMData.targetPayload.upper2);
const [upper3, setUpper3] = useState(WASMData.targetPayload.upper3);
const [upper4, setUpper4] = useState(WASMData.targetPayload.upper4);
const [lowerForward, setLowerForward] = useState(WASMData.targetPayload.lowerForward);
const [lowerRear, setLowerRear] = useState(WASMData.targetPayload.lowerRear);
const [fuel, setFuel] = useState(Math.round(WASMData.livePayload.fuel));
const [fuelEnabled, setFuelEnabled] = useState(true);
const [fuel, setFuel] = useState(Math.round(WASMData.targetPayload.fuel));
const ZFW = () => {
if (loadingState !== 'loaded' && !GSXActive()) return Math.round(WASMData.targetPayload.total);
if (loadingState !== 'loaded' && !gsxActive) return Math.round(WASMData.targetPayload.total);
return Math.round(WASMData.livePayload.total);
};
@@ -41,13 +37,6 @@ const StationEntryF: FC<StationEntryProps> = ({ WASMData, loadingState, setLoadi
return GW() <= WASMData.limits.maxTOW;
};
const GSXActive = () => {
return (
(WASMData.GSX.boardingState >= GSX_SERVICE_CALLED || WASMData.GSX.deboardingState >= GSX_SERVICE_CALLED) &&
WASMData.GSX.deboardingState !== GSX_SERVICE_FINISHED
);
};
const handleInput = (input: string, maxValue: number, setter: (value: number) => void) => {
if (!input) {
setter(0);
@@ -62,7 +51,11 @@ const StationEntryF: FC<StationEntryProps> = ({ WASMData, loadingState, setLoadi
}
};
useEffect(() => updateData(), [upper1, upper2, upper3, upper4, lowerForward, lowerRear]);
const updateData = () => {
CoherentCallStationEntryF(upper1, upper2, upper3, upper4, lowerForward, lowerRear, fuel);
};
useEffect(() => updateData(), [upper1, upper2, upper3, upper4, lowerForward, lowerRear, fuel]);
useEffect(
() =>
setFuel((prev) => {
@@ -71,153 +64,138 @@ const StationEntryF: FC<StationEntryProps> = ({ WASMData, loadingState, setLoadi
}),
[WASMData.userData.isER]
);
useEffect(() => {
setFuelEnabled(inRangeOf(Math.round(WASMData.livePayload.fuel), fuel));
}, [WASMData.livePayload.fuel]);
const updateData = () => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
JSON.stringify({
mode: 2,
business1: upper1,
business2: upper2,
economy1: upper3,
economy2: upper4,
forwardCargo: lowerForward,
rearCargo: lowerRear,
})
);
};
return (
<>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-md bg-zinc-600 p-2 px-4">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(e) => handleInput(e.target.value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<button
className="middle none center rounded-lg bg-green-600 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-green-500/20 transition-all hover:shadow-lg hover:shadow-green-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
data-ripple-light="true"
onClick={() => {
SimVar.SetSimVarValue(
'L:MD11_EFB_PAYLOAD_FUEL',
'lbs',
WASMData.userData.isImperial ? fuel : fuel * 2.20462262185
);
SimVar.SetSimVarValue('L:MD11_EFB_READ_READY', 'bool', true);
setFuelEnabled(WASMData.livePayload.fuel === fuel);
}}
disabled={loadingState !== 'preview' || !fuelEnabled || GSXActive()}
>
Load Fuel
</button>
<div className="flex w-full items-center justify-between text-xs">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(value) => handleInput(value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || gsxFuelActive}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>Upper 1</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={upper1}
onChange={(e) => handleInput(e.target.value, WASMData.limits.upper1, setUpper1)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Upper 1</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={upper1}
onChange={(value) => handleInput(value, WASMData.limits.upper1, setUpper1)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-700 p-2 px-4">
<label>Upper 2</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={upper2}
onChange={(e) => handleInput(e.target.value, WASMData.limits.upper2, setUpper2)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Upper 2</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={upper2}
onChange={(value) => handleInput(value, WASMData.limits.upper2, setUpper2)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-600 p-2 px-4">
<label>Upper 3</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={upper3}
onChange={(e) => handleInput(e.target.value, WASMData.limits.upper3, setUpper3)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Upper 3</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={upper3}
onChange={(value) => handleInput(value, WASMData.limits.upper3, setUpper3)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-700 p-2 px-4">
<label>Upper 4</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={upper4}
onChange={(e) => handleInput(e.target.value, WASMData.limits.upper4, setUpper4)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Upper 4</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={upper4}
onChange={(value) => handleInput(value, WASMData.limits.upper4, setUpper4)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-600 p-2 px-4">
<label>Forward Cargo ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={lowerForward}
onChange={(e) => handleInput(e.target.value, WASMData.limits.lowerForward, setLowerForward)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Forward Cargo ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
topKeyboard
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={lowerForward}
onChange={(value) => handleInput(value, WASMData.limits.lowerForward, setLowerForward)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>Aft Cargo ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={lowerRear}
onChange={(e) => handleInput(e.target.value, WASMData.limits.lowerRear, setLowerRear)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Aft Cargo ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
topKeyboard
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={lowerRear}
onChange={(value) => handleInput(value, WASMData.limits.lowerRear, setLowerRear)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
</div>
</div>
</div>
@@ -225,7 +203,6 @@ const StationEntryF: FC<StationEntryProps> = ({ WASMData, loadingState, setLoadi
loadingState={loadingState}
loadDisabled={!ZFWValid() || !GWValid()}
GSXSync={WASMData.options.GSXSync}
GSXActive={GSXActive()}
load={() => {
setLoadingState('loaded');
@@ -1,33 +1,35 @@
import { FC, useEffect, useState } from 'react';
import {
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
GSX_SERVICE_CALLED,
GSX_SERVICE_FINISHED,
} from '../../constants';
import { LoadingState } from '../../types/general';
import { WASMDataPax } from '../../types/WASMData';
import { inRangeOf, loadAircraft, unloadAircraft } from '../../utils/utils';
import { CoherentCallStationEntryPax, loadAircraft, unloadAircraft } from '../../utils/utils';
import ActionBar from '../actionbar/ActionBar';
import Input from '../input/Input';
interface StationEntryProps {
WASMData: WASMDataPax;
loadingState: LoadingState;
gsxActive: boolean;
gsxFuelActive: boolean;
setLoadingState: (newState: LoadingState) => void;
}
const StationEntryPax: FC<StationEntryProps> = ({ WASMData, loadingState, setLoadingState }) => {
const StationEntryPax: FC<StationEntryProps> = ({
WASMData,
loadingState,
gsxActive,
gsxFuelActive,
setLoadingState,
}) => {
const [business1, setBusiness1] = useState(WASMData.targetPayload.business1);
const [business2, setBusiness2] = useState(WASMData.targetPayload.business2);
const [economy1, setEconomy1] = useState(WASMData.targetPayload.economy1);
const [economy2, setEconomy2] = useState(WASMData.targetPayload.economy2);
const [forwardCargo, setForwardCargo] = useState(WASMData.targetPayload.forwardCargo);
const [rearCargo, setRearCargo] = useState(WASMData.targetPayload.rearCargo);
const [fuel, setFuel] = useState(Math.round(WASMData.livePayload.fuel));
const [fuelEnabled, setFuelEnabled] = useState(true);
const [fuel, setFuel] = useState(Math.round(WASMData.targetPayload.fuel));
const ZFW = () => {
if (loadingState !== 'loaded' && !GSXActive()) return Math.round(WASMData.targetPayload.total);
if (loadingState !== 'loaded' && !gsxActive) return Math.round(WASMData.targetPayload.total);
return Math.round(WASMData.livePayload.total);
};
@@ -41,13 +43,6 @@ const StationEntryPax: FC<StationEntryProps> = ({ WASMData, loadingState, setLoa
return GW() <= WASMData.limits.maxTOW;
};
const GSXActive = () => {
return (
(WASMData.GSX.boardingState >= GSX_SERVICE_CALLED || WASMData.GSX.deboardingState >= GSX_SERVICE_CALLED) &&
WASMData.GSX.deboardingState !== GSX_SERVICE_FINISHED
);
};
const handleInput = (input: string, maxValue: number, setter: (value: number) => void) => {
if (!input) {
setter(0);
@@ -62,7 +57,11 @@ const StationEntryPax: FC<StationEntryProps> = ({ WASMData, loadingState, setLoa
}
};
useEffect(() => updateData(), [business1, business2, economy1, economy2, forwardCargo, rearCargo]);
const updateData = () => {
CoherentCallStationEntryPax(business1, business2, economy1, economy2, forwardCargo, rearCargo, fuel);
};
useEffect(() => updateData(), [business1, business2, economy1, economy2, forwardCargo, rearCargo, fuel]);
useEffect(
() =>
setFuel((prev) => {
@@ -71,153 +70,138 @@ const StationEntryPax: FC<StationEntryProps> = ({ WASMData, loadingState, setLoa
}),
[WASMData.userData.isER]
);
useEffect(() => {
setFuelEnabled(inRangeOf(Math.round(WASMData.livePayload.fuel), fuel));
}, [WASMData.livePayload.fuel]);
const updateData = () => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
JSON.stringify({
mode: 2,
business1,
business2,
economy1,
economy2,
forwardCargo,
rearCargo,
})
);
};
return (
<>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-md bg-zinc-600 p-2 px-4">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(e) => handleInput(e.target.value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<button
className="middle none center rounded-lg bg-green-600 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-green-500/20 transition-all hover:shadow-lg hover:shadow-green-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
data-ripple-light="true"
onClick={() => {
SimVar.SetSimVarValue(
'L:MD11_EFB_PAYLOAD_FUEL',
'lbs',
WASMData.userData.isImperial ? fuel : fuel * 2.20462262185
);
SimVar.SetSimVarValue('L:MD11_EFB_READ_READY', 'bool', true);
setFuelEnabled(WASMData.livePayload.fuel === fuel);
}}
disabled={loadingState !== 'preview' || !fuelEnabled || GSXActive()}
>
Load Fuel
</button>
<div className="flex w-full items-center justify-between text-xs">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(value) => handleInput(value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || gsxFuelActive}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>Business</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={business1}
onChange={(e) => handleInput(e.target.value, WASMData.limits.business1, setBusiness1)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Business</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={business1}
onChange={(value) => handleInput(value, WASMData.limits.business1, setBusiness1)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-700 p-2 px-4">
<label>Premium Economy</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={business2}
onChange={(e) => handleInput(e.target.value, WASMData.limits.business2, setBusiness2)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Premium Economy</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={business2}
onChange={(value) => handleInput(value, WASMData.limits.business2, setBusiness2)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-600 p-2 px-4">
<label>Forward Economy</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={economy1}
onChange={(e) => handleInput(e.target.value, WASMData.limits.economy1, setEconomy1)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Forward Economy</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={economy1}
onChange={(value) => handleInput(value, WASMData.limits.economy1, setEconomy1)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-700 p-2 px-4">
<label>Aft Economy</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={economy2}
onChange={(e) => handleInput(e.target.value, WASMData.limits.economy2, setEconomy2)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Aft Economy</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={economy2}
onChange={(value) => handleInput(value, WASMData.limits.economy2, setEconomy2)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between bg-zinc-600 p-2 px-4">
<label>Forward Cargo ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={forwardCargo}
onChange={(e) => handleInput(e.target.value, WASMData.limits.forwardCargo, setForwardCargo)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Forward Cargo ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
topKeyboard
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={forwardCargo}
onChange={(value) => handleInput(value, WASMData.limits.forwardCargo, setForwardCargo)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>Aft Cargo ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={rearCargo}
onChange={(e) => handleInput(e.target.value, WASMData.limits.rearCargo, setRearCargo)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Aft Cargo ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
topKeyboard
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={rearCargo}
onChange={(value) => handleInput(value, WASMData.limits.rearCargo, setRearCargo)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
</div>
</div>
</div>
@@ -225,7 +209,6 @@ const StationEntryPax: FC<StationEntryProps> = ({ WASMData, loadingState, setLoa
loadingState={loadingState}
loadDisabled={!ZFWValid() || !GWValid()}
GSXSync={WASMData.options.GSXSync}
GSXActive={GSXActive()}
load={() => {
setLoadingState('loaded');
@@ -0,0 +1,51 @@
interface ToggleComponentProps<T> {
optionName: string;
value: T;
leftLabel: {
value: T;
label?: string;
};
rightLabel: {
value: T;
label?: string;
};
backgroundColor: string;
disabled?: boolean;
setValue: (value: T) => void;
}
const ToggleComponentKH = <T,>({
optionName,
value,
leftLabel,
rightLabel,
backgroundColor,
disabled,
setValue,
}: ToggleComponentProps<T>) => {
return (
<div className="flex w-full items-center justify-between text-xs">
<span>{optionName}</span>
<div className="inline-flex w-1/2 rounded-md shadow-sm">
<button
type="button"
className={`${value === leftLabel.value ? 'bg-green-700' : backgroundColor} w-1/2 rounded-l-lg border border-white px-4 py-2 text-white disabled:pointer-events-none disabled:opacity-50`}
onClick={() => setValue(leftLabel.value)}
disabled={disabled}
>
{leftLabel.label || 'Enabled'}
</button>
<button
type="button"
className={`${value === rightLabel.value ? 'bg-green-700' : backgroundColor} w-1/2 rounded-r-md border border-white px-4 py-2 text-white disabled:pointer-events-none disabled:opacity-50`}
onClick={() => setValue(rightLabel.value)}
disabled={disabled}
>
{rightLabel.label || 'Disabled'}
</button>
</div>
</div>
);
};
export default ToggleComponentKH;
@@ -1,30 +1,26 @@
import { FC, useEffect, useState } from 'react';
import {
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
GSX_SERVICE_CALLED,
GSX_SERVICE_FINISHED,
} from '../../constants';
import { WASMDataF } from '../../types/WASMData';
import { LoadingState } from '../../types/general';
import { inRangeOf, loadAircraft, unloadAircraft } from '../../utils/utils';
import { CoherentCallZFWEntry, loadAircraft, unloadAircraft } from '../../utils/utils';
import CGSelect from '../CGSelect/CGSelect';
import ActionBar from '../actionbar/ActionBar';
import Input from '../input/Input';
interface ZFWEntryProps {
WASMData: WASMDataF;
loadingState: LoadingState;
gsxActive: boolean;
gsxFuelActive: boolean;
setLoadingState: (newState: LoadingState) => void;
}
const ZFWEntryF: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingState }) => {
const ZFWEntryF: FC<ZFWEntryProps> = ({ WASMData, loadingState, gsxActive, gsxFuelActive, setLoadingState }) => {
const [CGTarget, setCGTarget] = useState(WASMData.targetPayload.CGTarget);
const [fuel, setFuel] = useState(Math.round(WASMData.livePayload.fuel));
const [fuel, setFuel] = useState(Math.round(WASMData.targetPayload.fuel));
const [ZFWTarget, setZFWTarget] = useState(Math.round(WASMData.targetPayload.total));
const [fuelEnabled, setFuelEnabled] = useState(true);
const ZFW = () => {
if (loadingState !== 'loaded' && !GSXActive()) return ZFWTarget;
if (loadingState !== 'loaded' && !gsxActive) return ZFWTarget;
return Math.round(WASMData.livePayload.total);
};
@@ -38,13 +34,6 @@ const ZFWEntryF: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingState
return GW() <= WASMData.limits.maxTOW;
};
const GSXActive = () => {
return (
(WASMData.GSX.boardingState >= GSX_SERVICE_CALLED || WASMData.GSX.deboardingState >= GSX_SERVICE_CALLED) &&
WASMData.GSX.deboardingState !== GSX_SERVICE_FINISHED
);
};
const handleInput = (input: string, maxValue: number, setter: (value: number) => void) => {
if (!input) {
setter(0);
@@ -59,16 +48,20 @@ const ZFWEntryF: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingState
}
};
const handleInputZFW = (input: string) => {
if (!input) return;
if (!input) {
setZFWTarget(0);
return;
}
const converted = parseInt(input);
if (converted) {
if (converted < 0) setZFWTarget(Math.round(WASMData.targetPayload.empty + WASMData.targetPayload.crew));
if (converted <= 0) setZFWTarget(Math.round(WASMData.targetPayload.empty + WASMData.targetPayload.crew));
else if (converted > WASMData.limits.maxZFW) setZFWTarget(WASMData.limits.maxZFW);
else setZFWTarget(converted);
}
};
const handleBlur = (input: string) => {
const handleBlurZFW = (input: string) => {
const minZFW = Math.round(WASMData.targetPayload.empty + WASMData.targetPayload.crew);
if (!input) {
@@ -82,10 +75,13 @@ const ZFWEntryF: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingState
else if (converted > WASMData.limits.maxZFW) setZFWTarget(WASMData.limits.maxZFW);
else setZFWTarget(converted);
}
updateData(converted);
};
const updateData = () => {
CoherentCallZFWEntry(ZFWTarget, CGTarget, fuel);
};
useEffect(() => updateData(), [ZFWTarget, CGTarget, fuel]);
useEffect(
() =>
setFuel((prev) => {
@@ -94,120 +90,97 @@ const ZFWEntryF: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingState
}),
[WASMData.userData.isER]
);
useEffect(() => {
setFuelEnabled(inRangeOf(Math.round(WASMData.livePayload.fuel), fuel));
}, [WASMData.livePayload.fuel]);
const updateData = (_ZFWTarget?: number, _CGTarget?: number) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
JSON.stringify({
mode: 1,
ZFWTarget: _ZFWTarget ?? ZFWTarget,
CGTarget: _CGTarget ?? CGTarget,
})
);
};
return (
<>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-md bg-zinc-600 p-2 px-4">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(e) => handleInput(e.target.value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<button
className="middle none center rounded-lg bg-green-600 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-green-500/20 transition-all hover:shadow-lg hover:shadow-green-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
data-ripple-light="true"
onClick={() => {
SimVar.SetSimVarValue(
'L:MD11_EFB_PAYLOAD_FUEL',
'lbs',
WASMData.userData.isImperial ? fuel : fuel * 2.20462262185
);
SimVar.SetSimVarValue('L:MD11_EFB_READ_READY', 'bool', true);
setFuelEnabled(WASMData.livePayload.fuel === fuel);
}}
disabled={loadingState !== 'preview' || !fuelEnabled || GSXActive()}
>
Load Fuel
</button>
<div className="flex w-full items-center justify-between text-xs">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(value) => handleInput(value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || gsxFuelActive}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>Target ZFW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={ZFWTarget}
onChange={(e) => handleInputZFW(e.target.value)}
onBlur={(e) => handleBlur(e.target.value)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Target ZFW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={ZFWTarget}
onChange={(value) => handleInputZFW(value)}
onBlur={(value) => handleBlurZFW(value)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>
Target ZFWCG ({WASMData.limits.minCG} - {WASMData.limits.maxCG})
</label>
<CGSelect
minCG={WASMData.limits.minCG}
maxCG={WASMData.limits.maxCG}
value={CGTarget}
disabled={loadingState !== 'preview' || GSXActive()}
increase={() =>
setCGTarget((prev) => {
const _new = prev + 0.1;
updateData(undefined, _new);
return _new;
})
}
decrease={() =>
setCGTarget((prev) => {
const _new = prev - 0.1;
updateData(undefined, _new);
return _new;
})
}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
Target ZFWCG ({WASMData.limits.minCG} - {WASMData.limits.maxCG})
</label>
<CGSelect
minCG={WASMData.limits.minCG}
maxCG={WASMData.limits.maxCG}
value={CGTarget}
disabled={loadingState !== 'preview' || gsxActive}
increase={() =>
setCGTarget((prev) => {
const _new = prev + 0.1;
return _new;
})
}
decrease={() =>
setCGTarget((prev) => {
const _new = prev - 0.1;
return _new;
})
}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
</div>
</div>
</div>
@@ -215,7 +188,6 @@ const ZFWEntryF: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingState
loadingState={loadingState}
loadDisabled={!GWValid()}
GSXSync={WASMData.options.GSXSync}
GSXActive={GSXActive()}
load={() => {
setLoadingState('loaded');
@@ -1,30 +1,26 @@
import { FC, useEffect, useState } from 'react';
import {
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
GSX_SERVICE_CALLED,
GSX_SERVICE_FINISHED,
} from '../../constants';
import { WASMDataPax } from '../../types/WASMData';
import { LoadingState } from '../../types/general';
import { inRangeOf, loadAircraft, unloadAircraft } from '../../utils/utils';
import { CoherentCallZFWEntry, loadAircraft, unloadAircraft } from '../../utils/utils';
import CGSelect from '../CGSelect/CGSelect';
import ActionBar from '../actionbar/ActionBar';
import Input from '../input/Input';
interface ZFWEntryProps {
WASMData: WASMDataPax;
loadingState: LoadingState;
gsxActive: boolean;
gsxFuelActive: boolean;
setLoadingState: (newState: LoadingState) => void;
}
const ZFWEntryPax: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingState }) => {
const ZFWEntryPax: FC<ZFWEntryProps> = ({ WASMData, loadingState, gsxActive, gsxFuelActive, setLoadingState }) => {
const [CGTarget, setCGTarget] = useState(WASMData.targetPayload.CGTarget);
const [fuel, setFuel] = useState(Math.round(WASMData.livePayload.fuel));
const [fuel, setFuel] = useState(Math.round(WASMData.targetPayload.fuel));
const [ZFWTarget, setZFWTarget] = useState(Math.round(WASMData.targetPayload.total));
const [fuelEnabled, setFuelEnabled] = useState(true);
const ZFW = () => {
if (loadingState !== 'loaded' && !GSXActive()) return ZFWTarget;
if (loadingState !== 'loaded' && !gsxActive) return ZFWTarget;
return Math.round(WASMData.livePayload.total);
};
@@ -38,13 +34,6 @@ const ZFWEntryPax: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingStat
return GW() <= WASMData.limits.maxTOW;
};
const GSXActive = () => {
return (
(WASMData.GSX.boardingState >= GSX_SERVICE_CALLED || WASMData.GSX.deboardingState >= GSX_SERVICE_CALLED) &&
WASMData.GSX.deboardingState !== GSX_SERVICE_FINISHED
);
};
const handleInput = (input: string, maxValue: number, setter: (value: number) => void) => {
if (!input) {
setter(0);
@@ -59,7 +48,10 @@ const ZFWEntryPax: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingStat
}
};
const handleInputZFW = (input: string) => {
if (!input) return;
if (!input) {
setZFWTarget(0);
return;
}
const converted = parseInt(input);
if (converted) {
@@ -68,7 +60,8 @@ const ZFWEntryPax: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingStat
else setZFWTarget(converted);
}
};
const handleBlur = (input: string) => {
const handleBlurZFW = (input: string) => {
const minZFW = Math.round(WASMData.targetPayload.empty + WASMData.targetPayload.crew);
if (!input) {
@@ -82,10 +75,13 @@ const ZFWEntryPax: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingStat
else if (converted > WASMData.limits.maxZFW) setZFWTarget(WASMData.limits.maxZFW);
else setZFWTarget(converted);
}
updateData(converted);
};
const updateData = () => {
CoherentCallZFWEntry(ZFWTarget, CGTarget, fuel);
};
useEffect(() => updateData(), [ZFWTarget, CGTarget, fuel]);
useEffect(
() =>
setFuel((prev) => {
@@ -94,120 +90,97 @@ const ZFWEntryPax: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingStat
}),
[WASMData.userData.isER]
);
useEffect(() => {
setFuelEnabled(inRangeOf(Math.round(WASMData.livePayload.fuel), fuel));
}, [WASMData.livePayload.fuel]);
const updateData = (_ZFWTarget?: number, _CGTarget?: number) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
JSON.stringify({
mode: 1,
ZFWTarget: _ZFWTarget ?? ZFWTarget,
CGTarget: _CGTarget ?? CGTarget,
})
);
};
return (
<>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-md bg-zinc-600 p-2 px-4">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(e) => handleInput(e.target.value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<button
className="middle none center rounded-lg bg-green-600 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-green-500/20 transition-all hover:shadow-lg hover:shadow-green-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none"
data-ripple-light="true"
onClick={() => {
SimVar.SetSimVarValue(
'L:MD11_EFB_PAYLOAD_FUEL',
'lbs',
WASMData.userData.isImperial ? fuel : fuel * 2.20462262185
);
SimVar.SetSimVarValue('L:MD11_EFB_READ_READY', 'bool', true);
setFuelEnabled(WASMData.livePayload.fuel === fuel);
}}
disabled={loadingState !== 'preview' || !fuelEnabled || GSXActive()}
>
Load Fuel
</button>
<div className="flex w-full items-center justify-between text-xs">
<label>Fuel ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right`}
value={fuel}
onChange={(value) => handleInput(value, WASMData.limits.maxFuel, setFuel)}
disabled={loadingState !== 'preview' || gsxFuelActive}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>Target ZFW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={ZFWTarget}
onChange={(e) => handleInputZFW(e.target.value)}
onBlur={(e) => handleBlur(e.target.value)}
disabled={loadingState !== 'preview' || GSXActive()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>Target ZFW ({WASMData.userData.isImperial ? 'lbs' : 'kg'})</label>
<Input
type="text"
placeholder=""
className="w-1/2 rounded-lg border border-white bg-zinc-700 px-3 py-2 text-right focus:border-blue-600 focus:ring-blue-600"
value={ZFWTarget}
onChange={(value) => handleInputZFW(value)}
onBlur={(value) => handleBlurZFW(value)}
disabled={loadingState !== 'preview' || gsxActive}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>
Target ZFWCG ({WASMData.limits.minCG} - {WASMData.limits.maxCG})
</label>
<CGSelect
minCG={WASMData.limits.minCG}
maxCG={WASMData.limits.maxCG}
value={CGTarget}
disabled={loadingState !== 'preview' || GSXActive()}
increase={() =>
setCGTarget((prev) => {
const _new = prev + 0.1;
updateData(undefined, _new);
return _new;
})
}
decrease={() =>
setCGTarget((prev) => {
const _new = prev - 0.1;
updateData(undefined, _new);
return _new;
})
}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
Target ZFWCG ({WASMData.limits.minCG} - {WASMData.limits.maxCG})
</label>
<CGSelect
minCG={WASMData.limits.minCG}
maxCG={WASMData.limits.maxCG}
value={CGTarget}
disabled={loadingState !== 'preview' || gsxActive}
increase={() =>
setCGTarget((prev) => {
const _new = prev + 0.1;
return _new;
})
}
decrease={() =>
setCGTarget((prev) => {
const _new = prev - 0.1;
return _new;
})
}
/>
</div>
</div>
</div>
<div className="block flex w-full flex-col opacity-100 transition-opacity duration-150 ease-linear mb-4">
<div className="relative flex w-full items-center justify-between rounded-t-md bg-zinc-600 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} ZFW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${ZFWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={ZFW()}
/>
</div>
</div>
<div className="relative flex w-full items-center justify-between rounded-b-md bg-zinc-700 p-2 px-4">
<label>
{loadingState !== 'loaded' && !GSXActive() ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
<div className="flex w-full items-center justify-between text-xs">
<label>
{loadingState !== 'loaded' && !gsxActive ? 'Expected' : 'Actual'} GW (
{WASMData.userData.isImperial ? 'lbs' : 'kg'})
</label>
<input
type="text"
placeholder=""
className={`w-1/2 rounded-lg border ${GWValid() ? 'border-white' : 'border-red-500 text-red-500'} bg-zinc-700 px-3 py-2 text-right`}
disabled
value={GW()}
/>
</div>
</div>
</div>
@@ -215,7 +188,6 @@ const ZFWEntryPax: FC<ZFWEntryProps> = ({ WASMData, loadingState, setLoadingStat
loadingState={loadingState}
loadDisabled={!GWValid()}
GSXSync={WASMData.options.GSXSync}
GSXActive={GSXActive()}
load={() => {
setLoadingState('loaded');
-10
View File
@@ -1,13 +1,3 @@
export const COHERENT_COMM_BUS_WASM_CALL = 'COMM_BUS_WASM_CALLBACK';
export const TFDI_SIMBRIEF_USERNAME_CALL = 'requestSimBriefUsername';
export const TFDI_SIMBRIEF_USERNAME_EVENT = 'receiveSimBriefUsername';
export const COMM_BUS_LIVE_DATA_EVENT = 'khofmann_tfdi_md-11_load_manager_live_data';
export const COMM_BUS_UPDATE_TARGET_EVENT = 'khofmann_tfdi_md-11_load_manager_update_target';
export const CG_ADJUST = 0.05;
export const GSX_SERVICE_CALLED = 4;
export const GSX_SERVICE_ACTIVE = 5;
export const GSX_SERVICE_FINISHED = 6;
@@ -1,15 +0,0 @@
@font-face {
font-family: 'Roboto';
font-style: normal;
font-display: swap;
font-weight: 300;
src: url(assets/fonts/Roboto-Light.ttf) format('truetype');
}
@font-face {
font-family: 'Roboto';
font-style: italic;
font-display: swap;
font-weight: 300;
src: url(assets/fonts/Roboto-LightItalic.ttf) format('truetype');
}
@@ -1,15 +0,0 @@
@font-face {
font-family: 'Roboto';
font-style: normal;
font-display: swap;
font-weight: 400;
src: url(assets/fonts/Roboto-Regular.ttf) format('truetype');
}
@font-face {
font-family: 'Roboto';
font-style: italic;
font-display: swap;
font-weight: 400;
src: url(assets/fonts/Roboto-Italic.ttf) format('truetype');
}
@@ -1,15 +0,0 @@
@font-face {
font-family: 'Roboto';
font-style: normal;
font-display: swap;
font-weight: 500;
src: url(assets/fonts/Roboto-Medium.ttf) format('truetype');
}
@font-face {
font-family: 'Roboto';
font-style: italic;
font-display: swap;
font-weight: 500;
src: url(assets/fonts/Roboto-MediumItalic.ttf) format('truetype');
}
@@ -1,15 +0,0 @@
@font-face {
font-family: 'Roboto';
font-style: normal;
font-display: swap;
font-weight: 700;
src: url(assets/fonts/Roboto-Bold.ttf) format('truetype');
}
@font-face {
font-family: 'Roboto';
font-style: italic;
font-display: swap;
font-weight: 700;
src: url(assets/fonts/Roboto-BoldItalic.ttf) format('truetype');
}
-40
View File
@@ -1,40 +0,0 @@
<!doctype html>
<html>
<!-- prettier-ignore -->
<head>
<title></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/SCSS/common.css" />
<link rel="stylesheet" href="assets/efb.css" />
<link rel="stylesheet" href="index.css" />
<script type="text/javascript" src="/JS/coherent.js"></script>
<script type="text/javascript" src="/JS/common.js"></script>
<script type="text/javascript" src="/Pages/VCockpit/Instruments/Shared/BaseInstrument.js"></script>
<script type="text/javascript" src="/JS/dataStorage.js"></script>
<script type="text/javascript" src="/JS/buttons.js"></script>
<script type="text/javascript" src="/JS/Services/ToolBarPanels.js"></script>
<script type="text/javascript" src="/JS/simvar.js"></script>
<link rel="import" href="/templates/NewPushButton/NewPushButton.html" />
<link rel="import" href="/templates/ingameUi/ingameUi.html" />
<link rel="import" href="/templates/ingameUiHeader/ingameUiHeader.html" />
<link rel="import" href="/templates/virtualScroll/virtualScroll.html" />
</head>
<body class="border-box">
<tfdidesign-md11-load-manager-panel>
<ingame-ui
id="tfdidesign-md11-load-manager"
panel-id="TFDIDESIGN_MD11_LOAD_MANAGER_PANEL"
title="TFDi Design MD-11 Load Manager"
class="ingameUiFrame panelInvisible"
content-fit="true"
>
<div id="react" style="display: flex"></div>
</ingame-ui>
</tfdidesign-md11-load-manager-panel>
<script src="index.js" type="text/javascript"></script>
</body>
</html>
-33
View File
@@ -1,33 +0,0 @@
import { createElement } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App';
class TFDiDesignMD11LoadManagerPanel extends TemplateElement {
private commBus: ViewListener.ViewListener | undefined;
constructor() {
super();
}
connectedCallback() {
super.connectedCallback();
this.commBus = RegisterViewListener('JS_LISTENER_COMM_BUS');
const container = document.getElementById('react');
if (container) {
console.log('Starting React');
const root = createRoot(container);
root.render(createElement(App, { commBus: this.commBus }));
}
}
disconnectedCallback() {
super.disconnectedCallback();
this.commBus?.unregister();
}
}
window.customElements.define('tfdidesign-md11-load-manager-panel', TFDiDesignMD11LoadManagerPanel);
checkAutoload();
+33 -16
View File
@@ -1,19 +1,25 @@
export interface WASMDataPax {
livePayload: LivePayloadPax;
targetPayload: TargetPayloadPax;
interface WASMData {
GSX: GSX;
userData: UserData;
limits: LimitsPax;
options: Options;
sbPlanned: {
ZFW: number;
GW: number;
fuel: number;
};
loaded: boolean;
}
export interface WASMDataF {
export interface WASMDataPax extends WASMData {
livePayload: LivePayloadPax;
targetPayload: TargetPayloadPax;
limits: LimitsPax;
}
export interface WASMDataF extends WASMData {
livePayload: LivePayloadF;
targetPayload: TargetPayloadF;
GSX: GSX;
userData: UserData;
limits: LimitsF;
options: Options;
}
interface TargetPayload {
@@ -21,6 +27,7 @@ interface TargetPayload {
ZFWCG: number;
TOCG: number;
total: number;
fuel: number;
}
interface TargetPayloadPax extends TargetPayload {
@@ -34,9 +41,7 @@ interface TargetPayloadPax extends TargetPayload {
rearCargo: number;
}
interface LivePayloadPax extends TargetPayloadPax {
fuel: number;
}
type LivePayloadPax = TargetPayloadPax;
interface TargetPayloadF extends TargetPayload {
empty: number;
@@ -49,13 +54,12 @@ interface TargetPayloadF extends TargetPayload {
lowerRear: number;
}
interface LivePayloadF extends TargetPayloadF {
fuel: number;
}
type LivePayloadF = TargetPayloadF;
interface GSX {
boardingState: number;
deboardingState: number;
couatlStarted: boolean;
loadingState: GSXLoadingState;
fuelingState: GSXFuelingState;
}
interface Limits {
@@ -96,3 +100,16 @@ interface Options {
paxWeight: number;
bagWeight: number;
}
export enum GSXLoadingState {
IDLE = 0,
BOARDING = 1,
BOARDED = 2,
DEBOARDING = 3,
DEBOARDED = 4,
}
export enum GSXFuelingState {
IDLE = 0,
FUELING = 1,
}
@@ -1 +1,29 @@
export type LoadingState = 'preview' | 'loaded';
export interface SimBrief {
plannedZFW: number;
plannedGW: number;
pax: number;
cargo: number;
fuel: number;
}
export enum CallMode {
SB_SET = 0,
ZFW_SET = 1,
STATION_SET = 2,
LOAD_SET = 3,
UNLOAD_SET = 4,
OPTIONS_SET = 5,
GSX_RESET = 6,
}
export enum CommBusCall {
TFDI_SIMBRIEF_USERNAME = 'requestSimBriefUsername',
}
export enum CommBusEvent {
TFDI_SIMBRIEF_USERNAME = 'receiveSimBriefUsername',
LIVE_DATA = 'khofmann_tfdi_md-11_load_manager_live_data',
UPDATE_TARGET = 'khofmann_tfdi_md-11_load_manager_update_target',
}
@@ -1,56 +1,41 @@
const getSimBriefFlightPlan = async (simBriefUsername: string) => {
const flightPlanURL = `https://www.simbrief.com/api/xml.fetcher.php?username=${simBriefUsername}&json=1`;
let response: Response;
let success = false;
try {
response = await fetch(flightPlanURL);
success = true;
//eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (e: any) {
response = e.response;
}
return {
success,
data: await response.json(),
import { SimBrief } from '../types/general';
type Plan = {
params: {
units: 'kgs' | 'lbs';
};
weights: {
est_zfw: number;
est_ramp: number;
pax_count_actual: number;
freight_added: number;
};
fuel: {
plan_ramp: number;
};
};
export const ImportFlightPlan = async (
username: string,
export const ImportFlightPlanKH = (
plan: Plan,
maxZFW: number,
maxTOW: number,
maxFuel: number,
isImperial: boolean
) => {
const flightPlan = await getSimBriefFlightPlan(username);
if (!flightPlan.success) {
return {
type: 'error',
message: flightPlan.data.status,
};
}
const data = flightPlan.data;
if (!['MD11', 'MD1F'].includes(data.aircraft.icao_code)) {
return {
type: 'error',
message: `Your SimBrief plan is not for a MD-11`,
};
}
if (!plan) return { type: 'error', message: 'Empty plan' };
let convFactor = 1;
if (data.params.units === 'kgs' && isImperial) convFactor = 2.20462262185;
if (data.params.units === 'lbs' && !isImperial) convFactor = 1 / 2.20462262185;
if (plan.params.units === 'kgs' && isImperial) convFactor = 2.20462262185;
if (plan.params.units === 'lbs' && !isImperial) convFactor = 1 / 2.20462262185;
return {
type: 'data',
message: {
plannedZFW: Math.min(maxZFW, Math.round(data.weights.est_zfw * convFactor)),
plannedGW: Math.min(maxTOW, Math.round(data.weights.est_ramp * convFactor)),
pax: data.weights.pax_count_actual,
cargo: Math.round(data.weights.freight_added * convFactor),
fuel: Math.min(maxFuel, Math.round(data.fuel.plan_ramp * convFactor)),
},
plannedZFW: Math.min(maxZFW, Math.round(plan.weights.est_zfw * convFactor)),
plannedGW: Math.min(maxTOW, Math.round(plan.weights.est_ramp * convFactor)),
pax: plan.weights.pax_count_actual,
cargo: Math.round(plan.weights.freight_added * convFactor),
fuel: Math.min(maxFuel, Math.round(plan.fuel.plan_ramp * convFactor)),
} as SimBrief,
};
};
+123 -5
View File
@@ -1,11 +1,12 @@
import { COHERENT_COMM_BUS_WASM_CALL, COMM_BUS_UPDATE_TARGET_EVENT } from '../constants';
import { COHERENT_COMM_BUS_WASM_CALL } from '../constants';
import { CallMode, CommBusEvent, SimBrief } from '../types/general';
export const loadAircraft = () => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
CommBusEvent.UPDATE_TARGET,
JSON.stringify({
mode: 3,
mode: CallMode.LOAD_SET,
})
);
};
@@ -13,9 +14,9 @@ export const loadAircraft = () => {
export const unloadAircraft = () => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
COMM_BUS_UPDATE_TARGET_EVENT,
CommBusEvent.UPDATE_TARGET,
JSON.stringify({
mode: 4,
mode: CallMode.UNLOAD_SET,
})
);
};
@@ -23,3 +24,120 @@ export const unloadAircraft = () => {
export const inRangeOf = (value: number, target: number, tolerance: number = 10) => {
return Math.abs(value - target) < tolerance;
};
export const CoherentCallZFWEntry = (ZFWTarget: number, CGTarget: number, fuelTarget: number) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
CommBusEvent.UPDATE_TARGET,
JSON.stringify({
mode: CallMode.ZFW_SET,
ZFWTarget: ZFWTarget,
CGTarget: CGTarget,
fuelTarget: fuelTarget,
})
);
};
export const CoherentCallStationEntryPax = (
business1: number,
business2: number,
economy1: number,
economy2: number,
forwardCargo: number,
rearCargo: number,
fuelTarget: number
) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
CommBusEvent.UPDATE_TARGET,
JSON.stringify({
mode: CallMode.STATION_SET,
business1,
business2,
economy1,
economy2,
forwardCargo,
rearCargo,
fuelTarget,
})
);
};
export const CoherentCallStationEntryF = (
upper1: number,
upper2: number,
upper3: number,
upper4: number,
lowerForward: number,
lowerRear: number,
fuelTarget: number
) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
CommBusEvent.UPDATE_TARGET,
JSON.stringify({
mode: CallMode.STATION_SET,
upper1,
upper2,
upper3,
upper4,
lowerForward,
lowerRear,
fuelTarget,
})
);
};
export const CoherentCallSBEntryPax = (CGTarget: number, fuel: number, SBPlan?: SimBrief) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
CommBusEvent.UPDATE_TARGET,
JSON.stringify({
mode: CallMode.SB_SET,
cargo: SBPlan?.cargo,
numPax: SBPlan ? parseInt(SBPlan.pax as unknown as string) : undefined,
CGTarget: CGTarget,
plannedZFW: SBPlan?.plannedZFW,
plannedGW: SBPlan?.plannedGW,
fuel: fuel,
})
);
};
export const CoherentCallSBEntryF = (CGTarget: number, fuel: number, SBPlan?: SimBrief) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
CommBusEvent.UPDATE_TARGET,
JSON.stringify({
mode: CallMode.SB_SET,
cargo: SBPlan?.cargo,
CGTarget: CGTarget,
plannedZFW: SBPlan?.plannedZFW,
plannedGW: SBPlan?.plannedGW,
fuel: SBPlan?.fuel,
})
);
};
export const CoherentCallOptionsSet = (GSXSync?: boolean, paxWeight?: number, bagWeight?: number) => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
CommBusEvent.UPDATE_TARGET,
JSON.stringify({
mode: CallMode.OPTIONS_SET,
GSXSync,
paxWeight,
bagWeight,
})
);
};
export const CoherentCallGSXReset = () => {
Coherent.call(
COHERENT_COMM_BUS_WASM_CALL,
CommBusEvent.UPDATE_TARGET,
JSON.stringify({
mode: CallMode.GSX_RESET,
})
);
};
+3 -3
View File
@@ -12,7 +12,7 @@
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
"target": "es6",
"target": "es2017",
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"lib": ["es2017", "dom"],
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
@@ -29,7 +29,7 @@
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
/* Modules */
"module": "es6",
"module": "es2015",
/* Specify what module code is generated. */
// "rootDir": "./", /* Specify the root folder within your source files. */
"moduleResolution": "node",
@@ -65,7 +65,7 @@
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
"outDir": "../html_ui/InGamePanels/tfdidesign-md11-load-manager-panel",
// "outDir": "../html_ui/InGamePanels/tfdidesign-md11-load-manager-panel",
/* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
// "noEmit": true, /* Disable emitting files from a compilation. */
File diff suppressed because it is too large Load Diff
@@ -1,17 +0,0 @@
<SimBase.Document Type="InGamePanels" version="1,0">
<Filename>tfdidesign-md11-load-manager.spb</Filename>
<InGamePanels.InGamePanelDefinition
id="TFDIDESIGN_MD11_LOAD_MANAGER_PANEL"
Name="tfdidesign-md11-load-manager"
url="html_UI/InGamePanels/tfdidesign-md11-load-manager-panel/index.html"
resizeDirections="both"
minWidth="100"
minHeight="70"
defaultWidth="100"
defaultHeight="70"
defaultTop="10"
defaultLeft="10"
icon="ICON_TFDIDESIGN_MD11_LOAD_MANAGER"
buttonVisible="true">
</InGamePanels.InGamePanelDefinition>
</SimBase.Document>
-306
View File
@@ -1,306 +0,0 @@
#include "freighter.h"
// ZFW Entry
void distribute(fPayloadData_t* const targetPayload, const FuelData_t* const fuel, const double ZFWTarget, const bool isImperial, const bool isER) {
// Find payload, num pax and extra cargo
double payload = ZFWTarget - targetPayload->empty - targetPayload->pilot - targetPayload->firstOfficer - targetPayload->engineer -
targetPayload->leftAux - targetPayload->rightAux;
unsigned int cargo = round(payload);
distribute(targetPayload, fuel, cargo, isImperial, isER);
}
// SimBrief Entry
void distribute(fPayloadData_t* const targetPayload, const FuelData_t* const fuel, unsigned int cargo, const bool isImperial, const bool isER) {
// Clear
targetPayload->stations.upper1 = targetPayload->stations.upper2 = targetPayload->stations.upper3 = targetPayload->stations.upper4 =
targetPayload->stations.total = 0;
targetPayload->lowerForward = targetPayload->lowerRear = 0;
unsigned short _cargo = 0;
unsigned int count = MAX_UPPER_CARGO(isImperial) * 4 + MAX_FRONT_CARGO(isImperial) + MAX_REAR_CARGO(isImperial, isER);
// Initial distributiob
while (cargo > 0 && count > 0) {
if (cargo >= 6) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper3++;
_cargo++;
}
if (targetPayload->stations.upper4 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper4++;
_cargo++;
}
if (targetPayload->lowerForward < MAX_FRONT_CARGO(isImperial)) {
targetPayload->lowerForward++;
_cargo++;
}
if (targetPayload->lowerRear < MAX_REAR_CARGO(isImperial, isER)) {
targetPayload->lowerRear++;
_cargo++;
}
} else if (cargo == 5) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper3++;
_cargo++;
}
if (targetPayload->stations.upper4 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper4++;
_cargo++;
}
if (targetPayload->lowerForward < MAX_FRONT_CARGO(isImperial)) {
targetPayload->lowerForward++;
_cargo++;
}
}
else if (cargo == 4) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper3++;
_cargo++;
}
if (targetPayload->stations.upper4 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper4++;
_cargo++;
}
}
else if (cargo == 3) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper3++;
_cargo++;
}
}
else if (cargo == 2) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
}
else if (cargo == 1) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
}
cargo -= _cargo;
targetPayload->stations.total += _cargo;
_cargo = 0;
count--;
}
// Refinement
count = MAX_UPPER_CARGO(isImperial) * 4 + MAX_FRONT_CARGO(isImperial) + MAX_REAR_CARGO(isImperial, isER);
while (count > 0) {
generatePayload(targetPayload, isImperial);
calculateCGs(targetPayload, fuel, &targetPayload->ZFWCG, &targetPayload->TOCG, isImperial);
// in front of target
if (targetPayload->ZFWCG < targetPayload->CGTarget - CG_TOLERANCE) {
if (targetPayload->stations.upper1 > 0) {
targetPayload->stations.upper1--;
}
else if (targetPayload->stations.upper2 > 0) {
targetPayload->stations.upper2--;
}
else if (targetPayload->stations.upper3 > 0) {
targetPayload->stations.upper3--;
}
else {
break;
}
if (targetPayload->stations.upper4 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper4++;
}
else if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper3++;
}
else if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper2++;
}
else {
targetPayload->stations.upper1++;
}
}
// behind target
else if (targetPayload->ZFWCG > targetPayload->CGTarget + CG_TOLERANCE) {
if (targetPayload->stations.upper4 > 0) {
targetPayload->stations.upper4--;
}
else if (targetPayload->stations.upper3 > 0) {
targetPayload->stations.upper3--;
}
else if (targetPayload->stations.upper2 > 0) {
targetPayload->stations.upper2--;
}
else {
break;
}
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper1++;
}
else if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper2++;
}
else if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(isImperial)) {
targetPayload->stations.upper3++;
}
else {
targetPayload->stations.upper4++;
}
}
else {
break;
}
count--;
}
// Refinement cargo
count = MAX_FRONT_CARGO(isImperial) + MAX_REAR_CARGO(isImperial, isER);
while (count > 0) {
generatePayload(targetPayload, isImperial);
calculateCGs(targetPayload, fuel, &targetPayload->ZFWCG, &targetPayload->TOCG, isImperial);
// in front of target
if (targetPayload->ZFWCG < targetPayload->CGTarget - CG_TOLERANCE) {
if (targetPayload->lowerForward > 0 && targetPayload->lowerRear < MAX_REAR_CARGO(isImperial, isER)) {
targetPayload->lowerForward--;
targetPayload->lowerRear++;
}
else {
break;
}
}
// behind target
else if (targetPayload->ZFWCG > targetPayload->CGTarget + CG_TOLERANCE) {
if (targetPayload->lowerRear > 0 && targetPayload->lowerForward < MAX_FRONT_CARGO(isImperial)) {
targetPayload->lowerRear--;
targetPayload->lowerForward++;
}
else {
break;
}
}
else {
break;
}
count--;
}
}
// Updates pax stations with their respective weights
// Used internally and used for Station Entry (pax only, cargo is set directly)
void generatePayload(fPayloadData_t* const targetPayload, const bool isImperial) {
targetPayload->upper1Left = targetPayload->upper1Right = (targetPayload->stations.upper1 / 2.0);
targetPayload->upper2Left = targetPayload->upper2Right = (targetPayload->stations.upper2 / 2.0);
targetPayload->upper3Left = targetPayload->upper3Right = (targetPayload->stations.upper3 / 2.0);
targetPayload->upper4Left = targetPayload->upper4Right = (targetPayload->stations.upper4 / 2.0);
targetPayload->total = targetPayload->empty + targetPayload->pilot + targetPayload->firstOfficer + targetPayload->engineer + targetPayload->upper1Left +
targetPayload->upper1Right + targetPayload->upper2Left + targetPayload->upper2Right + targetPayload->upper3Left +
targetPayload->upper3Right + targetPayload->upper4Left + targetPayload->upper4Right + targetPayload->lowerForward +
targetPayload->lowerRear + targetPayload->leftAux + targetPayload->rightAux;
}
// Normalise to Pounds
// MANDATORY BEFORE SETTING WEIGHTS
// USE ON COPY OF GLOBAL STATE ONLY
void normalisePayload(fPayloadData_t* const targetPayload, const bool isImperial) {
targetPayload->empty = TO_POUNDS(isImperial, targetPayload->empty);
targetPayload->pilot = TO_POUNDS(isImperial, targetPayload->pilot);
targetPayload->firstOfficer = TO_POUNDS(isImperial, targetPayload->firstOfficer);
targetPayload->engineer = TO_POUNDS(isImperial, targetPayload->engineer);
targetPayload->upper1Left = TO_POUNDS(isImperial, targetPayload->upper1Left);
targetPayload->upper1Right = TO_POUNDS(isImperial, targetPayload->upper1Right);
targetPayload->upper2Left = TO_POUNDS(isImperial, targetPayload->upper2Left);
targetPayload->upper2Right = TO_POUNDS(isImperial, targetPayload->upper2Right);
targetPayload->upper3Left = TO_POUNDS(isImperial, targetPayload->upper3Left);
targetPayload->upper3Right = TO_POUNDS(isImperial, targetPayload->upper3Right);
targetPayload->upper4Left = TO_POUNDS(isImperial, targetPayload->upper4Left);
targetPayload->upper4Right = TO_POUNDS(isImperial, targetPayload->upper4Right);
targetPayload->lowerForward = TO_POUNDS(isImperial, targetPayload->lowerForward);
targetPayload->lowerRear = TO_POUNDS(isImperial, targetPayload->lowerRear);
targetPayload->leftAux = TO_POUNDS(isImperial, targetPayload->leftAux);
targetPayload->rightAux = TO_POUNDS(isImperial, targetPayload->rightAux);
}
void calculateCGs(const fPayloadData_t* const targetPayload, const FuelData_t* const fuel, double* const ZFWCG, double* const TOCG, const bool isImperial) {
fPayloadData_t localPayload = {};
memcpy(&localPayload, targetPayload, sizeof(localPayload));
normalisePayload(&localPayload, isImperial);
double totalMoment = localPayload.empty * ARM_EMPTY + localPayload.pilot * ARM_PILOT + localPayload.firstOfficer * ARM_FIRST_OFFICER +
localPayload.engineer * ARM_ENGINEER + localPayload.upper1Left * ARM_F_UPPER1_LEFT + localPayload.upper1Right * ARM_F_UPPER1_RIGHT +
localPayload.upper2Left * ARM_F_UPPER2_LEFT + localPayload.upper2Right * ARM_F_UPPER2_RIGHT + localPayload.upper3Left * ARM_F_UPPER3_LEFT +
localPayload.upper3Right * ARM_F_UPPER3_RIGHT + localPayload.upper4Left * ARM_F_UPPER4_LEFT + localPayload.upper4Right * ARM_F_UPPER4_RIGHT +
localPayload.lowerForward * ARM_FORWARD_CARGO + localPayload.lowerRear * ARM_REAR_CARGO + localPayload.leftAux * ARM_LEFT_AUX +
localPayload.rightAux * ARM_RIGHT_AUX;
double totalWeight = localPayload.empty + localPayload.pilot + localPayload.firstOfficer + localPayload.engineer + localPayload.upper1Left +
localPayload.upper1Right + localPayload.upper2Left + localPayload.upper2Right + localPayload.upper3Left + localPayload.upper3Right +
localPayload.upper4Left + localPayload.upper4Right + localPayload.lowerForward + localPayload.lowerRear + localPayload.leftAux +
localPayload.rightAux;
*ZFWCG = TO_PERCENT_MAC(totalMoment / totalWeight);
totalMoment += fuel->main1 * ARM_MAIN1 + fuel->main3 * ARM_MAIN3 + fuel->main2 * ARM_MAIN2 + fuel->upperAux * ARM_UPPER_AUX +
fuel->lowerAux * ARM_LOWER_AUX + fuel->main1Tip * ARM_MAIN1_TIP + fuel->main3Tip * ARM_MAIN3_TIP +
fuel->tail * ARM_TAIL + fuel->forwardAux1 * ARM_FORWARD_AUX1 + fuel->forwardAux2 * ARM_FORWARD_AUX2;
totalWeight += fuel->total;
*TOCG = TO_PERCENT_MAC(totalMoment / totalWeight);
}
void load(const fPayloadData_t* const targetPayload, const HANDLE simConnect, const bool isImperial) {
fPayloadData_t localPayload = {};
memcpy(&localPayload, targetPayload, sizeof(localPayload));
normalisePayload(&localPayload, isImperial);
SimConnect_SetDataOnSimObject(simConnect, DATA_DEFINITION_PAYLOAD_F, SIMCONNECT_OBJECT_ID_USER, 0, 0, sizeof(fPayloadDataSet_t), &localPayload);
}
void unloadF(const HANDLE simConnect, const bool isER) {
fPayloadData_t localPayload = {};
localPayload.leftAux = localPayload.rightAux = isER ? AUX_WEIGHT(true) : 0;
localPayload.pilot = localPayload.firstOfficer = localPayload.engineer = PILOT_WEIGHT(true);
SimConnect_SetDataOnSimObject(simConnect, DATA_DEFINITION_PAYLOAD_F, SIMCONNECT_OBJECT_ID_USER, 0, 0, sizeof(fPayloadDataSet_t), &localPayload);
}
-36
View File
@@ -1,36 +0,0 @@
#pragma once
#ifndef __INTELLISENSE__
# define MODULE_EXPORT __attribute__( ( visibility( "default" ) ) )
# define MODULE_WASM_MODNAME(mod) __attribute__((import_module(mod)))
#else
# define MODULE_EXPORT
# define MODULE_WASM_MODNAME(mod)
# define __attribute__(x)
# define __restrict__
#endif
#include <MSFS/MSFS_WindowsTypes.h>
#include <math.h>
#include <algorithm>
#include <SimConnect.h>
#include "types.h"
// ZFW Entry
void distribute(fPayloadData_t* const targetPayload, const FuelData_t* const fuel, const double ZFWTarget, const bool isImperial, const bool isER);
// SimBrief Entry
void distribute(fPayloadData_t* const targetPayload, const FuelData_t* const fuel, unsigned int cargo, const bool isImperial, const bool isER);
// Updates pax stations with their respective weights
// Used internally and used for Station Entry (pax only, cargo is ste directly)
// STATION WEIGHTS ARE NOT NORMALISED TO POUNDS
void generatePayload(fPayloadData_t* const targetPayload, const bool isImperial);
// Normalise to Pounds
// For Station Entry: CALL AFTER `generatePayload`
void normalisePayload(fPayloadData_t* const targetPayload, const bool isImperial);
void calculateCGs(const fPayloadData_t* const targetPayload, const FuelData_t* const fuel, double* const ZFWCG, double* const TOCG, const bool isImperial);
void load(const fPayloadData_t* const targetPayload, const HANDLE simConnect, const bool isImperial);
void unloadF(const HANDLE simConnect, const bool isER);
@@ -0,0 +1,119 @@
#pragma once
#ifndef __INTELLISENSE__
#define MODULE_EXPORT __attribute__((visibility("default")))
#define MODULE_WASM_MODNAME(mod) __attribute__((import_module(mod)))
#else
#define MODULE_EXPORT
#define MODULE_WASM_MODNAME(mod)
#define __attribute__(x)
#define __restrict__
#endif
/********************************* Headers *********************************/
// MSFS headers
#include <MSFS/MSFS_WindowsTypes.h>
#include <SimConnect.h>
// C headers
#include <math.h>
// C++ headers
#include <algorithm>
// Own headers
#include "fuel.h"
#include "log.h"
#include "shared.h"
/******************************** Constants ********************************/
// PMC pallet due to 104in door
#define MAX_UPPER_CARGO(IS_IMPERIAL) ((IS_IMPERIAL) ? (6.5 * 15000.0) : (6.5 * 6804.0))
// Max ZFW
#define MAX_F_ZFW(IS_IMPERIAL) ((IS_IMPERIAL) ? (451300) : (204706))
// Arms
#define ARM_F_UPPER1_LEFT 660
#define ARM_F_UPPER1_RIGHT 660
#define ARM_F_UPPER2_LEFT 240
#define ARM_F_UPPER2_RIGHT 240
#define ARM_F_UPPER3_LEFT -240
#define ARM_F_UPPER3_RIGHT -240
#define ARM_F_UPPER4_LEFT -600
#define ARM_F_UPPER4_RIGHT -600
/***************************** Data structures *****************************/
typedef struct {
// SimConnect mapped
double pilot;
double firstOfficer;
double engineer;
double upper1Left;
double upper1Right;
double upper2Left;
double upper2Right;
double upper3Left;
double upper3Right;
double upper4Left;
double upper4Right;
double lowerForward;
double lowerRear;
double leftAux;
double rightAux;
double _ZFWCG; // DO NOT USE
// Additional properties
double empty;
double total;
double CGTarget;
double ZFWCG;
double TOCG;
struct stations {
unsigned int upper1;
unsigned int upper2;
unsigned int upper3;
unsigned int upper4;
unsigned int total;
} stations;
struct sbPlanned {
double ZFW;
double GW;
double fuel;
unsigned int cargo;
} sbPlanned;
} fPayloadData_t;
typedef struct {
// SimConnect mapped
double pilot;
double firstOfficer;
double engineer;
double upper1Left;
double upper1Right;
double upper2Left;
double upper2Right;
double upper3Left;
double upper3Right;
double upper4Left;
double upper4Right;
double lowerForward;
double lowerRear;
double leftAux;
double rightAux;
double ZFWCG;
} fPayloadDataSet_t;
/******************************** Functions ********************************/
// ZFW Entry
void distribute(fPayloadData_t *const targetPayload, const FuelData_t *const fuel, const double ZFWTarget,
const UserData_t *const userData);
// SimBrief Entry
void distribute(fPayloadData_t *const targetPayload, const FuelData_t *const fuel, unsigned int cargo,
const UserData_t *const userData);
// Updates pax stations with their respective weights
// Used internally and used for Station Entry (pax only, cargo is ste directly)
// STATION WEIGHTS ARE NOT NORMALISED TO POUNDS
void generatePayload(fPayloadData_t *const targetPayload);
// Normalise to Pounds
// For Station Entry: CALL AFTER `generatePayload`
void normalisePayload(fPayloadData_t *const targetPayload, const bool isImperial);
void calculateCGs(fPayloadData_t *const targetPayload, const FuelData_t *const fuel, const bool isImperial);
void load(const fPayloadData_t *const targetPayload, const FuelData_t *const fuel, const HANDLE simConnect,
const bool isImperial);
void unloadF(const HANDLE simConnect, const FuelData_t *const fuel, const double empty, const bool isER);
+94
View File
@@ -0,0 +1,94 @@
#pragma once
#ifndef __INTELLISENSE__
#define MODULE_EXPORT __attribute__((visibility("default")))
#define MODULE_WASM_MODNAME(mod) __attribute__((import_module(mod)))
#else
#define MODULE_EXPORT
#define MODULE_WASM_MODNAME(mod)
#define __attribute__(x)
#define __restrict__
#endif
/********************************* Headers *********************************/
// MSFS headers
#include <MSFS/MSFS_WindowsTypes.h>
#include <SimConnect.h>
// C headers
#include <math.h>
// C++ headers
#include <algorithm>
// Own headers
#include "shared.h"
/******************************** Constants ********************************/
// Pounds to gallons conversion
#define LBS_PER_GAL 6.699999809
// Fueling rate
#define FUELING_RATE ((LBS_PER_GAL * 1000) / 60)
// Max tank capacity gallons
#define MAX_TANK_1_3_MAIN_GAL 5167.907
#define MAX_TANK_1_3_TIP_GAL 874.5
#define MAX_TANK_1_3_GAL (5167.907 + 874.5)
#define MAX_TANK_2_GAL 9556.95
#define MAX_UPR_AUX_GAL 12998.58
#define MAX_LWR_AUX_GAL 1641.82
#define MAX_TAIL_GAL 1957.779
#define MAX_FWD_AUX_GAL 1970.8
// Max tank capacity pounds
#define MAX_TANK_1_3_MAIN_LBS (LBS_PER_GAL * MAX_TANK_1_3_MAIN_GAL)
#define MAX_TANK_1_3_TIP_LBS (LBS_PER_GAL * MAX_TANK_1_3_TIP_GAL)
#define MAX_TANK_1_3_LBS (LBS_PER_GAL * MAX_TANK_1_3_GAL)
#define MAX_TANK_2_LBS (LBS_PER_GAL * MAX_TANK_2_GAL)
#define MAX_UPR_AUX_LBS (LBS_PER_GAL * MAX_UPR_AUX_GAL)
#define MAX_LWR_AUX_LBS (LBS_PER_GAL * MAX_LWR_AUX_GAL)
#define MAX_TAIL_LBS (LBS_PER_GAL * MAX_TAIL_GAL)
#define MAX_FWD_AUX_LBS (LBS_PER_GAL * MAX_FWD_AUX_GAL)
// Max Fuel
#define MAX_FUEL(IS_IMPERIAL) ((IS_IMPERIAL) ? (256207) : (116213))
#define MAX_FUEL_ER(IS_IMPERIAL) ((IS_IMPERIAL) ? (282619) : (128193))
// Arms Fuel
#define ARM_MAIN1 -240.0
#define ARM_MAIN3 -240.0
#define ARM_MAIN2 120.0
#define ARM_UPPER_AUX 0.0
#define ARM_LOWER_AUX 0.0
#define ARM_MAIN1_TIP -468.0
#define ARM_MAIN3_TIP -468.0
#define ARM_TAIL -840.0
#define ARM_FORWARD_AUX1 60.0
#define ARM_FORWARD_AUX2 60.0
/***************************** Data structures *****************************/
typedef struct {
// SimConnect mapped
double main1;
double main3;
double main2;
double upperAux;
double lowerAux;
double main1Tip;
double main3Tip;
double tail;
double forwardAux1;
double forwardAux2;
// Additional properties
double total;
} FuelData_t;
typedef struct {
double main1;
double main3;
double main2;
double upperAux;
double lowerAux;
double tail;
double forwardAux1;
double forwardAux2;
} FuelDataSet_t;
/******************************** Functions ********************************/
void distribute(FuelData_t *const targetFuel, const double fuelTarget, const bool isImperial, const bool isER);
void distribute(FuelData_t *const targetFuel, const double fuelTarget, const UserData_t *const userData);
void fuel(const FuelData_t *const targetFuel, const HANDLE simConnect);
@@ -0,0 +1,43 @@
#pragma once
#ifndef __INTELLISENSE__
#define MODULE_EXPORT __attribute__((visibility("default")))
#define MODULE_WASM_MODNAME(mod) __attribute__((import_module(mod)))
#else
#define MODULE_EXPORT
#define MODULE_WASM_MODNAME(mod)
#define __attribute__(x)
#define __restrict__
#endif
/********************************* Headers *********************************/
// MSFS headers
#include "rapidjson/filewritestream.h"
#include <MSFS/MSFS.h>
#include <MSFS/MSFS_CommBus.h>
#include <MSFS/MSFS_Core.h>
#include <MSFS/MSFS_GaugeContext.h>
#include <MSFS/MSFS_WindowsTypes.h>
#include <SimConnect.h>
#include <rapidjson/document.h>
#include <rapidjson/filereadstream.h>
#include <rapidjson/writer.h>
// Own headers
#include "freighter.h"
#include "fuel.h"
#include "log.h"
#include "pax.h"
#include "shared.h"
/******************************** Constants ********************************/
// Module identification
// COMM BUS
#define COMM_BUS_LIVE_DATA_EVENT "khofmann_tfdi_md-11_load_manager_live_data"
#define COMM_BUS_UPDATE_TARGET_EVENT "khofmann_tfdi_md-11_load_manager_update_target"
/******************************** Functions ********************************/
void commBusUpdateTargetCallback(const char *args, unsigned int size, void *ctx);
int receiveData(const char *buf);
void sendData();
void CALLBACK MyDispatchProc(SIMCONNECT_RECV *pData, DWORD cbData, void *pContext);
+25
View File
@@ -0,0 +1,25 @@
#pragma once
#ifndef __INTELLISENSE__
#define MODULE_EXPORT __attribute__((visibility("default")))
#define MODULE_WASM_MODNAME(mod) __attribute__((import_module(mod)))
#else
#define MODULE_EXPORT
#define MODULE_WASM_MODNAME(mod)
#define __attribute__(x)
#define __restrict__
#endif
// C headers
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// C++ headers
#include <ctime>
/******************************** Constants ********************************/
// Module identification
#define MODULE_NAME "[KHOFMANN TFDi MD-11 Load Manager] "
#define VERSION_STRING "2.40"
void toLog(FILE *file, const char *format, double *optional = nullptr);
+156
View File
@@ -0,0 +1,156 @@
#pragma once
#ifndef __INTELLISENSE__
#define MODULE_EXPORT __attribute__((visibility("default")))
#define MODULE_WASM_MODNAME(mod) __attribute__((import_module(mod)))
#else
#define MODULE_EXPORT
#define MODULE_WASM_MODNAME(mod)
#define __attribute__(x)
#define __restrict__
#endif
/********************************* Headers *********************************/
// MSFS headers
#include <MSFS/MSFS_WindowsTypes.h>
#include <SimConnect.h>
// C headers
#include <math.h>
// C++ headers
#include <algorithm>
// Own headers
#include "fuel.h"
#include "log.h"
#include "shared.h"
/******************************** Constants ********************************/
// 2x 190lbs default
#define FRONT_CREW_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (760.0) : (344.0))
// 2x 190lbs default
#define REAR_CREW_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (760.0) : (344.0))
// All actual Business seats
#define MAX_BUSINESS_1 18
// First 5 rows of economy
#define MAX_BUSINESS_2 45
// Next 10 rows
#define MAX_ECONOMY_1 86
// Remaining rows
// 12 x 9
// 6 x 8
// 4 x 2
#define MAX_ECONOMY_2 164
// Total
#define MAX_PAX 313
// Max ZFW
#define MAX_PAX_ZFW(IS_IMPERIAL) ((IS_IMPERIAL) ? (400000) : (181437))
// Arms
#define ARM_PAX_CABIN_CREW_FRONT 792.0
#define ARM_PAX_BUSINESS1_LEFT 540.0
#define ARM_PAX_BUSINESS1_CENTER 540.0
#define ARM_PAX_BUSINESS1_RIGHT 540.0
#define ARM_PAX_BUSINESS2_LEFT 300.0
#define ARM_PAX_BUSINESS2_CENTER 300.0
#define ARM_PAX_BUSINESS2_RIGHT 300.0
#define ARM_PAX_ECONOMY1_LEFT -240.0
#define ARM_PAX_ECONOMY1_CENTER -240.0
#define ARM_PAX_ECONOMY1_RIGHT -240.0
#define ARM_PAX_ECONOMY2_LEFT -600.0
#define ARM_PAX_ECONOMY2_CENTER -600.0
#define ARM_PAX_ECONOMY2_RIGHT -600.0
#define ARM_PAX_CABIN_CREW_REAR -660.0
/***************************** Data structures *****************************/
typedef struct {
// SimConnect mapped
double pilot;
double firstOfficer;
double engineer;
double cabinCrewFront;
double business1Left;
double business1Center;
double business1Right;
double business2Left;
double business2Center;
double business2Right;
double economy1Left;
double economy1Center;
double economy1Right;
double economy2Left;
double economy2Center;
double economy2Right;
double cabinCrewRear;
double forwardCargo;
double rearCargo;
double leftAux;
double rightAux;
double _ZFWCG; // DO NOT USE
// Additional properties
double empty;
double total;
double CGTarget;
double ZFWCG;
double TOCG;
struct paxCount {
unsigned char business1;
unsigned char business2;
unsigned char economy1;
unsigned char economy2;
unsigned short total;
} paxCount;
struct sbPlanned {
double ZFW;
double GW;
double fuel;
unsigned short pax;
unsigned int cargo;
} sbPlanned;
} paxPayloadData_t;
typedef struct {
double pilot;
double firstOfficer;
double engineer;
double cabinCrewFront;
double business1Left;
double business1Center;
double business1Right;
double business2Left;
double business2Center;
double business2Right;
double economy1Left;
double economy1Center;
double economy1Right;
double economy2Left;
double economy2Center;
double economy2Right;
double cabinCrewRear;
double forwardCargo;
double rearCargo;
double leftAux;
double rightAux;
double ZFWCG;
} paxPayloadDataSet_t;
/******************************** Functions ********************************/
// ZFW Entry, fill pax first (pax+bag), rest is cargo
void distribute(paxPayloadData_t *const targetPayload, const FuelData_t *const fuel, const double ZFWTarget,
const UserData_t *const userData, const UserOptions_t *const userOptions);
// SimBrief Entry, SB pax count and total cargo
void distribute(paxPayloadData_t *const targetPayload, const FuelData_t *const fuel, unsigned short numPax, unsigned int cargo,
const UserData_t *const userData, const UserOptions_t *const userOptions);
// Updates pax stations with their respective weights
// Used internally and used for Station Entry (pax only, cargo is ste directly)
// STATION WEIGHTS ARE NOT NORMALISED TO POUNDS
void generatePayload(paxPayloadData_t *const targetPayload, const bool isImperial, const UserOptions_t *const userOptions);
// Normalise to Pounds
// For Station Entry: CALL AFTER `generatePayload`
void normalisePayload(paxPayloadData_t *const targetPayload, const bool isImperial);
void calculateCGs(paxPayloadData_t *const targetPayload, const FuelData_t *const fuel, const bool isImperial);
void load(const paxPayloadData_t *const targetPayload, const FuelData_t *const fuel, const HANDLE simConnect,
const bool isImperial);
void unload(const HANDLE simConnect, const FuelData_t *const fuel, const double empty, const bool isER);
// Based on ICAO/LH findings
double PAX_WEIGHT(const bool isImperial, const UserOptions_t *const options);
// Based on ICAO/LH findings
double BAG_WEIGHT(const bool isImperial, const UserOptions_t *const options);
+131
View File
@@ -0,0 +1,131 @@
#pragma once
#ifndef __INTELLISENSE__
#define MODULE_EXPORT __attribute__((visibility("default")))
#define MODULE_WASM_MODNAME(mod) __attribute__((import_module(mod)))
#else
#define MODULE_EXPORT
#define MODULE_WASM_MODNAME(mod)
#define __attribute__(x)
#define __restrict__
#endif
/******************************** Constants ********************************/
// 190lbs default
#define PILOT_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (190.0) : (86.0))
// 200lbs per tank (one LD3)
#define AUX_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (200.0) : (91.0))
// PMC pallet due to 104in door
#define MAX_FRONT_CARGO(IS_IMPERIAL) ((IS_IMPERIAL) ? (6.0 * 15000.0) : (6.0 * 6804.0))
// LD3s due to 70in door, ER option takes up two slots
#define MAX_REAR_CARGO(IS_IMPERIAL, IS_ER) ((IS_IMPERIAL) ? ((IS_ER ? 12.0 : 14.0) * 3500.0) : ((IS_ER ? 12.0 : 14.0) * 1588.0))
// Max TOW
#define MAX_TOW(IS_IMPERIAL) ((IS_IMPERIAL) ? (625500) : (283722))
#define MAX_TOW_ER(IS_IMPERIAL) ((IS_IMPERIAL) ? (630500) : (285990))
// Arms Shared
#define ARM_EMPTY -120.0
#define ARM_PILOT 984.0
#define ARM_FIRST_OFFICER 984.0
#define ARM_ENGINEER 960.0
#define ARM_FORWARD_CARGO 360.0
#define ARM_REAR_CARGO -360.0
#define ARM_LEFT_AUX 60.0
#define ARM_RIGHT_AUX 60.0
// MAC
#define ROOT_CHORD 34.68
#define WING_SPAN 170.5
#define WING_AREA 3648.0
#define QUARTER_MAC -165.0 // aero_center
#define TIP_CHORD ((2.0 * WING_AREA) / WING_SPAN - ROOT_CHORD)
#define TAPER_RATIO (TIP_CHORD / ROOT_CHORD)
#define MAC ((2.0 / 3.0) * ROOT_CHORD * ((1.0 + TAPER_RATIO + (TAPER_RATIO * TAPER_RATIO)) / (1.0 + TAPER_RATIO)) * 12.0)
#define LEMAC (QUARTER_MAC + (1.0 / 4.0) * MAC)
// CG Limits
#define MIN_CG 12.0
#define MAX_CG 34.0
#define CG_TOLERANCE 0.05
// GSX States
#define GSX_SERVICE_IDLE 1
#define GSX_SERVICE_CALLED 4
#define GSX_SERVICE_ACTIVE 5
#define GSX_SERVICE_FINISHED 6
/********************************* Macros **********************************/
// Conversions
#define TO_POUNDS(IS_IMPERIAL, VALUE) ((IS_IMPERIAL) ? (VALUE) : (VALUE)*2.20462262185)
#define FROM_POUNDS(IS_IMPERIAL, VALUE) ((IS_IMPERIAL) ? (VALUE) : (VALUE) * (1.0 / 2.20462262185))
// MAC
#define TO_PERCENT_MAC(POS) ((((POS)-LEMAC) / MAC) * -100.0)
/********************************** ENUMS **********************************/
enum DATA_DEFINITIONS {
DATA_DEFINITION_EMPTY_WEIGHT,
DATA_DEFINITION_PAYLOAD_PAX,
DATA_DEFINITION_PAYLOAD_F,
DATA_DEFINITION_FUEL,
DATA_DEFINITION_FUEL_SET,
DATA_DEFINITION_GSX,
DATA_DEFINITION_USER_DATA,
};
enum DATA_REQUESTS {
DATA_REQUEST_EMPTY_WEIGHT,
DATA_REQUEST_PAYLOAD_PAX,
DATA_REQUEST_PAYLOAD_F,
DATA_REQUEST_FUEL,
DATA_REQUEST_FUEL_SET,
DATA_REQUEST_GSX,
DATA_REQUEST_USER_DATA,
};
enum LOADING_STATES {
LOADING_STATE_IDLE,
LOADING_STATE_BOARDING,
LOADING_STATE_BOARDED,
LOADING_STATE_DEBOARDING,
LOADING_STATE_DEBOARDED,
};
enum FUELING_STATES { FUELING_STATE_IDLE, FUELING_STATE_CALLED, FUELING_STATE_FUELING, FUELING_STATE_FUELED };
enum CALL_MODES {
CALL_MODE_SB_SET,
CALL_MODE_ZFW_SET,
CALL_MODE_STATION_SET,
CALL_MODE_LOAD_SET,
CALL_MODE_UNLOAD_SET,
CALL_MODE_OPTIONS_SET,
CALL_MODE_GSX_RESET,
};
/***************************** Data structures *****************************/
typedef struct {
double isCargo;
double isER;
double isImperial;
} UserData_t;
typedef struct {
// SimConnect mapped
double couatlStarted; // boolean
double boardingState; // See manual, 5 => active
double deboardingState; // See manual, 5 => active
double refuelingState; // See manual, 5 => active
double passengersBoarded; // Num pax
double passengersDeboarded; // Num pax
double cargoBoarded; // In percent
double cargoDeboarded; // In percent
double fuelConnected; // boolean
// Additional properties
enum LOADING_STATES loadingState;
enum FUELING_STATES fuelingState;
} GSXData_t;
typedef struct {
bool GSXSync;
double paxWeightKG;
double bagWeightKG;
double paxWeightLBS;
double bagWeightLBS;
} UserOptions_t;
@@ -1,25 +0,0 @@
// load-manager-cli.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "../wasm-module/pax.h"
int main()
{
bool isImperial = false;
bool isER = true;
paxPayloadData_t targetPaxPayloadData = paxPayloadData_t();
targetPaxPayloadData.empty = FROM_POUNDS(isImperial, 283975);
targetPaxPayloadData.pilot = PAX_WEIGHT(isImperial);
targetPaxPayloadData.firstOfficer = PAX_WEIGHT(isImperial);
targetPaxPayloadData.engineer = PAX_WEIGHT(isImperial);
targetPaxPayloadData.cabinCrewFront = FRONT_CREW_WEIGHT(isImperial);
targetPaxPayloadData.cabinCrewRear = REAR_CREW_WEIGHT(isImperial);
targetPaxPayloadData.leftAux = isER ? AUX_WEIGHT(isImperial) : 0;
targetPaxPayloadData.rightAux = isER ? AUX_WEIGHT(isImperial) : 0;
FuelData_t liveFuelData = FuelData_t();
distribute(&targetPaxPayloadData, &liveFuelData, 162000.0, 20.5, isImperial);
}
@@ -1,109 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>17.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{992caf4b-b3f6-4a86-a1c1-663686082c5e}</ProjectGuid>
<RootNamespace>loadmanagercli</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<IntDir>$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<IntDir>$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="pax.cpp" />
<ClCompile Include="load-manager-cli.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="pax.h" />
<ClInclude Include="types.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -1,34 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>
rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="load-manager-cli.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="pax.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="pax.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="types.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
-980
View File
@@ -1,980 +0,0 @@
#include "load-manager.h"
#include "pax.h"
// Data
UserData_t* UserData;
GSXData_t* GSXData;
paxPayloadData_t* livePaxPayloadData;
paxPayloadData_t* targetPaxPayloadData;
fPayloadData_t* liveFPayloadData;
fPayloadData_t* targetFPayloadData;
FuelData_t* liveFuelData;
UserOptions_t* UserOptions;
// Operational
bool commBusCallbackRegistered;
HANDLE simConnect;
FILE* logFile;
MODULE_VAR tick18 = { TICK18 };
// Init
extern "C" MSFS_CALLBACK void module_init(void) {
log(stdout, MODULE_NAME"Starting init.\n");
logFile = fopen("\\work\\log.txt", "w");
if (logFile == NULL)
{
log(stderr, MODULE_NAME"Error creating logfile.\n");
}
UserData = new UserData_t();
GSXData = new GSXData_t();
livePaxPayloadData = new paxPayloadData_t();
targetPaxPayloadData = new paxPayloadData_t();
liveFPayloadData = new fPayloadData_t();
targetFPayloadData = new fPayloadData_t();
liveFuelData = new FuelData_t();
UserOptions = new UserOptions_t();
targetFPayloadData->CGTarget = targetPaxPayloadData->CGTarget = 21;
#pragma region SimConnect
// SimConnect open
HRESULT hr;
hr = SimConnect_Open(&simConnect, "KHOFMANN TFDi MD-11 Load Manager", nullptr, 0, 0, 0);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not open SimConnect connection, terminating.\n");
return;
}
// SimConnect Empty Weight data definition
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_EMPTY_WEIGHT, "EMPTY WEIGHT", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add EMPTY WEIGHT to data definition, terminating.\n");
return;
}
// SimConnect Pax/F Weight data definition
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:1", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:1 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:1", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:1 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:2", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:2 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:2", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:2 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:3", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:3 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:3", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:3 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:4", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:4 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:4", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:4 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:5", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:5 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:5", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:5 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:6", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:6 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:6", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:6 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:7", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:7 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:7", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:7 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:8", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:8 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:8", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:8 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:9", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:9 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:9", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:9 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:10", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:10 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:10", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:10 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:11", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:11 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:11", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:11 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:12", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:12 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:12", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:12 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:13", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:13 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:13", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:13 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:14", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:14 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:14", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:14 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:15", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:15 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_F, "PAYLOAD STATION WEIGHT:15", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:15 to F data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:16", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:16 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:17", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:17 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:18", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:18 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:19", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:19 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:20", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:20 to PAX data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_PAYLOAD_PAX, "PAYLOAD STATION WEIGHT:21", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add PAYLOAD STATION WEIGHT:21 to PAX data definition, terminating.\n");
return;
}
// SimConnect Fuel data definition
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL WEIGHT PER GALLON", "pounds", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL WEIGHT PER GALLON to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK LEFT MAIN QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK LEFT MAIN QUANTITY to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK RIGHT MAIN QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK RIGHT MAIN QUANTITY to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK CENTER QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK CENTER QUANTITY to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK CENTER2 QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK CENTER2 QUANTITY to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK CENTER3 QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK CENTER3 QUANTITY to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK LEFT TIP QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK LEFT TIP QUANTITY to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK RIGHT TIP QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK RIGHT TIP QUANTITY to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK EXTERNAL1 QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK EXTERNAL1 QUANTITY to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK LEFT AUX QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK LEFT AUX QUANTITY to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_FUEL, "FUEL TANK RIGHT AUX QUANTITY", "gallons", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add FUEL TANK RIGHT AUX QUANTITY to data definition, terminating.\n");
return;
}
// GSX LVars
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_GSX, "L:FSDT_GSX_BOARDING_STATE", "number", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add L:FSDT_GSX_BOARDING_STATE to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_GSX, "L:FSDT_GSX_DEBOARDING_STATE", "number", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add L:FSDT_GSX_DEBOARDING_STATE to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_GSX, "L:FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL", "number", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add L:FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_GSX, "L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL", "number", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_GSX, "L:FSDT_GSX_BOARDING_CARGO_PERCENT", "number", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add L:FSDT_GSX_BOARDING_CARGO_PERCENT to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_GSX, "L:FSDT_GSX_DEBOARDING_CARGO_PERCENT", "number", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add L:FSDT_GSX_DEBOARDING_CARGO_PERCENT to data definition, terminating.\n");
return;
}
// User LVars
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_USER_DATA, "L:MD11_EFB_IS_CARGO", "bool", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add L:MD11_EFB_IS_CARGO to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_USER_DATA, "L:MD11_OPT_ER", "bool", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add L:MD11_OPT_ER to data definition, terminating.\n");
return;
}
hr = SimConnect_AddToDataDefinition(simConnect, DATA_DEFINITION_USER_DATA, "L:MD11_EFB_OPTIONS_GENERAL", "number", SIMCONNECT_DATATYPE_FLOAT64);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not add L:MD11_EFB_OPTIONS_GENERAL to data definition, terminating.\n");
return;
}
log(stdout, MODULE_NAME"Data definitions created\n");
// SimConnect Requests
hr = SimConnect_RequestDataOnSimObject(simConnect, DATA_REQUEST_EMPTY_WEIGHT, DATA_DEFINITION_EMPTY_WEIGHT, SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_PERIOD_VISUAL_FRAME);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not request empty weight, terminating.\n");
return;
}
hr = SimConnect_RequestDataOnSimObject(simConnect, DATA_REQUEST_PAYLOAD_PAX, DATA_DEFINITION_PAYLOAD_PAX, SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_PERIOD_VISUAL_FRAME);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not request payload pax, terminating.\n");
return;
}
hr = SimConnect_RequestDataOnSimObject(simConnect, DATA_REQUEST_PAYLOAD_F, DATA_DEFINITION_PAYLOAD_F, SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_PERIOD_VISUAL_FRAME);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not request payload f, terminating.\n");
return;
}
hr = SimConnect_RequestDataOnSimObject(simConnect, DATA_REQUEST_FUEL, DATA_DEFINITION_FUEL, SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_PERIOD_VISUAL_FRAME);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not request fuel, terminating.\n");
return;
}
hr = SimConnect_RequestDataOnSimObject(simConnect, DATA_REQUEST_GSX, DATA_DEFINITION_GSX, SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_PERIOD_VISUAL_FRAME);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not request GSX, terminating.\n");
return;
}
hr = SimConnect_RequestDataOnSimObject(simConnect, DATA_REQUEST_USER_DATA, DATA_DEFINITION_USER_DATA, SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_PERIOD_SECOND);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not request user data, terminating.\n");
return;
}
log(stdout, MODULE_NAME"Requests created.\n");
hr = SimConnect_CallDispatch(simConnect, MyDispatchProc, nullptr);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Could not set dispatch proc, terminating.\n");
return;
}
log(stdout, MODULE_NAME"Callback created.\n");
#pragma endregion
// CommBus
if (!fsCommBusRegister(COMM_BUS_UPDATE_TARGET_EVENT, commBusUpdateTargetCallback)) {
log(stderr, MODULE_NAME"Could not register CommBus, terminating.\n");
return;
}
else {
log(stdout, MODULE_NAME"CommBus registered.\n");
}
// Options
FILE* optionsFile = fopen("\\work\\options.json", "rb");
if (optionsFile != NULL) {
char readBuffer[256];
rapidjson::FileReadStream is(optionsFile, readBuffer, sizeof(readBuffer));
rapidjson::Document optionsDoc;
optionsDoc.ParseStream(is);
if (optionsDoc.HasMember("GSXSync")) UserOptions->GSXSync = optionsDoc["GSXSync"].GetBool();
if (optionsDoc.HasMember("paxWeightKG")) UserOptions->paxWeightKG = optionsDoc["paxWeightKG"].GetDouble();
if (optionsDoc.HasMember("bagWeightKG")) UserOptions->bagWeightKG = optionsDoc["bagWeightKG"].GetDouble();
if (optionsDoc.HasMember("paxWeightLBS")) UserOptions->paxWeightLBS = optionsDoc["paxWeightLBS"].GetDouble();
if (optionsDoc.HasMember("bagWeightLBS")) UserOptions->bagWeightLBS = optionsDoc["bagWeightLBS"].GetDouble();
fclose(optionsFile);
log(stdout, MODULE_NAME"Options loaded.\n");
}
else {
log(stdout, MODULE_NAME"Options file not present, skip.\n");
}
log(stdout, MODULE_NAME"Initialized.\n");
}
// Deinit
extern "C" MSFS_CALLBACK void module_deinit(void) {
HRESULT hr;
hr = SimConnect_Close(simConnect);
if (hr != S_OK) {
log(stderr, MODULE_NAME"Failed to close SimConnect.\n");
}
log(stdout, MODULE_NAME"SimConnect closed.\n");
delete UserData;
delete GSXData;
delete livePaxPayloadData;
delete targetPaxPayloadData;
delete liveFPayloadData;
delete targetFPayloadData;
delete liveFuelData;
log(stdout, MODULE_NAME"Global memory released.\n");
fsCommBusUnregister(COMM_BUS_UPDATE_TARGET_EVENT, commBusUpdateTargetCallback);
log(stdout, MODULE_NAME"CommBus unregistered.\n");
// Options
rapidjson::Document optionsDoc;
rapidjson::Document::AllocatorType& allocator = optionsDoc.GetAllocator();
optionsDoc.SetObject();
optionsDoc.AddMember("GSXSync", UserOptions->GSXSync, allocator);
optionsDoc.AddMember("paxWeightKG", UserOptions->paxWeightKG, allocator);
optionsDoc.AddMember("bagWeightKG", UserOptions->bagWeightKG, allocator);
optionsDoc.AddMember("paxWeightLBS", UserOptions->paxWeightLBS, allocator);
optionsDoc.AddMember("bagWeightLBS", UserOptions->bagWeightLBS, allocator);
FILE* optionsFile = fopen("\\work\\options.json", "wb");
if (optionsFile != NULL) {
char writeBuffer[256];
rapidjson::FileWriteStream os(optionsFile, writeBuffer, sizeof(writeBuffer));
rapidjson::Writer<rapidjson::FileWriteStream> writer(os);
optionsDoc.Accept(writer);
fclose(optionsFile);
log(stdout, MODULE_NAME"Options written.\n");
}
else {
log(stdout, MODULE_NAME"Filed to open options file for write, skip.\n");
}
log(stdout, MODULE_NAME"Deinitialized.\n");
}
// Main loop
extern "C" MSFS_CALLBACK bool Load_Manager_gauge_callback(FsContext ctx, int service_id, void* pData) {
switch (service_id) {
case PANEL_SERVICE_PRE_UPDATE: {
lookup_var(&tick18);
if (fmod(tick18.var_value.n, 3) == 0) sendData();
}
default:
break;
}
return true;
}
// CommBus
void commBusUpdateTargetCallback(const char* args, unsigned int size, void* ctx) {
printf("Target payload update request: %d", receiveData(args));
}
#pragma region JSON data handling
// JSON receive
int receiveData(const char* buf) {
if (liveFPayloadData == nullptr || livePaxPayloadData == nullptr || targetFPayloadData == nullptr || targetPaxPayloadData == nullptr ||
liveFuelData == nullptr || UserData == nullptr) return 0;
rapidjson::Document document;
document.Parse(buf);
if (document.HasParseError()) return document.GetParseError();
if (document.HasMember("mode")) {
int mode = document["mode"].GetUint();
switch(mode) {
// SB Entry
case 0: {
if (!document.HasMember("cargo") || !document.HasMember("CGTarget")) return -1;
unsigned int cargo = document["cargo"].GetInt();
double CGTarget = document["CGTarget"].GetDouble();
if (UserData->isCargo) {
targetFPayloadData->CGTarget = CGTarget;
distribute(targetFPayloadData, liveFuelData, cargo, UserData->isImperial, UserData->isER);
}
else {
if (!document.HasMember("numPax")) return -1;
unsigned short numPax = document["numPax"].GetInt();
targetPaxPayloadData->CGTarget = CGTarget;
distribute(targetPaxPayloadData, liveFuelData, numPax, cargo, UserData->isImperial, UserData->isER);
}
break;
}
// ZFW Entry
case 1: {
if (!document.HasMember("ZFWTarget") || !document.HasMember("CGTarget")) return -1;
double ZFWTarget = document["ZFWTarget"].GetDouble();
double CGTarget = document["CGTarget"].GetDouble();
if (UserData->isCargo) {
targetFPayloadData->CGTarget = CGTarget;
distribute(targetFPayloadData, liveFuelData, ZFWTarget, UserData->isImperial, UserData->isER);
}
else {
targetPaxPayloadData->CGTarget = CGTarget;
distribute(targetPaxPayloadData, liveFuelData, ZFWTarget, UserData->isImperial, UserData->isER);
}
break;
}
// Station Entry
case 2: {
if (UserData->isCargo) {
if (!document.HasMember("upper1") || !document.HasMember("upper2") ||
!document.HasMember("upper3") || !document.HasMember("upper4") ||
!document.HasMember("lowerForward") || !document.HasMember("lowerRear")) return -1;
targetFPayloadData->stations.upper1 = document["upper1"].GetInt();
targetFPayloadData->stations.upper2 = document["upper2"].GetInt();
targetFPayloadData->stations.upper3 = document["upper3"].GetInt();
targetFPayloadData->stations.upper4 = document["upper4"].GetInt();
targetFPayloadData->lowerForward = document["lowerForward"].GetDouble();
targetFPayloadData->lowerRear = document["lowerRear"].GetDouble();
generatePayload(targetFPayloadData, UserData->isImperial);
}
else {
if (!document.HasMember("business1") || !document.HasMember("business2") ||
!document.HasMember("economy1") || !document.HasMember("economy2") ||
!document.HasMember("forwardCargo") || !document.HasMember("rearCargo")) return -1;
targetPaxPayloadData->paxCount.business1 = document["business1"].GetInt();
targetPaxPayloadData->paxCount.business2 = document["business2"].GetInt();
targetPaxPayloadData->paxCount.economy1 = document["economy1"].GetInt();
targetPaxPayloadData->paxCount.economy2 = document["economy2"].GetInt();
targetPaxPayloadData->forwardCargo = document["forwardCargo"].GetDouble();
targetPaxPayloadData->rearCargo = document["rearCargo"].GetDouble();
generatePayload(targetPaxPayloadData, UserData->isImperial);
}
break;
}
// Trigger load
case 3: {
if (UserData->isCargo) {
load(targetFPayloadData, simConnect, UserData->isImperial);
}
else {
load(targetPaxPayloadData, simConnect, UserData->isImperial);
}
break;
}
// Trigger unload
case 4: {
if (UserData->isCargo) {
unloadF(simConnect, UserData->isER);
}
else {
unload(simConnect, UserData->isER);
}
break;
}
default:
break;
}
sendData();
}
else return -1;
return 0;
}
// JSON send
void sendData () {
if (liveFPayloadData == nullptr || livePaxPayloadData == nullptr || targetFPayloadData == nullptr || targetPaxPayloadData == nullptr ||
liveFuelData == nullptr || UserData == nullptr || GSXData == nullptr) return;
rapidjson::Document document;
rapidjson::Document::AllocatorType& allocator = document.GetAllocator();
document.SetObject();
rapidjson::Value livePayload;
livePayload.SetObject();
rapidjson::Value targetPayload;
targetPayload.SetObject();
rapidjson::Value GSX;
GSX.SetObject();
rapidjson::Value userData;
userData.SetObject();
rapidjson::Value limits;
limits.SetObject();
rapidjson::Value options;
options.SetObject();
rapidjson::StringBuffer strbuf;
rapidjson::Writer<rapidjson::StringBuffer> writer(strbuf);
#pragma region Live Payload
// OEW (empty + aux tank wgts)
livePayload.AddMember("empty",
FROM_POUNDS(UserData->isImperial, UserData->isCargo ? liveFPayloadData->empty : livePaxPayloadData->empty) +
FROM_POUNDS(UserData->isImperial, UserData->isCargo ? liveFPayloadData->leftAux : livePaxPayloadData->leftAux) +
FROM_POUNDS(UserData->isImperial, UserData->isCargo ? liveFPayloadData->rightAux : livePaxPayloadData->rightAux),
allocator);
// Cargo only
if (UserData->isCargo) {
livePayload.AddMember("crew",
FROM_POUNDS(UserData->isImperial, liveFPayloadData->pilot) +
FROM_POUNDS(UserData->isImperial, liveFPayloadData->firstOfficer) +
FROM_POUNDS(UserData->isImperial, liveFPayloadData->engineer),
allocator);
livePayload.AddMember("upper1", FROM_POUNDS(UserData->isImperial, liveFPayloadData->upper1Left + liveFPayloadData->upper1Right), allocator);
livePayload.AddMember("upper2", FROM_POUNDS(UserData->isImperial, liveFPayloadData->upper2Left + liveFPayloadData->upper2Right), allocator);
livePayload.AddMember("upper3", FROM_POUNDS(UserData->isImperial, liveFPayloadData->upper3Left + liveFPayloadData->upper3Right), allocator);
livePayload.AddMember("upper4", FROM_POUNDS(UserData->isImperial, liveFPayloadData->upper4Left + liveFPayloadData->upper4Right), allocator);
livePayload.AddMember("lowerForward", FROM_POUNDS(UserData->isImperial, liveFPayloadData->lowerForward), allocator);
livePayload.AddMember("lowerRear", FROM_POUNDS(UserData->isImperial, liveFPayloadData->lowerRear), allocator);
livePayload.AddMember("total", FROM_POUNDS(UserData->isImperial, liveFPayloadData->total), allocator);
// CGs
calculateCGs(liveFPayloadData, liveFuelData, &liveFPayloadData->ZFWCG, &liveFPayloadData->TOCG, true);
livePayload.AddMember("ZFWCG", liveFPayloadData->ZFWCG, allocator);
livePayload.AddMember("TOCG", liveFPayloadData->TOCG, allocator);
}
// Pax only (converted to passengers)
else {
livePayload.AddMember("crew",
FROM_POUNDS(UserData->isImperial, livePaxPayloadData->pilot) + FROM_POUNDS(UserData->isImperial, livePaxPayloadData->firstOfficer) +
FROM_POUNDS(UserData->isImperial, livePaxPayloadData->engineer) + FROM_POUNDS(UserData->isImperial, livePaxPayloadData->cabinCrewFront) +
FROM_POUNDS(UserData->isImperial, livePaxPayloadData->cabinCrewRear),
allocator);
livePayload.AddMember("business1",
(short)(FROM_POUNDS(UserData->isImperial, livePaxPayloadData->business1Left + livePaxPayloadData->business1Center +
livePaxPayloadData->business1Right) / PAX_WEIGHT(UserData->isImperial)),
allocator);
livePayload.AddMember("business2",
(short)(FROM_POUNDS(UserData->isImperial, livePaxPayloadData->business2Left + livePaxPayloadData->business2Center +
livePaxPayloadData->business2Right) / PAX_WEIGHT(UserData->isImperial)),
allocator);
livePayload.AddMember("economy1",
(short)(FROM_POUNDS(UserData->isImperial, livePaxPayloadData->economy1Left + livePaxPayloadData->economy1Center +
livePaxPayloadData->economy1Right) / PAX_WEIGHT(UserData->isImperial)),
allocator);
livePayload.AddMember("economy2",
(short)(FROM_POUNDS(UserData->isImperial, livePaxPayloadData->economy2Left + livePaxPayloadData->economy2Center +
livePaxPayloadData->economy2Right) / PAX_WEIGHT(UserData->isImperial)),
allocator);
livePayload.AddMember("forwardCargo", FROM_POUNDS(UserData->isImperial, livePaxPayloadData->forwardCargo), allocator);
livePayload.AddMember("rearCargo", FROM_POUNDS(UserData->isImperial, livePaxPayloadData->rearCargo), allocator);
livePayload.AddMember("total", FROM_POUNDS(UserData->isImperial, livePaxPayloadData->total), allocator);
// CGs
calculateCGs(livePaxPayloadData, liveFuelData, &livePaxPayloadData->ZFWCG, &livePaxPayloadData->TOCG, true);
livePayload.AddMember("ZFWCG",livePaxPayloadData->ZFWCG, allocator);
livePayload.AddMember("TOCG", livePaxPayloadData->TOCG, allocator);
}
// Fuel
livePayload.AddMember("fuel", FROM_POUNDS(UserData->isImperial, liveFuelData->total), allocator);
#pragma endregion
#pragma region Target Payload
// OEW (empty + aux tank wgts)
targetPayload.AddMember("empty",
(UserData->isCargo ? targetFPayloadData->empty : targetPaxPayloadData->empty)+
(UserData->isCargo ? targetFPayloadData->leftAux : targetPaxPayloadData->leftAux) +
(UserData->isCargo ? targetFPayloadData->rightAux : targetPaxPayloadData->rightAux),
allocator);
// Cargo only
if (UserData->isCargo) {
targetPayload.AddMember("crew", targetFPayloadData->pilot + targetFPayloadData->firstOfficer + targetFPayloadData->engineer, allocator);
targetPayload.AddMember("upper1", targetFPayloadData->upper1Left + targetFPayloadData->upper1Right, allocator);
targetPayload.AddMember("upper2", targetFPayloadData->upper2Left + targetFPayloadData->upper2Right, allocator);
targetPayload.AddMember("upper3", targetFPayloadData->upper3Left + targetFPayloadData->upper3Right, allocator);
targetPayload.AddMember("upper4", targetFPayloadData->upper4Left + targetFPayloadData->upper4Right, allocator);
targetPayload.AddMember("lowerForward", targetFPayloadData->lowerForward, allocator);
targetPayload.AddMember("lowerRear", targetFPayloadData->lowerRear, allocator);
targetPayload.AddMember("total", targetFPayloadData->total, allocator);
targetPayload.AddMember("CGTarget", targetFPayloadData->CGTarget, allocator);
// CGs
calculateCGs(targetFPayloadData, liveFuelData, &targetFPayloadData->ZFWCG, &targetFPayloadData->TOCG, UserData->isImperial);
targetPayload.AddMember("ZFWCG", targetFPayloadData->ZFWCG, allocator);
targetPayload.AddMember("TOCG", targetFPayloadData->TOCG, allocator);
}
// Pax only (converted to passengers)
else {
targetPayload.AddMember("crew",
targetPaxPayloadData->pilot + targetPaxPayloadData->firstOfficer + targetPaxPayloadData->engineer +
targetPaxPayloadData->cabinCrewFront + targetPaxPayloadData->cabinCrewRear,
allocator);
targetPayload.AddMember("business1", targetPaxPayloadData->paxCount.business1, allocator);
targetPayload.AddMember("business2", targetPaxPayloadData->paxCount.business2, allocator);
targetPayload.AddMember("economy1", targetPaxPayloadData->paxCount.economy1, allocator);
targetPayload.AddMember("economy2", targetPaxPayloadData->paxCount.economy2, allocator);
targetPayload.AddMember("forwardCargo", targetPaxPayloadData->forwardCargo, allocator);
targetPayload.AddMember("rearCargo", targetPaxPayloadData->rearCargo, allocator);
targetPayload.AddMember("total", targetPaxPayloadData->total, allocator);
targetPayload.AddMember("CGTarget", targetPaxPayloadData->CGTarget, allocator);
// CGs
calculateCGs(targetPaxPayloadData, liveFuelData, &targetPaxPayloadData->ZFWCG, &targetPaxPayloadData->TOCG, UserData->isImperial);
targetPayload.AddMember("ZFWCG", targetPaxPayloadData->ZFWCG, allocator);
targetPayload.AddMember("TOCG", targetPaxPayloadData->TOCG, allocator);
}
#pragma endregion
// GSX
GSX.AddMember("boardingState", GSXData->boardingState, allocator);
GSX.AddMember("deboardingState", GSXData->deboardingState, allocator);
// User Data
userData.AddMember<bool>("isCargo", UserData->isCargo, allocator);
userData.AddMember<bool>("isER", UserData->isER, allocator);
userData.AddMember<bool>("isImperial", UserData->isImperial, allocator);
// Limits
limits.AddMember("minCG", MIN_CG, allocator);
limits.AddMember("maxCG", MAX_CG, allocator);
limits.AddMember("maxFuel", UserData->isER ? MAX_FUEL_ER(UserData->isImperial) : MAX_FUEL(UserData->isImperial), allocator);
limits.AddMember("maxTOW", UserData->isER ? MAX_TOW_ER(UserData->isImperial) : MAX_TOW(UserData->isImperial), allocator);
// Cargo Only
if (UserData->isCargo) {
limits.AddMember("upper1", MAX_UPPER_CARGO(UserData->isImperial), allocator);
limits.AddMember("upper2", MAX_UPPER_CARGO(UserData->isImperial), allocator);
limits.AddMember("upper3", MAX_UPPER_CARGO(UserData->isImperial), allocator);
limits.AddMember("upper4", MAX_UPPER_CARGO(UserData->isImperial), allocator);
limits.AddMember("lowerForward", MAX_FRONT_CARGO(UserData->isImperial), allocator);
limits.AddMember("lowerRear", MAX_REAR_CARGO(UserData->isImperial, UserData->isER), allocator);
limits.AddMember("maxZFW", MAX_F_ZFW(UserData->isImperial), allocator);
limits.AddMember("minZFW", targetFPayloadData->empty + targetFPayloadData->leftAux + targetFPayloadData->rightAux, allocator);
}
// Pax only
else {
limits.AddMember("business1", MAX_BUSINESS_1, allocator);
limits.AddMember("business2", MAX_BUSINESS_2, allocator);
limits.AddMember("economy1", MAX_ECONOMY_1, allocator);
limits.AddMember("economy2", MAX_ECONOMY_2, allocator);
limits.AddMember("forwardCargo", MAX_FRONT_CARGO(UserData->isImperial), allocator);
limits.AddMember("rearCargo", MAX_REAR_CARGO(UserData->isImperial, UserData->isER), allocator);
limits.AddMember("maxZFW", MAX_PAX_ZFW(UserData->isImperial), allocator);
limits.AddMember("minZFW", targetPaxPayloadData->empty + targetPaxPayloadData->leftAux + targetPaxPayloadData->rightAux, allocator);
}
// Options
options.AddMember("GSXSync", UserOptions->GSXSync, allocator);
options.AddMember("paxWeight", UserData->isImperial ? UserOptions->paxWeightLBS : UserOptions->paxWeightKG, allocator);
options.AddMember("bagWeight", UserData->isImperial ? UserOptions->bagWeightLBS : UserOptions->bagWeightKG, allocator);
// Construct document
document.AddMember("livePayload", livePayload.Move(), allocator);
document.AddMember("targetPayload", targetPayload.Move(), allocator);
document.AddMember("GSX", GSX.Move(), allocator);
document.AddMember("userData", userData.Move(), allocator);
document.AddMember("limits", limits.Move(), allocator);
document.AddMember("options", options.Move(), allocator);
// Write to CommBus
document.Accept(writer);
fsCommBusCall(COMM_BUS_LIVE_DATA_EVENT, strbuf.GetString(), strbuf.GetSize(), FsCommBusBroadcast_JS);
}
#pragma endregion
// Logfile
void log(FILE* file, const char* format, void* optionalElement)
{
if (logFile != NULL)
{
fprintf(logFile, format, optionalElement);
fflush(logFile);
}
fprintf(file, format, optionalElement);
}
// SimConnect
void CALLBACK MyDispatchProc(SIMCONNECT_RECV* pData, DWORD cbData, void* pContext) {
switch (pData->dwID) {
case SIMCONNECT_RECV_ID_SIMOBJECT_DATA: {
SIMCONNECT_RECV_SIMOBJECT_DATA* pObjData = (SIMCONNECT_RECV_SIMOBJECT_DATA*)pData;
switch (pObjData->dwRequestID) {
case DATA_REQUEST_EMPTY_WEIGHT: {
liveFPayloadData->empty = livePaxPayloadData->empty = *((double*)&pObjData->dwData);
break;
}
case DATA_REQUEST_PAYLOAD_F: {
fPayloadData_t* data = (fPayloadData_t*)&pObjData->dwData;
data->empty = liveFPayloadData->empty;
memcpy(liveFPayloadData, data, sizeof(fPayloadData_t));
liveFPayloadData->total = liveFPayloadData->empty + liveFPayloadData->pilot + liveFPayloadData->firstOfficer +
liveFPayloadData->engineer + liveFPayloadData->upper1Left + liveFPayloadData->upper1Right +
liveFPayloadData->upper2Left + liveFPayloadData->upper2Right + liveFPayloadData->upper3Left +
liveFPayloadData->upper3Right + liveFPayloadData->upper4Left + liveFPayloadData->upper4Right +
liveFPayloadData->lowerForward + liveFPayloadData->lowerRear + liveFPayloadData->leftAux +
liveFPayloadData->rightAux;
break;
}
case DATA_REQUEST_PAYLOAD_PAX: {
paxPayloadData_t* data = (paxPayloadData_t*)&pObjData->dwData;
data->empty = livePaxPayloadData->empty;
memcpy(livePaxPayloadData, data, sizeof(paxPayloadData_t));
livePaxPayloadData->total = livePaxPayloadData->empty + livePaxPayloadData->pilot + livePaxPayloadData->firstOfficer +
livePaxPayloadData->engineer + livePaxPayloadData->cabinCrewFront + livePaxPayloadData->business1Left +
livePaxPayloadData->business1Center + livePaxPayloadData->business1Right + livePaxPayloadData->business2Left +
livePaxPayloadData->business2Center + livePaxPayloadData->business2Right + livePaxPayloadData->economy1Left +
livePaxPayloadData->economy1Center + livePaxPayloadData->economy1Right + livePaxPayloadData->economy2Left +
livePaxPayloadData->economy2Center + livePaxPayloadData->economy2Right + livePaxPayloadData->cabinCrewRear +
livePaxPayloadData->forwardCargo + livePaxPayloadData->rearCargo + livePaxPayloadData->leftAux +
livePaxPayloadData->rightAux;
break;
}
case DATA_REQUEST_FUEL: {
FuelData_t* data = (FuelData_t*)&pObjData->dwData;
liveFuelData->main1 = data->main1 * data->poundsPerGallon;
liveFuelData->main3 = data->main3 * data->poundsPerGallon;
liveFuelData->main2 = data->main2 * data->poundsPerGallon;
liveFuelData->upperAux = data->upperAux * data->poundsPerGallon;
liveFuelData->lowerAux = data->lowerAux * data->poundsPerGallon;
liveFuelData->main1Tip = data->main1Tip * data->poundsPerGallon;
liveFuelData->main3Tip = data->main3Tip * data->poundsPerGallon;
liveFuelData->tail = data->tail * data->poundsPerGallon;
liveFuelData->forwardAux1 = data->forwardAux1 * data->poundsPerGallon;
liveFuelData->forwardAux2 = data->forwardAux2 * data->poundsPerGallon;
liveFuelData->total = liveFuelData->main1 + liveFuelData->main3 + liveFuelData->main2 + liveFuelData->upperAux +
liveFuelData->lowerAux + liveFuelData->main1Tip + liveFuelData->main3Tip + liveFuelData->tail +
liveFuelData->forwardAux1 + liveFuelData->forwardAux2;
break;
}
case DATA_REQUEST_GSX: {
GSXData_t* data = (GSXData_t*)&pObjData->dwData;
memcpy(GSXData, data, sizeof(GSXData_t));
if (UserOptions->GSXSync) {
if (GSXData->boardingState == GSX_SERVICE_ACTIVE) {
double cargoBoarded = GSXData->cargoBoarded;
if (UserData->isCargo) {
fPayloadData_t localPayload = {};
memcpy(&localPayload, targetFPayloadData, sizeof(localPayload));
localPayload.stations.upper1 = targetFPayloadData->stations.upper1 * (cargoBoarded / 100);
localPayload.stations.upper2 = targetFPayloadData->stations.upper2 * (cargoBoarded / 100);
localPayload.stations.upper3 = targetFPayloadData->stations.upper3 * (cargoBoarded / 100);
localPayload.stations.upper4 = targetFPayloadData->stations.upper4 * (cargoBoarded / 100);
localPayload.lowerForward = targetFPayloadData->lowerForward * (cargoBoarded / 100);
localPayload.lowerRear = targetFPayloadData->lowerRear * (cargoBoarded / 100);
generatePayload(&localPayload, UserData->isImperial);
load(&localPayload, simConnect, UserData->isImperial);
}
else {
double passengersBoarded = GSXData->passengersBoarded;
paxPayloadData_t localPayload = {};
memcpy(&localPayload, targetPaxPayloadData, sizeof(localPayload));
localPayload.paxCount.business1 = min(targetPaxPayloadData->paxCount.business1, passengersBoarded);
passengersBoarded -= localPayload.paxCount.business1;
localPayload.paxCount.business2 = min(targetPaxPayloadData->paxCount.business2, passengersBoarded);
passengersBoarded -= localPayload.paxCount.business2;
localPayload.paxCount.economy1 = min(targetPaxPayloadData->paxCount.economy1, passengersBoarded);
passengersBoarded -= localPayload.paxCount.economy1;
localPayload.paxCount.economy2 = min(targetPaxPayloadData->paxCount.economy2, passengersBoarded);
passengersBoarded -= localPayload.paxCount.economy2;
localPayload.forwardCargo = targetPaxPayloadData->forwardCargo * (cargoBoarded / 100);
localPayload.rearCargo = targetPaxPayloadData->rearCargo * (cargoBoarded / 100);
generatePayload(&localPayload, UserData->isImperial);
load(&localPayload, simConnect, UserData->isImperial);
}
}
if (GSXData->deboardingState == GSX_SERVICE_ACTIVE) {
double cargoDeboarded = GSXData->cargoDeboarded;
if (UserData->isCargo) {
fPayloadData_t localPayload = {};
memcpy(&localPayload, targetFPayloadData, sizeof(localPayload));
localPayload.stations.upper1 -= targetFPayloadData->stations.upper1 * (cargoDeboarded / 100);
localPayload.stations.upper2 -= targetFPayloadData->stations.upper2 * (cargoDeboarded / 100);
localPayload.stations.upper3 -= targetFPayloadData->stations.upper3 * (cargoDeboarded / 100);
localPayload.stations.upper4 -= targetFPayloadData->stations.upper4 * (cargoDeboarded / 100);
localPayload.lowerForward -= targetFPayloadData->lowerForward * (cargoDeboarded / 100);
localPayload.lowerRear -= targetFPayloadData->lowerRear * (cargoDeboarded / 100);
generatePayload(&localPayload, UserData->isImperial);
load(&localPayload, simConnect, UserData->isImperial);
}
else {
double passengersDeboarded = GSXData->passengersDeboarded;
paxPayloadData_t localPayload = {};
memcpy(&localPayload, targetPaxPayloadData, sizeof(localPayload));
localPayload.paxCount.business1 -= min(targetPaxPayloadData->paxCount.business1, passengersDeboarded);
passengersDeboarded -= targetPaxPayloadData->paxCount.business1 - localPayload.paxCount.business1;
localPayload.paxCount.business2 -= min(targetPaxPayloadData->paxCount.business2, passengersDeboarded);
passengersDeboarded -= targetPaxPayloadData->paxCount.business2 - localPayload.paxCount.business2;
localPayload.paxCount.economy1 -= min(targetPaxPayloadData->paxCount.economy1, passengersDeboarded);
passengersDeboarded -= targetPaxPayloadData->paxCount.economy1 - localPayload.paxCount.economy1;
localPayload.paxCount.economy2 -= min(targetPaxPayloadData->paxCount.economy2, passengersDeboarded);
passengersDeboarded -= targetPaxPayloadData->paxCount.economy2 - localPayload.paxCount.economy2;
localPayload.forwardCargo -= targetPaxPayloadData->forwardCargo * (cargoDeboarded / 100);
localPayload.rearCargo -= targetPaxPayloadData->rearCargo * (cargoDeboarded / 100);
generatePayload(&localPayload, UserData->isImperial);
load(&localPayload, simConnect, UserData->isImperial);
}
}
}
break;
}
case DATA_REQUEST_USER_DATA: {
UserData_t* data = (UserData_t*)&pObjData->dwData;
data->isImperial = ((long)data->isImperial) & 1;
memcpy(UserData, data, sizeof(UserData_t));
// Update static weights
// Shared part 1
targetFPayloadData->empty = targetPaxPayloadData->empty = FROM_POUNDS(UserData->isImperial, liveFPayloadData->empty);
targetFPayloadData->pilot = targetPaxPayloadData->pilot = targetFPayloadData->firstOfficer = targetPaxPayloadData->firstOfficer =
targetFPayloadData->engineer = targetPaxPayloadData->engineer = PILOT_WEIGHT(UserData->isImperial);
// Shared part 2
targetFPayloadData->leftAux = targetPaxPayloadData->leftAux = targetFPayloadData->rightAux = targetPaxPayloadData->rightAux =
UserData->isER ? AUX_WEIGHT(UserData->isImperial) : 0;
// Pax only fixed weights
if (!UserData->isCargo) {
targetPaxPayloadData->cabinCrewFront = FRONT_CREW_WEIGHT(UserData->isImperial);
targetPaxPayloadData->cabinCrewRear = REAR_CREW_WEIGHT(UserData->isImperial);
}
break;
}
default: {
break;
}
}
break;
}
case SIMCONNECT_RECV_ID_EXCEPTION:
{
SIMCONNECT_RECV_EXCEPTION* pEx = (SIMCONNECT_RECV_EXCEPTION*)pData;
log(stderr, MODULE_NAME"SimConnect Exception: %i\n", &pEx->dwException);
break;
}
default: {
break;
}
}
}
-38
View File
@@ -1,38 +0,0 @@
#pragma once
#ifndef __INTELLISENSE__
# define MODULE_EXPORT __attribute__( ( visibility( "default" ) ) )
# define MODULE_WASM_MODNAME(mod) __attribute__((import_module(mod)))
#else
# define MODULE_EXPORT
# define MODULE_WASM_MODNAME(mod)
# define __attribute__(x)
# define __restrict__
#endif
#include <MSFS/MSFS.h>
#include <MSFS/MSFS_CommBus.h>
#include <MSFS/Legacy/gauges.h>
#include <rapidjson/document.h>
#include <rapidjson/filereadstream.h>
#include "rapidjson/filewritestream.h"
#include <rapidjson/writer.h>
#include <SimConnect.h>
#include "types.h"
#include "pax.h"
#include "freighter.h"
#define MODULE_NAME "[KHOFMANN TFDi MD-11 Load Manager] "
#define COMM_BUS_LIVE_DATA_EVENT "khofmann_tfdi_md-11_load_manager_live_data"
#define COMM_BUS_UPDATE_TARGET_EVENT "khofmann_tfdi_md-11_load_manager_update_target"
void commBusUpdateTargetCallback(const char* args, unsigned int size, void* ctx);
int receiveData(const char* buf);
void sendData();
void CALLBACK MyDispatchProc(SIMCONNECT_RECV* pData, DWORD cbData, void* pContext);
void log(FILE* file, const char* format, void* optionalElement = NULL);
@@ -5,28 +5,16 @@ VisualStudioVersion = 17.13.36105.23
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "load-manager", "load-manager.vcxproj", "{A5468B35-BBBD-4C55-97ED-81BFE343B0E4}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "load-manager-cli", "load-manager-cli.vcxproj", "{992CAF4B-B3F6-4A86-A1C1-663686082C5E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|MSFS = Debug|MSFS
Debug|x64 = Debug|x64
Release|MSFS = Release|MSFS
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A5468B35-BBBD-4C55-97ED-81BFE343B0E4}.Debug|MSFS.ActiveCfg = Debug|MSFS
{A5468B35-BBBD-4C55-97ED-81BFE343B0E4}.Debug|MSFS.Build.0 = Debug|MSFS
{A5468B35-BBBD-4C55-97ED-81BFE343B0E4}.Debug|x64.ActiveCfg = Debug|x64
{A5468B35-BBBD-4C55-97ED-81BFE343B0E4}.Release|MSFS.ActiveCfg = Release|MSFS
{A5468B35-BBBD-4C55-97ED-81BFE343B0E4}.Release|MSFS.Build.0 = Release|MSFS
{A5468B35-BBBD-4C55-97ED-81BFE343B0E4}.Release|x64.ActiveCfg = Release|MSFS
{992CAF4B-B3F6-4A86-A1C1-663686082C5E}.Debug|MSFS.ActiveCfg = Debug|x64
{992CAF4B-B3F6-4A86-A1C1-663686082C5E}.Debug|x64.ActiveCfg = Debug|x64
{992CAF4B-B3F6-4A86-A1C1-663686082C5E}.Debug|x64.Build.0 = Debug|x64
{992CAF4B-B3F6-4A86-A1C1-663686082C5E}.Release|MSFS.ActiveCfg = Release|x64
{992CAF4B-B3F6-4A86-A1C1-663686082C5E}.Release|x64.ActiveCfg = Release|x64
{992CAF4B-B3F6-4A86-A1C1-663686082C5E}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
+23 -148
View File
@@ -5,18 +5,10 @@
<Configuration>Debug</Configuration>
<Platform>MSFS</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|MSFS">
<Configuration>Release</Configuration>
<Platform>MSFS</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
@@ -29,26 +21,13 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>MSFS</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>MSFS</PlatformToolset>
<PlatformToolset>MSFS2024</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|MSFS'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>MSFS</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>MSFS</PlatformToolset>
<PlatformToolset>MSFS2024</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
@@ -60,37 +39,20 @@
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|MSFS'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'">
<TargetExt>.wasm</TargetExt>
<GenerateManifest />
<LinkIncremental />
<IncludePath>$(MSFS_IncludePath)</IncludePath>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetExt>.wasm</TargetExt>
<GenerateManifest />
<LinkIncremental />
<IncludePath>$(MSFS_IncludePath)</IncludePath>
<IncludePath>$(MSFS_IncludePath);$(ProjectDir)include</IncludePath>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|MSFS'">
<TargetExt>.wasm</TargetExt>
<IncludePath>$(MSFS_IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetExt>.wasm</TargetExt>
<IncludePath>$(MSFS_IncludePath)</IncludePath>
<IncludePath>$(MSFS_IncludePath);$(ProjectDir)include</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|MSFS'">
<ClCompile>
@@ -114,6 +76,8 @@
</BasicRuntimeChecks>
<LanguageStandard>stdcpp14</LanguageStandard>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<AdditionalOptions>/clang:-Wall /clang:-Wextra /clang:-pedantic /clang:-Wno-missing-braces
/clang:-Wno-unused-const-variable /clang:-fstack-usage %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>
@@ -139,59 +103,8 @@
</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>
</SDLCheck>
<ConformanceMode>true</ConformanceMode>
<BufferSecurityCheck>false</BufferSecurityCheck>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
<PreprocessorDefinitions>__wasi__;_STRING_H_CPLUSPLUS_98_CONFORMANCE_;_WCHAR_H_CPLUSPLUS_98_CONFORMANCE_;_LIBCPP_HAS_NO_THREADS;_WINDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ShowIncludes>false</ShowIncludes>
<ExceptionHandling>false</ExceptionHandling>
<RuntimeTypeInfo>
</RuntimeTypeInfo>
<SupportJustMyCode>
</SupportJustMyCode>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<BasicRuntimeChecks>
</BasicRuntimeChecks>
<LanguageStandard>stdcpp14</LanguageStandard>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
</ClCompile>
<Link>
<SubSystem>
</SubSystem>
<AdditionalDependencies>
</AdditionalDependencies>
<IgnoreAllDefaultLibraries>
</IgnoreAllDefaultLibraries>
<NoEntryPoint>true</NoEntryPoint>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<RandomizedBaseAddress>
</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>
</ProgramDatabaseFile>
<ImportLibrary>
</ImportLibrary>
<ProfileGuidedDatabase>
</ProfileGuidedDatabase>
<AdditionalLibraryDirectories>
</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>
</Command>
<Command>cd $(SolutionDir)..\..\
Powershell.exe -File .\copy-debug.ps1</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|MSFS'">
@@ -211,6 +124,8 @@
<SupportJustMyCode>
</SupportJustMyCode>
<LanguageStandard>stdcpp14</LanguageStandard>
<AdditionalOptions>/clang:-Wall /clang:-Wextra /clang:-pedantic /clang:-Wno-missing-braces
/clang:-Wno-unused-const-variable /clang:-fstack-usage %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>
@@ -234,64 +149,24 @@
<AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
<PreprocessorDefinitions>__wasi__;__wasm32__;_STRING_H_CPLUSPLUS_98_CONFORMANCE_;_WCHAR_H_CPLUSPLUS_98_CONFORMANCE_;_LIBCPP_NO_EXCEPTIONS;_LIBCPP_HAS_NO_THREADS;_LIBCPP_STD_VER=14;_WINDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BufferSecurityCheck>false</BufferSecurityCheck>
<ExceptionHandling>false</ExceptionHandling>
<DebugInformationFormat>false</DebugInformationFormat>
<SupportJustMyCode>
</SupportJustMyCode>
<LanguageStandard>stdcpp14</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>
</SubSystem>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreAllDefaultLibraries>
</IgnoreAllDefaultLibraries>
<NoEntryPoint>true</NoEntryPoint>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
<RandomizedBaseAddress>
</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<GenerateDebugInformation>false</GenerateDebugInformation>
<ProgramDatabaseFile>
</ProgramDatabaseFile>
<ImportLibrary>
</ImportLibrary>
<ProfileGuidedDatabase>
</ProfileGuidedDatabase>
<AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>
</Command>
<Command>cd $(SolutionDir)..\..\
Powershell.exe -File .\copy-release.ps1</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="freighter.cpp" />
<ClCompile Include="load-manager.cpp" />
<ClCompile Include="pax.cpp" />
<ClCompile Include="src/freighter.cpp" />
<ClCompile Include="src/load-manager.cpp" />
<ClCompile Include="src/log.cpp" />
<ClCompile Include="src/pax.cpp" />
<ClCompile Include="src/fuel.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="freighter.h" />
<ClInclude Include="load-manager.h" />
<ClInclude Include="pax.h" />
<ClInclude Include="types.h" />
<ClInclude Include="include/freighter.h" />
<ClInclude Include="include/load-manager.h" />
<ClInclude Include="include/log.h" />
<ClInclude Include="include/pax.h" />
<ClInclude Include="include/shared.h" />
<ClInclude Include="include/fuel.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
@@ -1,27 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="load-manager.cpp">
<ClCompile Include="src/freighter.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="pax.cpp">
<ClCompile Include="src/load-manager.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="freighter.cpp">
<ClCompile Include="src/log.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src/pax.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src/fuel.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="pax.h">
<ClInclude Include="include/freighter.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="load-manager.h">
<ClInclude Include="include/load-manager.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="types.h">
<ClInclude Include="include/log.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="freighter.h">
<ClInclude Include="include/pax.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include/shared.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include/fuel.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
@@ -1,985 +0,0 @@
 0>Property reassignment: $(MSBuildExtensionsPath)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild" (previous value: "C:\Program Files (x86)\MSBuild") at
Property reassignment: $(MSBuildExtensionsPath32)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild" (previous value: "C:\Program Files (x86)\MSBuild") at
Search paths being used for $(MSBuildExtensionsPath) are C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild;$(MSBuildProgramFiles32)\MSBuild
Trying to import C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\$(MSBuildToolsVersion)\Microsoft.Common.props using extensions path C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild
Property reassignment: $(MSBuildProjectExtensionsPath)="C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\obj\" (previous value: "obj\") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Microsoft.Common.props (60,5)
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Microsoft.Common.props(84,119): message : Property 'MSBuildUserExtensionsPath' with value 'C:\Users\llego\AppData\Local\Microsoft\MSBuild' expanded from the environment.
Search paths being used for $(MSBuildExtensionsPath) are C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild;$(MSBuildProgramFiles32)\MSBuild
Trying to import C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportBefore\* using extensions path C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Imports\Microsoft.Common.props\ImportBefore\Microsoft.NuGet.ImportBefore.props(14,5): message : Property 'VisualStudioVersion' with value '17.0' expanded from the environment.
The "Configuration" property is a global property, and cannot be modified.
Search paths being used for $(MSBuildExtensionsPath) are C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild;$(MSBuildProgramFiles32)\MSBuild
Search paths being used for $(MSBuildExtensionsPath) are C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild;$(MSBuildProgramFiles32)\MSBuild
The "Configuration" property is a global property, and cannot be modified.
The "LangID" property is a global property, and cannot be modified.
The "SolutionDir" property is a global property, and cannot be modified.
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Default.props(218,5): message : Property 'LOCALAPPDATA' with value 'C:\Users\llego\AppData\Local' expanded from the environment.
Property reassignment: $(UseDebugLibraries)="true" (previous value: "false") at C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj (37,5)
Property reassignment: $(CharacterSet)="MultiByte" (previous value: "NotSet") at C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj (39,5)
Assembly loaded during Evaluation: Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (location: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Microsoft.Build.Utilities.Core.dll, MVID: 31a80c7f-4ffa-4599-b4dd-076487b86c14, AppDomain: [Default])
Property reassignment: $(_RelativeVCTargetsPath_15)="Common7\IDE\VC\VCTargets\" (previous value: "Msbuild\Microsoft\VC\v150\") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Redirect.15.props (31,5)
Property reassignment: $(_RelativeToolsetFiles_15)="Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\MSFS\Toolset.props;Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\MSFS\Toolset.targets;Common7\IDE\VC\VCTargets\Platforms\x64\Platform.props;Common7\IDE\VC\VCTargets\Platforms\x64\Platform.targets" (previous value: "Msbuild\Microsoft\VC\v150\Platforms\x64\PlatformToolsets\MSFS\Toolset.props;Msbuild\Microsoft\VC\v150\Platforms\x64\PlatformToolsets\MSFS\Toolset.targets;Msbuild\Microsoft\VC\v150\Platforms\x64\Platform.props;Msbuild\Microsoft\VC\v150\Platforms\x64\Platform.targets") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Redirect.15.props (33,5)
Property reassignment: $(_RelativePlatformDefaultProps)="Platforms\x64\\Microsoft.Cpp.x64.default.props" (previous value: "Platforms\x64\Platform.Default.props") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Redirect.11.props (47,5)
Property reassignment: $(_RelativePlatformProps)="Platforms\x64\Microsoft.Cpp.x64.props" (previous value: "Platforms\x64\Platform.props") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Redirect.11.props (48,5)
Property reassignment: $(_RelativePlatformTargets)="Platforms\x64\Microsoft.Cpp.x64.targets" (previous value: "Platforms\x64\Platform.targets") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Redirect.11.props (49,5)
Property reassignment: $(_RelativeToolsetProps)="Platforms\x64\PlatformToolsets\MSFS\Microsoft.Cpp.x64.MSFS.props" (previous value: "Platforms\x64\PlatformToolsets\MSFS\Toolset.props") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Redirect.11.props (50,5)
Property reassignment: $(_RelativeToolsetTargets)="Platforms\x64\PlatformToolsets\MSFS\Microsoft.Cpp.x64.MSFS.targets" (previous value: "Platforms\x64\PlatformToolsets\MSFS\Toolset.targets") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Redirect.11.props (51,5)
Property reassignment: $(_RelativeToolsetFiles)="Platforms\x64\PlatformToolsets\MSFS\Microsoft.Cpp.x64.MSFS.props;Platforms\x64\PlatformToolsets\MSFS\Microsoft.Cpp.x64.MSFS.targets;Platforms\x64\Microsoft.Cpp.x64.props;Platforms\x64\Microsoft.Cpp.x64.targets" (previous value: "Platforms\x64\PlatformToolsets\MSFS\Toolset.props;Platforms\x64\PlatformToolsets\MSFS\Toolset.targets;Platforms\x64\Platform.props;Platforms\x64\Platform.targets") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Redirect.11.props (53,5)
Property reassignment: $(WindowsSdkDir_10)="C:\Program Files (x86)\Windows Kits\10\" (previous value: "") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.WindowsSDK.props (18,5)
Property reassignment: $(NETFXKitsDir)="C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\" (previous value: "") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.WindowsSDK.props (41,5)
Property reassignment: $(NETFXSDKDir)="C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\" (previous value: "") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.WindowsSDK.props (44,5)
Property reassignment: $(WindowsSDK_ExecutablePath_x86)="C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x86;;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools" (previous value: "C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x86;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.WindowsSDK.props (209,5)
Property reassignment: $(WindowsSDK_ExecutablePath_x64)="C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64;;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools\x64" (previous value: "C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.WindowsSDK.props (210,5)
Property reassignment: $(TargetExt)=".exe" (previous value: "") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (28,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (88,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (89,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (90,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (91,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (92,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (93,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (94,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (95,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;;;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;;;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (96,5)
Property reassignment: $(VC_ExecutablePath_Loc)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;;;;;;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostArm64\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\arm\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\1033;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x86\1033;;;;;;;;;;;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (97,5)
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props(147,5): message : Property 'COMPUTERNAME' with value 'FSXDOSE' expanded from the environment.
Property reassignment: $(RemoteDebuggerDeployDebugCppRuntime)="true" (previous value: "false") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (153,5)
Property reassignment: $(MultiProcMaxCount)="0" (previous value: "") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Common.props (214,5)
Property reassignment: $(MsvcAnalysisToolsPath)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Analysis.props (29,5)
Property reassignment: $(MsvcAnalysisPluginPath)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Analysis.props (33,5)
Property reassignment: $(EspXtensions)="EnumIndex.dll;CppCoreCheck.dll;" (previous value: "CppCoreCheck.dll;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CodeAnalysis.Extensions.props (21,5)
Property reassignment: $(EspXtensions)="HResultCheck.dll;EnumIndex.dll;CppCoreCheck.dll;" (previous value: "EnumIndex.dll;CppCoreCheck.dll;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CodeAnalysis.Extensions.props (24,5)
Property reassignment: $(EspXtensions)="VariantClear.dll;HResultCheck.dll;EnumIndex.dll;CppCoreCheck.dll;" (previous value: "HResultCheck.dll;EnumIndex.dll;CppCoreCheck.dll;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CodeAnalysis.Extensions.props (27,5)
Property reassignment: $(ConcurrencyCheckPath)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\ConcurrencyCheck.dll" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86\ConcurrencyCheck.dll") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CodeAnalysis.Extensions.props (33,5)
Property reassignment: $(EspXtensions)="ConcurrencyCheck.dll;VariantClear.dll;HResultCheck.dll;EnumIndex.dll;CppCoreCheck.dll;" (previous value: "VariantClear.dll;HResultCheck.dll;EnumIndex.dll;CppCoreCheck.dll;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CodeAnalysis.Extensions.props (34,5)
Property reassignment: $(_PropertySheetDisplayName)="Multi-byte Character Support" (previous value: "Core Windows Libraries") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.MultiByteCharSupport.props (15,5)
Property reassignment: $(_PropertySheetDisplayName)="Application" (previous value: "Multi-byte Character Support") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Application.props (15,5)
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.MSVC.Toolset.Common.props(55,5): message : Property 'Path' with value 'c:\program files\imagemagick-7.0.10-q8;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\windows\system32\openssh\;c:\program files\nvidia corporation\nvidia nvdlisr;c:\windows\system32\config\systemprofile\appdata\local\microsoft\windowsapps;c:\program files\git\cmd;c:\program files\microsoft sql server\130\toolsn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Toolsn\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Toolsn\;C:\Program Files\dotnet;C:\Program Files\dotnet\;C:\Program Files (x86)\Meld\;C:\Program Files\Git\cmd;C:\Users\llego\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\PuTTY\;C:\Users\llego\scoop\shims;C:\Users\llego\AppData\Local\pnpm;C:\Users\llego\AppData\Local\Microsoft\WindowsApps;C:\Users\llego\.dotnet\tools;C:\Users\llego\AppData\Local\Programs\Microsoft VS CodeC:\Program Files\IPFS Desktop\resources\app.asar.unpacked\src\ipfs-on-path\scripts-win;C:\Users\llego\.dotnet\tools;C:\Users\llego\AppData\Local\Microsoft\WindowsApps;C:\texlive\2023\windows;C:\Users\llego\AppData\Roaming\npm;C:\Users\llego\AppData\Local\Pandoc\;C:\texlive\2025\bin\windows' expanded from the environment.
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.MSVC.Toolset.Common.props(56,5): message : Property 'SystemRoot' with value 'C:\WINDOWS' expanded from the environment.
Property reassignment: $(TargetExt)=".wasm" (previous value: ".exe") at C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj (81,5)
Property reassignment: $(GenerateManifest)="" (previous value: "true") at C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj (82,5)
Property reassignment: $(LinkIncremental)="" (previous value: "true") at C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj (83,5)
Property reassignment: $(IncludePath)="" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\include;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\VS\include;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt;;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um;") at C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj (84,5)
The "SolutionExt" property is a global property, and cannot be modified.
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Current.targets(45,27): message : Property 'PROCESSOR_ARCHITECTURE' with value 'AMD64' expanded from the environment.
Property reassignment: $(ExtensionsToDeleteOnClean)="*.cdf;*.cache;*.obj;*.obj.enc;*.ilk;*.ipdb;*.iobj;*.resources;*.tlb;*.tli;*.tlh;*.tmp;*.rsp;*.pgc;*.pgd;*.meta;*.tlog;*.manifest;*.res;*.pch;*.exp;*.idb;*.rep;*.xdc;*.pdb;*_manifest.rc;*.bsc;*.sbr;*.xml;*.metagen;*.bi;C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\load-manager.wasm.manifest;C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\load-manager.tlb;C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\load-manager.pdb;C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\load-manager.wasm;C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\load-manager.bsc;C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\load-manager.ilk;C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\load-manager.wasm.intermediate.manifest;load-manager\x64\Debug\load-manager.vcxproj.FileListAbsolute.txt" (previous value: "*.cdf;*.cache;*.obj;*.obj.enc;*.ilk;*.ipdb;*.iobj;*.resources;*.tlb;*.tli;*.tlh;*.tmp;*.rsp;*.pgc;*.pgd;*.meta;*.tlog;*.manifest;*.res;*.pch;*.exp;*.idb;*.rep;*.xdc;*.pdb;*_manifest.rc;*.bsc;*.sbr;*.xml;*.metagen;*.bi") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets (40,5)
Property reassignment: $(DebugType)="none" (previous value: "") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets (32,5)
Search paths being used for $(MSBuildExtensionsPath) are C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild;$(MSBuildProgramFiles32)\MSBuild
Search paths being used for $(MSBuildExtensionsPath) are C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild;$(MSBuildProgramFiles32)\MSBuild
Trying to import C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportBefore\* using extensions path C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild
The "Configuration" property is a global property, and cannot be modified.
Property reassignment: $(_DocumentationFileProduced)="false" (previous value: "true") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (185,5)
The "DevEnvDir" property is a global property, and cannot be modified.
The "SolutionName" property is a global property, and cannot be modified.
The "SolutionFileName" property is a global property, and cannot be modified.
The "SolutionPath" property is a global property, and cannot be modified.
The "SolutionDir" property is a global property, and cannot be modified.
The "SolutionExt" property is a global property, and cannot be modified.
Property reassignment: $(AutoUnifyAssemblyReferences)="false" (previous value: "true") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (369,5)
Property reassignment: $(MSBuildCopyMarkerName)="load-man.74C1EDB1" (previous value: "load-manager.vcxproj") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (392,5)
Property reassignment: $(MSBuildCopyMarkerName)="load-man.74C1EDB1.Up2Date" (previous value: "load-man.74C1EDB1") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (393,5)
Property reassignment: $(ProcessorArchitecture)="amd64" (previous value: "x64") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (528,5)
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(562,42): message : Property 'MSBuildExtensionsPath64' with value 'C:\Program Files\MSBuild' expanded from the environment.
Property reassignment: $(DelaySign)="" (previous value: "false") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (580,5)
Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;" (previous value: "{CandidateAssemblyFiles}") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (649,5)
Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem}" (previous value: "{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (650,5)
Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory}" (previous value: "{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem}") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (651,5)
Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};" (previous value: "{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory}") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (652,5)
Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};;{Registry:Software\Microsoft\,,AssemblyFoldersEx}" (previous value: "{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (653,5)
Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};;{Registry:Software\Microsoft\,,AssemblyFoldersEx};{AssemblyFolders}" (previous value: "{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};;{Registry:Software\Microsoft\,,AssemblyFoldersEx}") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (654,5)
Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};;{Registry:Software\Microsoft\,,AssemblyFoldersEx};{AssemblyFolders};{GAC}" (previous value: "{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};;{Registry:Software\Microsoft\,,AssemblyFoldersEx};{AssemblyFolders}") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (655,5)
Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};;{Registry:Software\Microsoft\,,AssemblyFoldersEx};{AssemblyFolders};{GAC};{RawFileName}" (previous value: "{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};;{Registry:Software\Microsoft\,,AssemblyFoldersEx};{AssemblyFolders};{GAC}") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (656,5)
Property reassignment: $(AssemblySearchPaths)="{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};;{Registry:Software\Microsoft\,,AssemblyFoldersEx};{AssemblyFolders};{GAC};{RawFileName};C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\" (previous value: "{CandidateAssemblyFiles};C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;{HintPathFromItem};{TargetFrameworkDirectory};{AssemblyFoldersFromConfig:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\AssemblyFolders.config,};;{Registry:Software\Microsoft\,,AssemblyFoldersEx};{AssemblyFolders};{GAC};{RawFileName}") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (657,5)
Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Auto" (previous value: "") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (3917,5)
Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Off" (previous value: "Auto") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (3918,5)
Property reassignment: $(_TargetsThatPrepareProjectReferences)="
AssignProjectConfiguration;
_SplitProjectReferencesByFileExistence
" (previous value: "_SplitProjectReferencesByFileExistence") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (5129,5)
Property reassignment: $(_CodeAnalysisTreatWarningsAsErrors)="false" (previous value: "") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\CodeAnalysis\Microsoft.CodeAnalysis.targets (125,5)
Property reassignment: $(CAExcludePath)="C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um;" (previous value: "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\CodeAnalysis\Microsoft.CodeAnalysis.targets (235,5)
Property reassignment: $(CAExcludePath)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um;" (previous value: "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\CodeAnalysis\Microsoft.CodeAnalysis.targets (236,5)
Property reassignment: $(CAExcludePath)="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\include;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um;" (previous value: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um;") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\CodeAnalysis\Microsoft.CodeAnalysis.targets (237,5)
Property reassignment: $(PrepareForBuildDependsOn)=";GetFrameworkPaths;GetReferenceAssemblyPaths;AssignLinkMetadata;SetCABuildNativeEnvironmentVariables" (previous value: ";GetFrameworkPaths;GetReferenceAssemblyPaths;AssignLinkMetadata") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\CodeAnalysis\Microsoft.CodeAnalysis.targets (240,5)
Property reassignment: $(PrepareResourcesDependsOn)="
XamlMarkupCompilePass1;
XamlMarkupCompilePass2;
;
PrepareResourceNames;
ResGen;
CompileLicxFiles
" (previous value: "
;
PrepareResourceNames;
ResGen;
CompileLicxFiles
") at C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets (35,5)
Property reassignment: $(ResolveReferencesDependsOn)="
BeforeResolveReferences;
AssignProjectConfiguration;
ResolveProjectReferences;
FindInvalidProjectReferences;
ResolveNativeReferences;
ResolveAssemblyReferences;
GenerateBindingRedirects;
GenerateBindingRedirectsUpdateAppConfig;
ResolveComReferences;
AfterResolveReferences
;
ResolveTestReferences
" (previous value: "
BeforeResolveReferences;
AssignProjectConfiguration;
ResolveProjectReferences;
FindInvalidProjectReferences;
ResolveNativeReferences;
ResolveAssemblyReferences;
GenerateBindingRedirects;
GenerateBindingRedirectsUpdateAppConfig;
ResolveComReferences;
AfterResolveReferences
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\TeamTest\Microsoft.TeamTest.targets (4,5)
Search paths being used for $(MSBuildExtensionsPath) are C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild;$(MSBuildProgramFiles32)\MSBuild
Trying to import C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportAfter\* using extensions path C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild
Property reassignment: $(ProjectLockFile)="obj\project.assets.json" (previous value: "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\obj\project.assets.json") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\NuGet\17.0\Microsoft.NuGet.targets (74,5)
Property reassignment: $(ResolveAssemblyReferencesDependsOn)="
ResolveProjectReferences;
FindInvalidProjectReferences;
GetFrameworkPaths;
GetReferenceAssemblyPaths;
PrepareForBuild;
ResolveSDKReferences;
ExpandSDKReferences;
;ResolveNuGetPackageAssets" (previous value: "
ResolveProjectReferences;
FindInvalidProjectReferences;
GetFrameworkPaths;
GetReferenceAssemblyPaths;
PrepareForBuild;
ResolveSDKReferences;
ExpandSDKReferences;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\NuGet\17.0\Microsoft.NuGet.targets (185,5)
Property reassignment: $(PrepareResourcesDependsOn)="ResolveNuGetPackageAssets;
XamlMarkupCompilePass1;
XamlMarkupCompilePass2;
;
PrepareResourceNames;
ResGen;
CompileLicxFiles
" (previous value: "
XamlMarkupCompilePass1;
XamlMarkupCompilePass2;
;
PrepareResourceNames;
ResGen;
CompileLicxFiles
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\NuGet\17.0\Microsoft.NuGet.targets (186,5)
Property reassignment: $(ResolveAssemblyReferencesDependsOn)="
ResolveProjectReferences;
FindInvalidProjectReferences;
GetFrameworkPaths;
GetReferenceAssemblyPaths;
PrepareForBuild;
ResolveSDKReferences;
ExpandSDKReferences;
;ResolveNuGetPackageAssets;
FakesGenerateBeforeBuild;
" (previous value: "
ResolveProjectReferences;
FindInvalidProjectReferences;
GetFrameworkPaths;
GetReferenceAssemblyPaths;
PrepareForBuild;
ResolveSDKReferences;
ExpandSDKReferences;
;ResolveNuGetPackageAssets") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\Fakes\Microsoft.QualityTools.Testing.Fakes.targets (68,5)
Search paths being used for $(MSBuildExtensionsPath) are C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild;$(MSBuildProgramFiles32)\MSBuild
Search paths being used for $(MSBuildExtensionsPath) are C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild;$(MSBuildProgramFiles32)\MSBuild
Trying to import C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\WebTools.Aspire\Microsoft.WebTools.Aspire.targets using extensions path C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild
Property reassignment: $(JsonSchemaCombinedFilePath)="C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager\x64\Debug\CombinedComponentSchema.json" (previous value: "load-manager\x64\Debug\\CombinedComponentSchema.json") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\WebTools.Aspire\Microsoft.WebTools.Aspire.targets (25,5)
Property reassignment: $(AppSettingsJsonSchemaCombinedFilePath)="C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager\x64\Debug\AppSettingsSchema.json" (previous value: "load-manager\x64\Debug\\AppSettingsSchema.json") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\WebTools.Aspire\Microsoft.WebTools.Aspire.targets (27,5)
Property reassignment: $(DebugType)="" (previous value: "none") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets (39,5)
Property reassignment: $(BuildDependsOn)="
_PrepareForBuild;
ResolveReferences;
PrepareForBuild;
InitializeBuildStatus;
BuildGenerateSources;
BuildCompile;
BuildLink;
;
AfterBuild;
IncrementalClean;
TlogCleanup;
FinalizeBuildStatus;
" (previous value: "
BeforeBuild;
CoreBuild;
AfterBuild
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets (122,5)
Property reassignment: $(RebuildDependsOn)="
_PrepareForRebuild;
BeforeRebuild;
Clean;
Build;
AfterRebuild;
;
" (previous value: "
BeforeRebuild;
Clean;
Build;
AfterRebuild;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets (131,5)
Property reassignment: $(CleanDependsOn)="
_PrepareForClean;
BeforeClean;
UnmanagedUnregistration;
CoreClean;
CleanReferencedProjects;
CleanPublishFolder;
AfterClean
;
" (previous value: "
BeforeClean;
UnmanagedUnregistration;
CoreClean;
CleanReferencedProjects;
CleanPublishFolder;
AfterClean
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets (136,5)
Property reassignment: $(BeforeBuildGenerateSourcesTargets)="
;
BeforeBuildGenerateSources;
;
" (previous value: "
;
BeforeBuildGenerateSources;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (60,5)
Property reassignment: $(AfterBuildGenerateSourcesTargets)="
;
AfterBuildGenerateSources;
;
AfterBuildGenerateSourcesEvent;
" (previous value: "
;
AfterBuildGenerateSources;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (71,5)
Property reassignment: $(BuildGenerateSourcesAction)="_BuildGenerateSourcesAction" (previous value: "Build") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (140,5)
Property reassignment: $(BuildCompileAction)="_BuildCompileAction" (previous value: "Build") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (141,5)
Property reassignment: $(BuildLinkAction)="_BuildLinkAction" (previous value: "Build") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (142,5)
Property reassignment: $(DetermineProjectTypeTargets)="_PrepareForReferenceResolution;
;
AddExternalIncludDirectoriesToPaths
" (previous value: "
;
AddExternalIncludDirectoriesToPaths
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (249,5)
Property reassignment: $(ResolveReferencesDependsOn)="_PrepareForReferenceResolution;ComputeCrtSDKReference;
BeforeResolveReferences;
AssignProjectConfiguration;
ResolveProjectReferences;
FindInvalidProjectReferences;
ResolveNativeReferences;
ResolveAssemblyReferences;
GenerateBindingRedirects;
GenerateBindingRedirectsUpdateAppConfig;
ResolveComReferences;
AfterResolveReferences
;
ResolveTestReferences
" (previous value: "
BeforeResolveReferences;
AssignProjectConfiguration;
ResolveProjectReferences;
FindInvalidProjectReferences;
ResolveNativeReferences;
ResolveAssemblyReferences;
GenerateBindingRedirects;
GenerateBindingRedirectsUpdateAppConfig;
ResolveComReferences;
AfterResolveReferences
;
ResolveTestReferences
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (311,5)
Property reassignment: $(ResolveAssemblyReferencesDependsOn)="_PrepareForReferenceResolution;
ResolveProjectReferences;
FindInvalidProjectReferences;
GetFrameworkPaths;
GetReferenceAssemblyPaths;
PrepareForBuild;
ResolveSDKReferences;
ExpandSDKReferences;
;ResolveNuGetPackageAssets;
FakesGenerateBeforeBuild;
" (previous value: "
ResolveProjectReferences;
FindInvalidProjectReferences;
GetFrameworkPaths;
GetReferenceAssemblyPaths;
PrepareForBuild;
ResolveSDKReferences;
ExpandSDKReferences;
;ResolveNuGetPackageAssets;
FakesGenerateBeforeBuild;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (312,5)
Property reassignment: $(ResolveSDKReferencesDependsOn)="_PrepareForReferenceResolution;ComputeCrtSDKReference;
GetInstalledSDKLocations
" (previous value: "
GetInstalledSDKLocations
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (313,5)
Property reassignment: $(ComputeCompileInputsTargets)="
;
GenerateTargetFrameworkMonikerAttribute;
;
ComputeMIDLGeneratedCompileInputs;
" (previous value: "
;
GenerateTargetFrameworkMonikerAttribute;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (642,5)
Property reassignment: $(ComputeLinkInputsTargets)="
;
ComputeRCGeneratedLinkInputs;
;
ComputeManifestGeneratedLinkerInputs;
" (previous value: "
;
ComputeRCGeneratedLinkInputs;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (955,5)
Property reassignment: $(ComputeCompileInputsTargets)="
;
GenerateTargetFrameworkMonikerAttribute;
;
ComputeMIDLGeneratedCompileInputs;
;
ComputeCLInputPDBName;
ComputeReferenceCLInput;
WarnCompileDuplicatedFilename
" (previous value: "
;
GenerateTargetFrameworkMonikerAttribute;
;
ComputeMIDLGeneratedCompileInputs;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1152,5)
Property reassignment: $(ComputeLinkInputsTargets)="
;
ComputeRCGeneratedLinkInputs;
;
ComputeManifestGeneratedLinkerInputs;
;
ComputeCustomBuildOutput;
" (previous value: "
;
ComputeRCGeneratedLinkInputs;
;
ComputeManifestGeneratedLinkerInputs;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1204,5)
Property reassignment: $(ComputeLibInputsTargets)="
;
ComputeRCGeneratedLibInputs;
;
ComputeCustomBuildOutput;
" (previous value: "
;
ComputeRCGeneratedLibInputs;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1211,5)
Property reassignment: $(ComputeImpLibInputsTargets)="
;
ComputeRCGeneratedLibInputs;
;
ComputeRCGeneratedImpLibInputs;
;
ComputeCustomBuildOutput;
" (previous value: "
;
ComputeRCGeneratedLibInputs;
;
ComputeRCGeneratedImpLibInputs;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1218,5)
Property reassignment: $(ComputeLinkInputsTargets)="
;
ComputeRCGeneratedLinkInputs;
;
ComputeManifestGeneratedLinkerInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLinkInputs;
" (previous value: "
;
ComputeRCGeneratedLinkInputs;
;
ComputeManifestGeneratedLinkerInputs;
;
ComputeCustomBuildOutput;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1279,5)
Property reassignment: $(ComputeLibInputsTargets)="
;
ComputeRCGeneratedLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLibInputs;
" (previous value: "
;
ComputeRCGeneratedLibInputs;
;
ComputeCustomBuildOutput;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1294,5)
Property reassignment: $(ComputeImpLibInputsTargets)="
;
ComputeRCGeneratedLibInputs;
;
ComputeRCGeneratedImpLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedImpLibInputs;
" (previous value: "
;
ComputeRCGeneratedLibInputs;
;
ComputeRCGeneratedImpLibInputs;
;
ComputeCustomBuildOutput;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1309,5)
Property reassignment: $(ComputeLinkInputsTargets)="
;
ComputeRCGeneratedLinkInputs;
;
ComputeManifestGeneratedLinkerInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLinkInputs;
;
ComputeLinkInputsFromProject;
" (previous value: "
;
ComputeRCGeneratedLinkInputs;
;
ComputeManifestGeneratedLinkerInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLinkInputs;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1340,5)
Property reassignment: $(ComputeLibInputsTargets)="
;
ComputeRCGeneratedLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLibInputs;
;
ComputeLibInputsFromProject;
" (previous value: "
;
ComputeRCGeneratedLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLibInputs;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1358,5)
Property reassignment: $(ComputeImpLibInputsTargets)="
;
ComputeRCGeneratedLibInputs;
;
ComputeRCGeneratedImpLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedImpLibInputs;
;
ComputeImpLibInputsFromProject;
" (previous value: "
;
ComputeRCGeneratedLibInputs;
;
ComputeRCGeneratedImpLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedImpLibInputs;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1376,5)
Property reassignment: $(ComputeLinkInputsTargets)="
;
ComputeRCGeneratedLinkInputs;
;
ComputeManifestGeneratedLinkerInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLinkInputs;
;
ComputeLinkInputsFromProject;
;
ComputeReferenceLinkInputs;
" (previous value: "
;
ComputeRCGeneratedLinkInputs;
;
ComputeManifestGeneratedLinkerInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLinkInputs;
;
ComputeLinkInputsFromProject;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1500,5)
Property reassignment: $(ComputeLibInputsTargets)="
;
ComputeRCGeneratedLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLibInputs;
;
ComputeLibInputsFromProject;
;
ComputeReferenceLibInputs;
" (previous value: "
;
ComputeRCGeneratedLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLibInputs;
;
ComputeLibInputsFromProject;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1538,5)
Property reassignment: $(ComputeLibInputsTargets)="
ComputeLibAdditionalOptions;
;
ComputeRCGeneratedLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLibInputs;
;
ComputeLibInputsFromProject;
;
ComputeReferenceLibInputs;
" (previous value: "
;
ComputeRCGeneratedLibInputs;
;
ComputeCustomBuildOutput;
;
ComputeCLGeneratedLibInputs;
;
ComputeLibInputsFromProject;
;
ComputeReferenceLibInputs;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1595,5)
Property reassignment: $(GetProjectInfoForReferenceDependsOn)="
;
AddPublicIncludeDirectoriesToProjectsInfoForReference;
;
AddPublicBMIsToProjectsInfoForReference;
AddDeployRecipeFileToProjectsInfoForReference;
AddLibrariesToProjectsInfoForReference;
" (previous value: "
;
AddPublicIncludeDirectoriesToProjectsInfoForReference;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (1783,5)
Property reassignment: $(DocumentationProjectOutputGroupDependsOn)="ResolvedXDCMake;ComputeCLCompileGeneratedXDCFiles" (previous value: "") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (2183,5)
Property reassignment: $(ContentFilesProjectOutputGroupDependsOn)="PrepareForBuild;AssignTargetPaths;PrepareForBuild;AssignTargetPaths;MakeDirsForFxc" (previous value: "PrepareForBuild;AssignTargetPaths") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets (2249,5)
Property reassignment: $(ComputeCompileInputsTargets)="
;
GenerateTargetFrameworkMonikerAttribute;
;
ComputeMIDLGeneratedCompileInputs;
;
ComputeCLInputPDBName;
ComputeReferenceCLInput;
WarnCompileDuplicatedFilename
;
;
ComputeStdModulesCompileInputs;
FixupCLCompileOptions;
SetModuleDependencies;
" (previous value: "
;
GenerateTargetFrameworkMonikerAttribute;
;
ComputeMIDLGeneratedCompileInputs;
;
ComputeCLInputPDBName;
ComputeReferenceCLInput;
WarnCompileDuplicatedFilename
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets (315,5)
Property reassignment: $(BuildingProject)="true" (previous value: "false") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets (2103,5)
Property reassignment: $(ContentFilesProjectOutputGroupDependsOn)="PrepareForBuild;AssignTargetPaths;PrepareForBuild;AssignTargetPaths;MakeDirsForFxc;_CreateCopyFileItems;" (previous value: "PrepareForBuild;AssignTargetPaths;PrepareForBuild;AssignTargetPaths;MakeDirsForFxc") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets (2649,5)
Property reassignment: $(PrepareForBuildDependsOn)="_CheckWindowsSDKInstalled;;GetFrameworkPaths;GetReferenceAssemblyPaths;AssignLinkMetadata;SetCABuildNativeEnvironmentVariables" (previous value: ";GetFrameworkPaths;GetReferenceAssemblyPaths;AssignLinkMetadata;SetCABuildNativeEnvironmentVariables") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.WindowsSDK.targets (16,5)
Property reassignment: $(CleanDependsOn)="
_PrepareForClean;
BeforeClean;
UnmanagedUnregistration;
CoreClean;
CleanReferencedProjects;
CleanPublishFolder;
AfterClean
;
;
CppClean
" (previous value: "
_PrepareForClean;
BeforeClean;
UnmanagedUnregistration;
CoreClean;
CleanReferencedProjects;
CleanPublishFolder;
AfterClean
;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppClean.targets (22,5)
Property reassignment: $(CppCleanDependsOn)="
BeforeCppClean;
;
CoreCppClean;
AfterCppClean;
;PGInstrumentedClean" (previous value: "
BeforeCppClean;
;
CoreCppClean;
AfterCppClean;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppClean.targets (92,5)
Property reassignment: $(BuildDependsOn)="SetTelemetryEnvironmentVariables;
_PrepareForBuild;
ResolveReferences;
PrepareForBuild;
InitializeBuildStatus;
BuildGenerateSources;
BuildCompile;
BuildLink;
;
AfterBuild;
IncrementalClean;
TlogCleanup;
FinalizeBuildStatus;
" (previous value: "
_PrepareForBuild;
ResolveReferences;
PrepareForBuild;
InitializeBuildStatus;
BuildGenerateSources;
BuildCompile;
BuildLink;
;
AfterBuild;
IncrementalClean;
TlogCleanup;
FinalizeBuildStatus;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.DesignTime.targets (540,5)
Property reassignment: $(RebuildDependsOn)="SetTelemetryEnvironmentVariables;
_PrepareForRebuild;
BeforeRebuild;
Clean;
Build;
AfterRebuild;
;
" (previous value: "
_PrepareForRebuild;
BeforeRebuild;
Clean;
Build;
AfterRebuild;
;
") at C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.DesignTime.targets (541,5)
Assembly loaded during Evaluation: System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (location: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\System.Collections.Immutable.dll, MVID: 8448ed54-b238-40d8-a464-bff29b2d85b9, AppDomain: [Default])
Overriding target "GenerateTargetFrameworkMonikerAttribute" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "GenerateTargetFrameworkMonikerAttribute" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets".
Overriding target "Build" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "Build" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets".
Overriding target "Rebuild" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "Rebuild" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets".
Overriding target "AfterBuild" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "AfterBuild" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets".
Overriding target "PrepareForBuild" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "PrepareForBuild" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "GetTargetPath" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "GetTargetPath" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "ComputeIntermediateSatelliteAssemblies" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "ComputeIntermediateSatelliteAssemblies" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "ClCompile" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "ClCompile" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "ResourceCompile" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "ResourceCompile" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "Lib" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "Lib" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "Link" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "Link" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "AllProjectOutputGroups" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "AllProjectOutputGroups" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "BuiltProjectOutputGroup" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "BuiltProjectOutputGroup" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "DebugSymbolsProjectOutputGroup" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "DebugSymbolsProjectOutputGroup" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "DocumentationProjectOutputGroup" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "DocumentationProjectOutputGroup" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "SourceFilesProjectOutputGroup" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "SourceFilesProjectOutputGroup" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "ContentFilesProjectOutputGroup" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "ContentFilesProjectOutputGroup" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "AllProjectOutputGroupsDependencies" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "AllProjectOutputGroupsDependencies" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "BuiltProjectOutputGroupDependencies" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "BuiltProjectOutputGroupDependencies" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "DebugSymbolsProjectOutputGroupDependencies" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "DebugSymbolsProjectOutputGroupDependencies" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "DocumentationProjectOutputGroupDependencies" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "DocumentationProjectOutputGroupDependencies" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets".
Overriding target "PreBuildEvent" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "PreBuildEvent" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "PostBuildEvent" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "PostBuildEvent" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "ClCompile" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "ClCompile" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "Link" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "Link" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "Lib" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "Lib" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "ImpLib" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "ImpLib" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "Midl" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "Midl" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "ResourceCompile" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "ResourceCompile" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "BeforeResGen" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "BeforeResGen" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "ResGen" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "ResGen" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "GenerateSatelliteAssemblies" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "GenerateSatelliteAssemblies" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "Manifest" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "Manifest" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "XdcMake" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "XdcMake" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "BscMake" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" with target "BscMake" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "ComputeMetaGenInputs" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.MetaGen.targets" with target "ComputeMetaGenInputs" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "GetNativeManifest" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "GetNativeManifest" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets".
Overriding target "GetTargetPathWithTargetPlatformMoniker" in project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" with target "GetTargetPathWithTargetPlatformMoniker" from project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.DesignTime.targets".
The target "CompileDesignTime" listed in a BeforeTargets attribute at "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\WebTools.Aspire\Microsoft.WebTools.Aspire.targets (44,11)" does not exist in the project, and will be ignored.
The target "CompileDesignTime" listed in a BeforeTargets attribute at "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\WebTools.Aspire\Microsoft.WebTools.Aspire.targets (57,11)" does not exist in the project, and will be ignored.
Build started 09.06.2025 22:25:05.
Logging verbosity is set to: Detailed. 1>Project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" on node 2 (Build target(s)).
1>Target "EnableIntermediateOutputPathMismatchWarning" skipped, due to false condition; ('$(RestoreProjectStyle)' == 'PackageReference') was evaluated as ('' == 'PackageReference').
1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "SetTelemetryEnvironmentVariables" depends on it):
Task "MSBuildInternalMessage" skipped, due to false condition; ('$(_InvalidConfigurationMessageSeverity)' != '') was evaluated as ('' != '').
Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "Message"
Configuration=Debug
Done executing task "Message".
Task "Message"
Platform=x64
Done executing task "Message".
Task "MSBuildInternalMessage" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\' != '' and !HasTrailingSlash('C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\x64\Debug\')).
Task "MSBuildInternalMessage" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('load-manager\x64\Debug\' != '' and !HasTrailingSlash('load-manager\x64\Debug\')).
Task "MSBuildInternalMessage" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')).
Task "MSBuildInternalMessage" skipped, due to false condition; ( '$(Prefer32Bit)' == 'true' and '$(PreferNativeArm64)' == 'true' ) was evaluated as ( '' == 'true' and '' == 'true' ).
Task "MSBuildInternalMessage" skipped, due to false condition; ( '$(NoWin32Manifest)' == 'true' and '$(PreferNativeArm64)' == 'true' ) was evaluated as ( '' == 'true' and '' == 'true' ).
Task "MSBuildInternalMessage" skipped, due to false condition; ( '$(PreferNativeArm64)' == 'true' and '$(Platform)' != 'AnyCPU' ) was evaluated as ( '' == 'true' and 'x64' != 'AnyCPU' ).
Task "MSBuildInternalMessage" skipped, due to false condition; ( '$(_InitialMSBuildProjectExtensionsPath)' != '' And '$(MSBuildProjectExtensionsPath)' != '$(_InitialMSBuildProjectExtensionsPath)' ) was evaluated as ( 'C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\obj\' != '' And 'C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\obj\' != 'C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\obj\' ).
Task "MSBuildInternalMessage" skipped, due to false condition; ( '$(EnableBaseIntermediateOutputPathMismatchWarning)' == 'true' And '$(_InitialBaseIntermediateOutputPath)' != '$(BaseIntermediateOutputPath)' And '$(BaseIntermediateOutputPath)' != '$(MSBuildProjectExtensionsPath)' ) was evaluated as ( '' == 'true' And 'obj\' != 'obj\' And 'obj\' != 'C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\obj\' ).
1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "load-manager.vcxproj".
Target "_CheckForInvalidConfigurationAndPlatform" skipped. Previously built successfully.
1>Target "SetTelemetryEnvironmentVariables" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.DesignTime.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "Build" depends on it):
Using "SetEnv" task from assembly "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Build.CppTasks.Common.dll".
Task "SetEnv"
VSTEL_SolutionSessionID={35F0874A-44E8-4DA5-B51D-41108D3393B8}
Done executing task "SetEnv".
Task "SetEnv"
VSTEL_CurrentSolutionBuildID=3376952331
Done executing task "SetEnv".
Task "SetEnv"
VSTEL_ProjectID={A5468B35-BBBD-4C55-97ED-81BFE343B0E4}
Done executing task "SetEnv".
Task "SetEnv"
VSTEL_SolutionPath=C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.sln
Done executing task "SetEnv".
Task "SetEnv"
VSTEL_MSBuildProjectFullPath=C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj
Done executing task "SetEnv".
1>Done building target "SetTelemetryEnvironmentVariables" in project "load-manager.vcxproj".
1>Target "_PrepareForBuild" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.BuildSteps.Targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "Build" depends on it):
Task "CreateItem" skipped, due to false condition; ('%(CustomBuild.IncludeFileToTool)'!='') was evaluated as (''!='').
1>Done building target "_PrepareForBuild" in project "load-manager.vcxproj".
1>Target "_PrepareForReferenceResolution" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "ResolveReferences" depends on it):
Task "VCMessage" skipped, due to false condition; ('$(WarnAboutIndividualManagedFiles)' == 'true') was evaluated as ('' == 'true').
Task "Message" skipped, due to false condition; ('$(_REFERENCE_DEBUG)'=='true') was evaluated as (''=='true').
1>Done building target "_PrepareForReferenceResolution" in project "load-manager.vcxproj".
Target "ComputeCrtSDKReference" skipped, due to false condition; ('@(ClCompile)'!='' and '$(WindowsAppContainer)'=='true' and '$(UseCrtSDKReference)' != 'false') was evaluated as ('load-manager.cpp;pax.cpp'!='' and 'false'=='true' and '' != 'false').
1>Target "BeforeResolveReferences" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "ResolveReferences" depends on it):
1>Done building target "BeforeResolveReferences" in project "load-manager.vcxproj".
1>Target "IgnoreJavaScriptOutputAssembly" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "AssignProjectConfiguration" depends on it):
1>Done building target "IgnoreJavaScriptOutputAssembly" in project "load-manager.vcxproj".
1>Target "AssignProjectConfiguration" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "ResolveReferences" depends on it):
Using "AssignProjectConfiguration" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "AssignProjectConfiguration"
Done executing task "AssignProjectConfiguration".
1>Done building target "AssignProjectConfiguration" in project "load-manager.vcxproj".
Target "AssignProjectConfiguration" skipped. Previously built successfully.
1>Target "_SplitProjectReferencesByFileExistence" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "PrepareProjectReferences" depends on it):
Task "ResolveNonMSBuildProjectOutput" skipped, due to false condition; ('$(BuildingInsideVisualStudio)'=='true' and '@(ProjectReferenceWithConfiguration)'!='') was evaluated as ('true'=='true' and ''!='').
1>Done building target "_SplitProjectReferencesByFileExistence" in project "load-manager.vcxproj".
1>Target "_AddOutputPathToGlobalPropertiesToRemove" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "_GetProjectReferenceTargetFrameworkProperties" depends on it):
1>Done building target "_AddOutputPathToGlobalPropertiesToRemove" in project "load-manager.vcxproj".
1>Target "_GetProjectReferenceTargetFrameworkProperties" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "PrepareProjectReferences" depends on it):
Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "MSBuild"
Done executing task "MSBuild".
Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.SkipGetTargetFrameworkProperties)' != 'true' and '$(EnableDynamicPlatformResolution)' == 'true') was evaluated as ('' != 'true' and '' == 'true').
Task "GetReferenceNearestTargetFrameworkTask" skipped, due to false condition; ('@(_ProjectReferenceTargetFrameworkPossibilities)' != '' and '$(ReferringTargetFrameworkForProjectReferences)' != ''
And '$(GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter)' == 'true' and '%(_ProjectReferenceTargetFrameworkPossibilities.IsVcxOrNativeProj)' != 'true') was evaluated as ('' != '' and '' != ''
And 'true' == 'true' and '' != 'true').
Task "GetReferenceNearestTargetFrameworkTask" skipped, due to false condition; ('@(_ProjectReferenceTargetFrameworkPossibilities)' != '' and '$(ReferringTargetFrameworkForProjectReferences)' != ''
And '$(GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter)' != 'true' and '%(_ProjectReferenceTargetFrameworkPossibilities.IsVcxOrNativeProj)' != 'true') was evaluated as ('' != '' and '' != ''
And 'true' != 'true' and '' != 'true').
Using "SetRidAgnosticValueForProjects" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "SetRidAgnosticValueForProjects"
Done executing task "SetRidAgnosticValueForProjects".
1>Done building target "_GetProjectReferenceTargetFrameworkProperties" in project "load-manager.vcxproj".
Target "_GetProjectReferencePlatformProperties" skipped, due to false condition; ('$(EnableDynamicPlatformResolution)' == 'true'
and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true'
and '' != '').
1>Target "PrepareProjectReferences" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "ResolveProjectReferences" depends on it):
1>Done building target "PrepareProjectReferences" in project "load-manager.vcxproj".
Target "_RemoveNameMetadataFromProjectReferenceItems" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
1>Target "ResolveProjectReferences" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "ResolveReferences" depends on it):
Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and ('$(BuildingInsideVisualStudio)' == 'true' or '$(BuildProjectReferences)' != 'true') and '$(VisualStudioVersion)' != '10.0' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and ('true' == 'true' or 'true' != 'true') and '17.0' != '10.0' and '' != '').
Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and 'true' != 'true' and 'true' == 'true' and '' != '').
Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingProject)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and 'true' == 'true' and '' != '').
Task "MSBuildInternalMessage" skipped, due to false condition; ('$(_NonExistentProjectReferenceSeverity)' != '') was evaluated as ('' != '').
1>Done building target "ResolveProjectReferences" in project "load-manager.vcxproj".
Target "FindInvalidProjectReferences" skipped, due to false condition; ('$(FindInvalidProjectReferences)' == 'true') was evaluated as ('' == 'true').
Target "ResolveNativeReferences" skipped, due to false condition; ('@(NativeReference)'!='') was evaluated as (''!='').
Target "_PrepareForReferenceResolution" skipped. Previously built successfully.
Target "ResolveProjectReferences" skipped. Previously built successfully.
Target "FindInvalidProjectReferences" skipped, due to false condition; ('$(FindInvalidProjectReferences)' == 'true') was evaluated as ('' == 'true').
1>Target "GetFrameworkPaths" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "ResolveAssemblyReferences" depends on it):
1>Done building target "GetFrameworkPaths" in project "load-manager.vcxproj".
Target "_PrepareForReferenceResolution" skipped. Previously built successfully.
Target "GetFrameworkPaths" skipped. Previously built successfully.
1>Target "GetReferenceAssemblyPaths" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "ResolveAssemblyReferences" depends on it):
Task "GetReferenceAssemblyPaths" skipped, due to false condition; ('$(TargetFrameworkMoniker)' != '' and ('$(_TargetFrameworkDirectories)' == '' or '$(_FullFrameworkReferenceAssemblyPaths)' == '')) was evaluated as ('' != '' and ('' == '' or '' == '')).
1>Done building target "GetReferenceAssemblyPaths" in project "load-manager.vcxproj".
1>Target "AddExternalIncludDirectoriesToPaths" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Current.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "SetBuildDefaultEnvironmentVariables" depends on it):
1>Done building target "AddExternalIncludDirectoriesToPaths" in project "load-manager.vcxproj".
1>Target "SetBuildDefaultEnvironmentVariables" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Current.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "PrepareForBuild" depends on it):
Task "SetEnv"
PATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX86\x86;C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x86;;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\tools;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\ide;C:\Program Files (x86)\HTML Help Workshop;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\;;c:\program files\imagemagick-7.0.10-q8;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\windows\system32\openssh\;c:\program files\nvidia corporation\nvidia nvdlisr;c:\windows\system32\config\systemprofile\appdata\local\microsoft\windowsapps;c:\program files\git\cmd;c:\program files\microsoft sql server\130\toolsn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Toolsn\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Toolsn\;C:\Program Files\dotnet;C:\Program Files\dotnet\;C:\Program Files (x86)\Meld\;C:\Program Files\Git\cmd;C:\Users\llego\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\PuTTY\;C:\Users\llego\scoop\shims;C:\Users\llego\AppData\Local\pnpm;C:\Users\llego\AppData\Local\Microsoft\WindowsApps;C:\Users\llego\.dotnet\tools;C:\Users\llego\AppData\Local\Programs\Microsoft VS CodeC:\Program Files\IPFS Desktop\resources\app.asar.unpacked\src\ipfs-on-path\scripts-win;C:\Users\llego\.dotnet\tools;C:\Users\llego\AppData\Local\Microsoft\WindowsApps;C:\texlive\2023\windows;C:\Users\llego\AppData\Roaming\npm;C:\Users\llego\AppData\Local\Pandoc\;C:\texlive\2025\bin\windows;
Done executing task "SetEnv".
Task "SetEnv"
LIB=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\VS\lib\x64;;C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\ucrt\x64;;;C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\um\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\lib\um\x64;
Done executing task "SetEnv".
Task "SetEnv"
LIBPATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\lib\x64;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\lib\x64;
Done executing task "SetEnv".
Task "SetEnv"
INCLUDE=;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\include;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um
Done executing task "SetEnv".
Task "SetEnv"
EXTERNAL_INCLUDE=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\include;;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\VS\include;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt;;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um;
Done executing task "SetEnv".
1>Done building target "SetBuildDefaultEnvironmentVariables" in project "load-manager.vcxproj".
Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '' and '$(DesignTimeBuild)' != 'true') was evaluated as ('' != '' and '' != 'true').
Target "_PrepareForReferenceResolution" skipped. Previously built successfully.
1>Target "GetResolvedWinMD" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "PrepareForBuild" depends on it):
1>Done building target "GetResolvedWinMD" in project "load-manager.vcxproj".
1>Target "_CheckWindowsSDKInstalled" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.WindowsSDK.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "PrepareForBuild" depends on it):
Task "VCMessage" skipped, due to false condition; ('$(WindowsSDKInstalled)' != 'true') was evaluated as ('true' != 'true').
Task "VCMessage" skipped, due to false condition; ('$(WindowsAppContainer)' != 'true' and '$(WindowsSDK_Desktop_Support)' != true) was evaluated as ('false' != 'true' and 'true' != true).
1>Done building target "_CheckWindowsSDKInstalled" in project "load-manager.vcxproj".
Target "GetFrameworkPaths" skipped. Previously built successfully.
Target "GetReferenceAssemblyPaths" skipped. Previously built successfully.
Target "AssignLinkMetadata" skipped, due to false condition; ( '$(SynthesizeLinkMetadata)' == 'true' ) was evaluated as ( '' == 'true' ).
1>Target "SetCABuildNativeEnvironmentVariables" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\CodeAnalysis\Microsoft.CodeAnalysis.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "PrepareForBuild" depends on it):
Task "SetEnv"
CAExcludePath=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\atlmfc\include;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt;;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\winrt;C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um;
Done executing task "SetEnv".
Task "SetEnv" skipped, due to false condition; ('$(RunMsvcAnalysis)'=='true' and '$(VCCodeAnalysisUX)'=='true') was evaluated as ('false'=='true' and 'true'=='true').
1>Done building target "SetCABuildNativeEnvironmentVariables" in project "load-manager.vcxproj".
1>Target "PrepareForBuild" in file "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets" from project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (target "ResolveAssemblyReferences" depends on it):
Task "VCMessage" skipped, due to false condition; ('$(PlatformToolset)' == '') was evaluated as ('MSFS' == '').
Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)' != 'true' and '$(ConfigurationPlatformExists)' != 'true') was evaluated as ('' != 'true' and 'true' != 'true').
Using "VCMessage" task from assembly "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Build.CppTasks.Common.dll".
Task "VCMessage"
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for MSFS (Platform Toolset = 'MSFS') cannot be found. To build using the MSFS build tools, please install MSFS build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
Done executing task "VCMessage" -- FAILED.
1>Done building target "PrepareForBuild" in project "load-manager.vcxproj" -- FAILED.
1>Done Building Project "C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (Build target(s)) -- FAILED.
Build FAILED.
"C:\Users\llego\Documents\TFDi MD-11 QA\xkhofmann-tfdidesign-md11-load-manager\PackageSources\wasm-module\load-manager.vcxproj" (Build target) (1) ->
(PrepareForBuild target) ->
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for MSFS (Platform Toolset = 'MSFS') cannot be found. To build using the MSFS build tools, please install MSFS build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.05
+15
View File
@@ -0,0 +1,15 @@
{
"name": "wasm-module",
"version": "0.0.16",
"description": "Load Manager WASM module",
"scripts": {
"clean": "rimraf ../SimObjects/Airplanes/TFDi_Design_MD-11/panel/load-manager.wasm && rimraf MSFS",
"build": "MSBuild.exe ./load-manager.sln /p:Platform=MSFS",
"build:rel": "MSBuild.exe ./load-manager.sln /p:Platform=MSFS /p:Configuration=Release",
"release": "pnpm clean && npm version patch && pnpm build:rel && node stack-analysis"
},
"keywords": [],
"author": "Kilian Kurt Hofmann",
"license": "MIT",
"packageManager": "pnpm@10.25.0"
}
-312
View File
@@ -1,312 +0,0 @@
#include "pax.h"
// ZFW Entry, fill pax first (pax+bag), rest is cargo
void distribute(paxPayloadData_t* const targetPayload, const FuelData_t* const fuel, const double ZFWTarget, const bool isImperial, const bool isER) {
// Find payload, num pax and extra cargo
double payload = ZFWTarget - targetPayload->empty - targetPayload->pilot - targetPayload->firstOfficer - targetPayload->engineer -
targetPayload->cabinCrewFront - targetPayload->cabinCrewRear - targetPayload->leftAux - targetPayload->rightAux;
unsigned short numPax = max(0.0, min((double)MAX_PAX, floor(payload / (PAX_WEIGHT(isImperial) + BAG_WEIGHT(isImperial)))));
unsigned int cargo = round(payload - numPax * PAX_WEIGHT(isImperial) - numPax * BAG_WEIGHT(isImperial));
distribute(targetPayload, fuel, numPax, cargo, isImperial, isER);
}
// SimBrief Entry, SB pax count and extra cargo
void distribute(paxPayloadData_t* const targetPayload, const FuelData_t* const fuel, unsigned short numPax, unsigned int cargo, const bool isImperial, const bool isER) {
// Clear
targetPayload->paxCount.business1 = targetPayload->paxCount.business2 = targetPayload->paxCount.economy1 = targetPayload->paxCount.economy2 =
targetPayload->paxCount.total = 0;
targetPayload->forwardCargo = targetPayload->rearCargo = 0;
unsigned short _numPax = 0;
unsigned int count = MAX_PAX;
// Initial distribution pax + bags
while (numPax > 0 && count > 0) {
if (numPax >= 4) {
if (targetPayload->paxCount.business1 < MAX_BUSINESS_1) {
targetPayload->paxCount.business1++;
_numPax++;
}
if (targetPayload->paxCount.business2 < MAX_BUSINESS_2) {
targetPayload->paxCount.business2++;
_numPax++;
}
if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
_numPax++;
}
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
_numPax++;
}
}
else if (numPax == 3) {
if (targetPayload->paxCount.business2 < MAX_BUSINESS_2) {
targetPayload->paxCount.business2++;
_numPax++;
}
if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
_numPax++;
}
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
_numPax++;
}
}
else if (numPax == 2) {
if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
_numPax++;
}
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
_numPax++;
}
}
else if (numPax == 1) {
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
_numPax++;
}
}
numPax -= _numPax;
targetPayload->paxCount.total += _numPax;
if (_numPax % 2 == 0) {
targetPayload->forwardCargo += (_numPax / 2) * BAG_WEIGHT(isImperial);
targetPayload->rearCargo += (_numPax / 2) * BAG_WEIGHT(isImperial);
}
else {
_numPax--;
targetPayload->forwardCargo += (_numPax / 2 + 1) * BAG_WEIGHT(isImperial);
targetPayload->rearCargo += (_numPax / 2) * BAG_WEIGHT(isImperial);
}
_numPax = 0;
count--;
}
count = MAX_FRONT_CARGO(isImperial);
// Initial distibution of remaining cargo
while (cargo > 0 && count > 0) {
if (targetPayload->forwardCargo < MAX_FRONT_CARGO(isImperial)) {
targetPayload->forwardCargo++;
cargo--;
}
if (targetPayload->rearCargo < MAX_REAR_CARGO(isImperial, isER) && cargo > 0) {
targetPayload->rearCargo++;
cargo--;
}
count--;
}
// Refinement pax
count = MAX_PAX;
while (count > 0) {
generatePayload(targetPayload, isImperial);
calculateCGs(targetPayload, fuel, &targetPayload->ZFWCG, &targetPayload->TOCG, isImperial);
// in front of target
if (targetPayload->ZFWCG < targetPayload->CGTarget - CG_TOLERANCE) {
if (targetPayload->paxCount.business1 > 0) {
targetPayload->paxCount.business1--;
}
else if (targetPayload->paxCount.business2 > 0) {
targetPayload->paxCount.business2--;
}
else if (targetPayload->paxCount.economy1 > 0) {
targetPayload->paxCount.economy1--;
}
else {
break;
}
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
}
else if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
}
else if (targetPayload->paxCount.business2 < MAX_BUSINESS_2) {
targetPayload->paxCount.business2++;
}
else {
targetPayload->paxCount.business1++;
}
}
// behind target
else if (targetPayload->ZFWCG > targetPayload->CGTarget + CG_TOLERANCE) {
if (targetPayload->paxCount.economy2 > 0) {
targetPayload->paxCount.economy2--;
}
else if (targetPayload->paxCount.economy1 > 0) {
targetPayload->paxCount.economy1--;
}
else if (targetPayload->paxCount.business2 > 0) {
targetPayload->paxCount.business2--;
}
else {
break;
}
if (targetPayload->paxCount.business1 < MAX_BUSINESS_1) {
targetPayload->paxCount.business1++;
}
else if (targetPayload->paxCount.business2 < MAX_BUSINESS_2) {
targetPayload->paxCount.business2++;
}
else if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
}
else {
targetPayload->paxCount.economy2++;
}
}
else {
break;
}
count--;
}
// Refinement cargo
count = MAX_FRONT_CARGO(isImperial) + MAX_REAR_CARGO(isImperial, isER);
while (count > 0) {
generatePayload(targetPayload, isImperial);
calculateCGs(targetPayload, fuel, &targetPayload->ZFWCG, &targetPayload->TOCG, isImperial);
// in front of target
if (targetPayload->ZFWCG < targetPayload->CGTarget - CG_TOLERANCE) {
if (targetPayload->forwardCargo > 0 && targetPayload->rearCargo < MAX_REAR_CARGO(isImperial, isER)) {
if (targetPayload->forwardCargo > BAG_WEIGHT(isImperial) &&
targetPayload->rearCargo < MAX_FRONT_CARGO(isImperial) - BAG_WEIGHT(isImperial)) {
targetPayload->forwardCargo -= BAG_WEIGHT(isImperial);
targetPayload->rearCargo += BAG_WEIGHT(isImperial);
}
else {
targetPayload->forwardCargo--;
targetPayload->rearCargo++;
}
}
else {
break;
}
}
// behind target
else if (targetPayload->ZFWCG > targetPayload->CGTarget + CG_TOLERANCE) {
if (targetPayload->rearCargo > 0 && targetPayload->forwardCargo < MAX_FRONT_CARGO(isImperial)) {
if (targetPayload->rearCargo > BAG_WEIGHT(isImperial) &&
targetPayload->forwardCargo < MAX_REAR_CARGO(isImperial, isER) - BAG_WEIGHT(isImperial)) {
targetPayload->rearCargo -= BAG_WEIGHT(isImperial);
targetPayload->forwardCargo += BAG_WEIGHT(isImperial);
}
else {
targetPayload->rearCargo--;
targetPayload->forwardCargo++;
}
}
else {
break;
}
}
else {
break;
}
count--;
}
}
// Updates pax stations with their respective weights
// Used internally and used for Station Entry (pax only, cargo is set directly)
void generatePayload(paxPayloadData_t* const targetPayload, const bool isImperial) {
targetPayload->business1Left = targetPayload->business1Center = targetPayload->business1Right = (targetPayload->paxCount.business1 / 3.0) * PAX_WEIGHT(isImperial);
targetPayload->business2Left = targetPayload->business2Center = targetPayload->business2Right = (targetPayload->paxCount.business2 / 3.0) * PAX_WEIGHT(isImperial);
targetPayload->economy1Left = targetPayload->economy1Center = targetPayload->economy1Right = (targetPayload->paxCount.economy1 / 3.0) * PAX_WEIGHT(isImperial);
targetPayload->economy2Left = targetPayload->economy2Center = targetPayload->economy2Right = (targetPayload->paxCount.economy2 / 3.0) * PAX_WEIGHT(isImperial);
targetPayload->total = targetPayload->empty + targetPayload->pilot + targetPayload->firstOfficer + targetPayload->engineer + targetPayload->cabinCrewFront +
targetPayload->business1Left + targetPayload->business1Center + targetPayload->business1Right + targetPayload->business2Left +
targetPayload->business2Center + targetPayload->business2Right + targetPayload->economy1Left + targetPayload->economy1Center +
targetPayload->economy1Right + targetPayload->economy2Left + targetPayload->economy2Center + targetPayload->economy2Right +
targetPayload->cabinCrewRear + targetPayload->forwardCargo + targetPayload->rearCargo + targetPayload->leftAux + targetPayload->rightAux;
}
// Normalise to Pounds
// MANDATORY BEFORE SETTING WEIGHTS
// USE ON COPY OF GLOBAL STATE ONLY
void normalisePayload(paxPayloadData_t* const targetPayload, const bool isImperial) {
targetPayload->empty = TO_POUNDS(isImperial, targetPayload->empty);
targetPayload->pilot = TO_POUNDS(isImperial, targetPayload->pilot);
targetPayload->firstOfficer = TO_POUNDS(isImperial, targetPayload->firstOfficer);
targetPayload->engineer = TO_POUNDS(isImperial, targetPayload->engineer);
targetPayload->cabinCrewFront = TO_POUNDS(isImperial, targetPayload->cabinCrewFront);
targetPayload->business1Left = TO_POUNDS(isImperial, targetPayload->business1Left);
targetPayload->business1Center = TO_POUNDS(isImperial, targetPayload->business1Center);
targetPayload->business1Right = TO_POUNDS(isImperial, targetPayload->business1Right);
targetPayload->business2Left = TO_POUNDS(isImperial, targetPayload->business2Left);
targetPayload->business2Center = TO_POUNDS(isImperial, targetPayload->business2Center);
targetPayload->business2Right = TO_POUNDS(isImperial, targetPayload->business2Right);
targetPayload->economy1Left = TO_POUNDS(isImperial, targetPayload->economy1Left);
targetPayload->economy1Center = TO_POUNDS(isImperial, targetPayload->economy1Center);
targetPayload->economy1Right = TO_POUNDS(isImperial, targetPayload->economy1Right);
targetPayload->economy2Left = TO_POUNDS(isImperial, targetPayload->economy2Left);
targetPayload->economy2Center = TO_POUNDS(isImperial, targetPayload->economy2Center);
targetPayload->economy2Right = TO_POUNDS(isImperial, targetPayload->economy2Right);
targetPayload->cabinCrewRear = TO_POUNDS(isImperial, targetPayload->cabinCrewRear);
targetPayload->forwardCargo = TO_POUNDS(isImperial, targetPayload->forwardCargo);
targetPayload->rearCargo = TO_POUNDS(isImperial, targetPayload->rearCargo);
targetPayload->leftAux = TO_POUNDS(isImperial, targetPayload->leftAux);
targetPayload->rightAux = TO_POUNDS(isImperial, targetPayload->rightAux);
}
void calculateCGs(const paxPayloadData_t* const targetPayload, const FuelData_t* const fuel, double* const ZFWCG, double* const TOCG, const bool isImperial) {
paxPayloadData_t localPayload = {};
memcpy(&localPayload, targetPayload, sizeof(localPayload));
normalisePayload(&localPayload, isImperial);
double totalMoment = localPayload.empty * ARM_EMPTY + localPayload.pilot * ARM_PILOT + localPayload.firstOfficer * ARM_FIRST_OFFICER +
localPayload.engineer * ARM_ENGINEER + localPayload.cabinCrewFront * ARM_PAX_CABIN_CREW_FRONT +
localPayload.business1Left * ARM_PAX_BUSINESS1_LEFT + localPayload.business1Center * ARM_PAX_BUSINESS1_CENTER +
localPayload.business1Right * ARM_PAX_BUSINESS1_RIGHT + localPayload.business2Left * ARM_PAX_BUSINESS2_LEFT +
localPayload.business2Center * ARM_PAX_BUSINESS2_CENTER + localPayload.business2Right * ARM_PAX_BUSINESS2_RIGHT +
localPayload.economy1Left * ARM_PAX_ECONOMY1_LEFT + localPayload.economy1Center * ARM_PAX_ECONOMY1_CENTER +
localPayload.economy1Right * ARM_PAX_ECONOMY1_RIGHT + localPayload.economy2Left * ARM_PAX_ECONOMY2_LEFT +
localPayload.economy2Center * ARM_PAX_ECONOMY2_CENTER + localPayload.economy2Right * ARM_PAX_ECONOMY2_RIGHT +
localPayload.cabinCrewRear * ARM_PAX_CABIN_CREW_REAR + localPayload.forwardCargo * ARM_FORWARD_CARGO +
localPayload.rearCargo * ARM_REAR_CARGO + localPayload.leftAux * ARM_LEFT_AUX + localPayload.rightAux * ARM_RIGHT_AUX;
double totalWeight = localPayload.empty + localPayload.pilot + localPayload.firstOfficer + localPayload.engineer + localPayload.cabinCrewFront +
localPayload.business1Left + localPayload.business1Center + localPayload.business1Right + localPayload.business2Left +
localPayload.business2Center + localPayload.business2Right + localPayload.economy1Left + localPayload.economy1Center +
localPayload.economy1Right + localPayload.economy2Left + localPayload.economy2Center + localPayload.economy2Right +
localPayload.cabinCrewRear + localPayload.forwardCargo + localPayload.rearCargo + localPayload.leftAux + localPayload.rightAux;
*ZFWCG = TO_PERCENT_MAC(totalMoment / totalWeight);
totalMoment += fuel->main1 * ARM_MAIN1 + fuel->main3 * ARM_MAIN3 + fuel->main2 * ARM_MAIN2 + fuel->upperAux * ARM_UPPER_AUX +
fuel->lowerAux * ARM_LOWER_AUX + fuel->main1Tip * ARM_MAIN1_TIP + fuel->main3Tip * ARM_MAIN3_TIP +
fuel->tail * ARM_TAIL + fuel->forwardAux1 * ARM_FORWARD_AUX1 + fuel->forwardAux2 * ARM_FORWARD_AUX2;
totalWeight += fuel->total;
*TOCG = TO_PERCENT_MAC(totalMoment / totalWeight);
}
void load(const paxPayloadData_t* const targetPayload, const HANDLE simConnect, const bool isImperial) {
paxPayloadData_t localPayload = {};
memcpy(&localPayload, targetPayload, sizeof(localPayload));
normalisePayload(&localPayload, isImperial);
SimConnect_SetDataOnSimObject(simConnect, DATA_DEFINITION_PAYLOAD_PAX, SIMCONNECT_OBJECT_ID_USER, 0, 0, sizeof(paxPayloadDataSet_t), &localPayload);
}
void unload(const HANDLE simConnect, const bool isER) {
paxPayloadDataSet_t localPayload = {};
localPayload.cabinCrewFront = FRONT_CREW_WEIGHT(true);
localPayload.cabinCrewRear = REAR_CREW_WEIGHT(true);
localPayload.leftAux = localPayload.rightAux = isER ? AUX_WEIGHT(true) : 0;
localPayload.pilot = localPayload.firstOfficer = localPayload.engineer = PILOT_WEIGHT(true);
SimConnect_SetDataOnSimObject(simConnect, DATA_DEFINITION_PAYLOAD_PAX, SIMCONNECT_OBJECT_ID_USER, 0, 0, sizeof(paxPayloadDataSet_t), &localPayload);
}
-36
View File
@@ -1,36 +0,0 @@
#pragma once
#ifndef __INTELLISENSE__
# define MODULE_EXPORT __attribute__( ( visibility( "default" ) ) )
# define MODULE_WASM_MODNAME(mod) __attribute__((import_module(mod)))
#else
# define MODULE_EXPORT
# define MODULE_WASM_MODNAME(mod)
# define __attribute__(x)
# define __restrict__
#endif
#include <MSFS/MSFS_WindowsTypes.h>
#include <math.h>
#include <algorithm>
#include <SimConnect.h>
#include "types.h"
//ZFW Entry, fill pax first (pax+bag), rest is cargo
void distribute(paxPayloadData_t* const targetPayload, const FuelData_t* const fuel, const double ZFWTarget, const bool isImperial, const bool isER);
//SimBrief Entry, SB pax count and total cargo
void distribute(paxPayloadData_t* const targetPayload, const FuelData_t* const fuel, unsigned short numPax, unsigned int cargo, const bool isImperial, const bool isER);
// Updates pax stations with their respective weights
// Used internally and used for Station Entry (pax only, cargo is ste directly)
// STATION WEIGHTS ARE NOT NORMALISED TO POUNDS
void generatePayload(paxPayloadData_t* const targetPayload, const bool isImperial);
// Normalise to Pounds
// For Station Entry: CALL AFTER `generatePayload`
void normalisePayload(paxPayloadData_t* const targetPayload, const bool isImperial);
void calculateCGs(const paxPayloadData_t* const targetPayload, const FuelData_t* const fuel, double* const ZFWCG, double* const TOCG, const bool isImperial);
void load(const paxPayloadData_t* const targetPayload, const HANDLE simConnect, const bool isImperial);
void unload(const HANDLE simConnect, const bool isER);
@@ -0,0 +1,307 @@
#include "freighter.h"
// ZFW Entry
void distribute(fPayloadData_t *const targetPayload, const FuelData_t *const fuel, const double ZFWTarget,
const UserData_t *const userData) {
// Find payload, num pax and extra cargo
double payload = ZFWTarget - targetPayload->empty - targetPayload->pilot - targetPayload->firstOfficer -
targetPayload->engineer - targetPayload->leftAux - targetPayload->rightAux;
unsigned int cargo = round(payload);
distribute(targetPayload, fuel, cargo, userData);
}
// SimBrief Entry
void distribute(fPayloadData_t *const targetPayload, const FuelData_t *const fuel, unsigned int cargo,
const UserData_t *const userData) {
// Clear
targetPayload->stations.upper1 = targetPayload->stations.upper2 = targetPayload->stations.upper3 =
targetPayload->stations.upper4 = targetPayload->stations.total = 0;
targetPayload->lowerForward = targetPayload->lowerRear = 0;
unsigned short _cargo = 0;
unsigned int count = MAX_UPPER_CARGO(userData->isImperial) * 4 + MAX_FRONT_CARGO(userData->isImperial) +
MAX_REAR_CARGO(userData->isImperial, userData->isER);
// Initial distribution
while (cargo > 0 && count > 0) {
if (cargo >= 6) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper3++;
_cargo++;
}
if (targetPayload->stations.upper4 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper4++;
_cargo++;
}
if (targetPayload->lowerForward < MAX_FRONT_CARGO(userData->isImperial)) {
targetPayload->lowerForward++;
_cargo++;
}
if (targetPayload->lowerRear < MAX_REAR_CARGO(userData->isImperial, userData->isER)) {
targetPayload->lowerRear++;
_cargo++;
}
} else if (cargo == 5) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper3++;
_cargo++;
}
if (targetPayload->stations.upper4 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper4++;
_cargo++;
}
if (targetPayload->lowerForward < MAX_FRONT_CARGO(userData->isImperial)) {
targetPayload->lowerForward++;
_cargo++;
}
} else if (cargo == 4) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper3++;
_cargo++;
}
if (targetPayload->stations.upper4 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper4++;
_cargo++;
}
} else if (cargo == 3) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper3++;
_cargo++;
}
} else if (cargo == 2) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper2++;
_cargo++;
}
} else if (cargo == 1) {
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper1++;
_cargo++;
}
}
cargo -= _cargo;
targetPayload->stations.total += _cargo;
_cargo = 0;
count--;
}
// Refinement
count = MAX_UPPER_CARGO(userData->isImperial) * 4 + MAX_FRONT_CARGO(userData->isImperial) +
MAX_REAR_CARGO(userData->isImperial, userData->isER);
while (count > 0) {
generatePayload(targetPayload);
calculateCGs(targetPayload, fuel, userData->isImperial);
// in front of target
if (targetPayload->ZFWCG < targetPayload->CGTarget - CG_TOLERANCE) {
if (targetPayload->stations.upper1 > 0) {
targetPayload->stations.upper1--;
} else if (targetPayload->stations.upper2 > 0) {
targetPayload->stations.upper2--;
} else if (targetPayload->stations.upper3 > 0) {
targetPayload->stations.upper3--;
} else {
break;
}
if (targetPayload->stations.upper4 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper4++;
} else if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper3++;
} else if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper2++;
} else {
targetPayload->stations.upper1++;
}
}
// behind target
else if (targetPayload->ZFWCG > targetPayload->CGTarget + CG_TOLERANCE) {
if (targetPayload->stations.upper4 > 0) {
targetPayload->stations.upper4--;
} else if (targetPayload->stations.upper3 > 0) {
targetPayload->stations.upper3--;
} else if (targetPayload->stations.upper2 > 0) {
targetPayload->stations.upper2--;
} else {
break;
}
if (targetPayload->stations.upper1 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper1++;
} else if (targetPayload->stations.upper2 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper2++;
} else if (targetPayload->stations.upper3 < MAX_UPPER_CARGO(userData->isImperial)) {
targetPayload->stations.upper3++;
} else {
targetPayload->stations.upper4++;
}
} else {
break;
}
count--;
}
// Refinement cargo
count = MAX_FRONT_CARGO(userData->isImperial) + MAX_REAR_CARGO(userData->isImperial, userData->isER);
while (count > 0) {
generatePayload(targetPayload);
calculateCGs(targetPayload, fuel, userData->isImperial);
// in front of target
if (targetPayload->ZFWCG < targetPayload->CGTarget - CG_TOLERANCE) {
if (targetPayload->lowerForward > 0 && targetPayload->lowerRear < MAX_REAR_CARGO(userData->isImperial, userData->isER)) {
targetPayload->lowerForward--;
targetPayload->lowerRear++;
} else {
break;
}
}
// behind target
else if (targetPayload->ZFWCG > targetPayload->CGTarget + CG_TOLERANCE) {
if (targetPayload->lowerRear > 0 && targetPayload->lowerForward < MAX_FRONT_CARGO(userData->isImperial)) {
targetPayload->lowerRear--;
targetPayload->lowerForward++;
} else {
break;
}
} else {
break;
}
count--;
}
}
// Updates pax stations with their respective weights
// Used internally and used for Station Entry (pax only, cargo is set directly)
void generatePayload(fPayloadData_t *const targetPayload) {
targetPayload->upper1Left = targetPayload->upper1Right = (targetPayload->stations.upper1 / 2.0);
targetPayload->upper2Left = targetPayload->upper2Right = (targetPayload->stations.upper2 / 2.0);
targetPayload->upper3Left = targetPayload->upper3Right = (targetPayload->stations.upper3 / 2.0);
targetPayload->upper4Left = targetPayload->upper4Right = (targetPayload->stations.upper4 / 2.0);
targetPayload->total = targetPayload->empty + targetPayload->pilot + targetPayload->firstOfficer + targetPayload->engineer +
targetPayload->upper1Left + targetPayload->upper1Right + targetPayload->upper2Left +
targetPayload->upper2Right + targetPayload->upper3Left + targetPayload->upper3Right +
targetPayload->upper4Left + targetPayload->upper4Right + targetPayload->lowerForward +
targetPayload->lowerRear + targetPayload->leftAux + targetPayload->rightAux;
}
// Normalise to Pounds
// MANDATORY BEFORE SETTING WEIGHTS
// USE ON COPY OF GLOBAL STATE ONLY
void normalisePayload(fPayloadData_t *const targetPayload, const bool isImperial) {
targetPayload->empty = TO_POUNDS(isImperial, targetPayload->empty);
targetPayload->pilot = TO_POUNDS(isImperial, targetPayload->pilot);
targetPayload->firstOfficer = TO_POUNDS(isImperial, targetPayload->firstOfficer);
targetPayload->engineer = TO_POUNDS(isImperial, targetPayload->engineer);
targetPayload->upper1Left = TO_POUNDS(isImperial, targetPayload->upper1Left);
targetPayload->upper1Right = TO_POUNDS(isImperial, targetPayload->upper1Right);
targetPayload->upper2Left = TO_POUNDS(isImperial, targetPayload->upper2Left);
targetPayload->upper2Right = TO_POUNDS(isImperial, targetPayload->upper2Right);
targetPayload->upper3Left = TO_POUNDS(isImperial, targetPayload->upper3Left);
targetPayload->upper3Right = TO_POUNDS(isImperial, targetPayload->upper3Right);
targetPayload->upper4Left = TO_POUNDS(isImperial, targetPayload->upper4Left);
targetPayload->upper4Right = TO_POUNDS(isImperial, targetPayload->upper4Right);
targetPayload->lowerForward = TO_POUNDS(isImperial, targetPayload->lowerForward);
targetPayload->lowerRear = TO_POUNDS(isImperial, targetPayload->lowerRear);
targetPayload->leftAux = TO_POUNDS(isImperial, targetPayload->leftAux);
targetPayload->rightAux = TO_POUNDS(isImperial, targetPayload->rightAux);
}
void calculateCGs(fPayloadData_t *const targetPayload, const FuelData_t *const fuel, const bool isImperial) {
fPayloadData_t localPayload = {};
memcpy(&localPayload, targetPayload, sizeof(localPayload));
normalisePayload(&localPayload, isImperial);
double totalMoment = localPayload.empty * ARM_EMPTY + localPayload.pilot * ARM_PILOT +
localPayload.firstOfficer * ARM_FIRST_OFFICER + localPayload.engineer * ARM_ENGINEER +
localPayload.upper1Left * ARM_F_UPPER1_LEFT + localPayload.upper1Right * ARM_F_UPPER1_RIGHT +
localPayload.upper2Left * ARM_F_UPPER2_LEFT + localPayload.upper2Right * ARM_F_UPPER2_RIGHT +
localPayload.upper3Left * ARM_F_UPPER3_LEFT + localPayload.upper3Right * ARM_F_UPPER3_RIGHT +
localPayload.upper4Left * ARM_F_UPPER4_LEFT + localPayload.upper4Right * ARM_F_UPPER4_RIGHT +
localPayload.lowerForward * ARM_FORWARD_CARGO + localPayload.lowerRear * ARM_REAR_CARGO +
localPayload.leftAux * ARM_LEFT_AUX + localPayload.rightAux * ARM_RIGHT_AUX;
double totalWeight = localPayload.empty + localPayload.pilot + localPayload.firstOfficer + localPayload.engineer +
localPayload.upper1Left + localPayload.upper1Right + localPayload.upper2Left + localPayload.upper2Right +
localPayload.upper3Left + localPayload.upper3Right + localPayload.upper4Left + localPayload.upper4Right +
localPayload.lowerForward + localPayload.lowerRear + localPayload.leftAux + localPayload.rightAux;
targetPayload->ZFWCG = TO_PERCENT_MAC(totalMoment / totalWeight);
totalMoment += fuel->main1 * ARM_MAIN1 + fuel->main3 * ARM_MAIN3 + fuel->main2 * ARM_MAIN2 + fuel->upperAux * ARM_UPPER_AUX +
fuel->lowerAux * ARM_LOWER_AUX + fuel->main1Tip * ARM_MAIN1_TIP + fuel->main3Tip * ARM_MAIN3_TIP +
fuel->tail * ARM_TAIL + fuel->forwardAux1 * ARM_FORWARD_AUX1 + fuel->forwardAux2 * ARM_FORWARD_AUX2;
totalWeight += fuel->total;
targetPayload->TOCG = TO_PERCENT_MAC(totalMoment / totalWeight);
}
void load(const fPayloadData_t *const targetPayload, const FuelData_t *const fuel, const HANDLE simConnect,
const bool isImperial) {
fPayloadData_t localPayload = {};
memcpy(&localPayload, targetPayload, sizeof(localPayload));
normalisePayload(&localPayload, isImperial);
calculateCGs(&localPayload, fuel, isImperial);
localPayload._ZFWCG = localPayload.ZFWCG / 100.0;
toLog(stdout, "Payload set with ZFWCG: %f.\n", &localPayload.ZFWCG);
SimConnect_SetDataOnSimObject(simConnect, DATA_DEFINITION_PAYLOAD_F, SIMCONNECT_OBJECT_ID_USER_AIRCRAFT, 0, 0,
sizeof(fPayloadDataSet_t), &localPayload);
}
void unloadF(const HANDLE simConnect, const FuelData_t *const fuel, const double empty, const bool isER) {
fPayloadData_t localPayload = {};
localPayload.empty = empty;
localPayload.leftAux = localPayload.rightAux = isER ? AUX_WEIGHT(true) : 0;
localPayload.pilot = localPayload.firstOfficer = localPayload.engineer = PILOT_WEIGHT(true);
calculateCGs(&localPayload, fuel, true);
localPayload._ZFWCG = localPayload.ZFWCG / 100.0;
toLog(stdout, "Payload set with ZFWCG: %f.\n", &localPayload.ZFWCG);
SimConnect_SetDataOnSimObject(simConnect, DATA_DEFINITION_PAYLOAD_F, SIMCONNECT_OBJECT_ID_USER_AIRCRAFT, 0, 0,
sizeof(fPayloadDataSet_t), &localPayload);
}
+138
View File
@@ -0,0 +1,138 @@
#include "fuel.h"
void distribute(FuelData_t *const targetFuel, const double fuelTarget, const bool isImperial, const bool isER) {
double fuelLbs = TO_POUNDS(isImperial, fuelTarget);
// Equal mains
if (fuelLbs <= MAX_TANK_1_3_LBS * 3) {
double tanks = fuelLbs / 3;
// Only main
if (tanks <= MAX_TANK_1_3_TIP_LBS) {
targetFuel->main1 = tanks;
targetFuel->main3 = tanks;
targetFuel->main1Tip = 0;
targetFuel->main3Tip = 0;
}
// Tips
else if (tanks <= MAX_TANK_1_3_TIP_LBS * 2) {
double tips = tanks - MAX_TANK_1_3_TIP_LBS;
targetFuel->main1 = MAX_TANK_1_3_TIP_LBS;
targetFuel->main3 = MAX_TANK_1_3_TIP_LBS;
targetFuel->main1Tip = tips;
targetFuel->main3Tip = tips;
}
// Max tip
else {
double mains = tanks - MAX_TANK_1_3_TIP_LBS;
targetFuel->main1 = mains;
targetFuel->main3 = mains;
targetFuel->main1Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main3Tip = MAX_TANK_1_3_TIP_LBS;
}
targetFuel->main2 = tanks;
targetFuel->upperAux = 0;
targetFuel->lowerAux = 0;
targetFuel->tail = 0;
targetFuel->forwardAux1 = 0;
targetFuel->forwardAux2 = 0;
}
// No Aux
else if (fuelLbs <= MAX_TANK_1_3_LBS * 2 + MAX_TANK_2_LBS) {
targetFuel->main1 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main3 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main1Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main3Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main2 = fuelLbs - MAX_TANK_1_3_LBS * 2;
targetFuel->upperAux = 0;
targetFuel->lowerAux = 0;
targetFuel->tail = 0;
targetFuel->forwardAux1 = 0;
targetFuel->forwardAux2 = 0;
}
// UPR AUX
else if (fuelLbs <= MAX_TANK_1_3_LBS * 2 + MAX_TANK_2_LBS + MAX_UPR_AUX_LBS) {
targetFuel->main1 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main3 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main1Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main3Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main2 = MAX_TANK_2_LBS;
targetFuel->upperAux = fuelLbs - MAX_TANK_1_3_LBS * 2 - MAX_TANK_2_LBS;
targetFuel->lowerAux = 0;
targetFuel->tail = 0;
targetFuel->forwardAux1 = 0;
targetFuel->forwardAux2 = 0;
}
// LWR AUX
else if (fuelLbs <= MAX_TANK_1_3_LBS * 2 + MAX_TANK_2_LBS + MAX_UPR_AUX_LBS + MAX_LWR_AUX_LBS) {
targetFuel->main1 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main3 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main1Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main3Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main2 = MAX_TANK_2_LBS;
targetFuel->upperAux = MAX_UPR_AUX_LBS;
targetFuel->lowerAux = fuelLbs - MAX_TANK_1_3_LBS * 2 - MAX_TANK_2_LBS - MAX_UPR_AUX_LBS;
targetFuel->tail = 0;
targetFuel->forwardAux1 = 0;
targetFuel->forwardAux2 = 0;
}
// Tail
else if (fuelLbs <= MAX_TANK_1_3_LBS * 2 + MAX_TANK_2_LBS + MAX_UPR_AUX_LBS + MAX_LWR_AUX_LBS + MAX_TAIL_LBS) {
targetFuel->main1 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main3 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main1Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main3Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main2 = MAX_TANK_2_LBS;
targetFuel->upperAux = MAX_UPR_AUX_LBS;
targetFuel->lowerAux = MAX_LWR_AUX_LBS;
targetFuel->tail = fuelLbs - MAX_TANK_1_3_LBS * 2 - MAX_TANK_2_LBS - MAX_UPR_AUX_LBS - MAX_LWR_AUX_LBS;
targetFuel->forwardAux1 = 0;
targetFuel->forwardAux2 = 0;
} else if (isER) {
targetFuel->main1 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main3 = MAX_TANK_1_3_MAIN_LBS;
targetFuel->main1Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main3Tip = MAX_TANK_1_3_TIP_LBS;
targetFuel->main2 = MAX_TANK_2_LBS;
targetFuel->upperAux = MAX_UPR_AUX_LBS;
targetFuel->lowerAux = MAX_LWR_AUX_LBS;
targetFuel->tail = MAX_TAIL_LBS;
fuelLbs = fuelLbs - MAX_TANK_1_3_LBS * 2 - MAX_TANK_2_LBS - MAX_UPR_AUX_LBS - MAX_LWR_AUX_LBS - MAX_TAIL_LBS;
targetFuel->forwardAux1 = min(fuelLbs / 2, MAX_FWD_AUX_LBS);
targetFuel->forwardAux2 = min(fuelLbs / 2, MAX_FWD_AUX_LBS);
}
targetFuel->total = targetFuel->main1 + targetFuel->main3 + targetFuel->main2 + targetFuel->upperAux + targetFuel->lowerAux +
targetFuel->main1Tip + targetFuel->main3Tip + targetFuel->tail + targetFuel->forwardAux1 +
targetFuel->forwardAux2;
}
void distribute(FuelData_t *const targetFuel, const double fuelTarget, const UserData_t *const userData) {
distribute(targetFuel, fuelTarget, userData->isImperial, userData->isER);
}
void fuel(const FuelData_t *const targetFuel, const HANDLE simConnect) {
FuelDataSet_t localFuel = {};
localFuel.main1 = min(MAX_TANK_1_3_GAL, (targetFuel->main1 + targetFuel->main1Tip) / LBS_PER_GAL);
localFuel.main2 = min(MAX_TANK_2_GAL, targetFuel->main2 / LBS_PER_GAL);
localFuel.main3 = min(MAX_TANK_1_3_GAL, (targetFuel->main3 + targetFuel->main3Tip) / LBS_PER_GAL);
localFuel.upperAux = min(MAX_UPR_AUX_GAL, targetFuel->upperAux / LBS_PER_GAL);
localFuel.lowerAux = min(MAX_LWR_AUX_GAL, targetFuel->lowerAux / LBS_PER_GAL);
localFuel.tail = min(MAX_TAIL_GAL, targetFuel->tail / LBS_PER_GAL);
localFuel.forwardAux1 = min(MAX_FWD_AUX_GAL, targetFuel->forwardAux1 / LBS_PER_GAL);
localFuel.forwardAux2 = min(MAX_FWD_AUX_GAL, targetFuel->forwardAux2 / LBS_PER_GAL);
SimConnect_SetDataOnSimObject(simConnect, DATA_DEFINITION_FUEL_SET, SIMCONNECT_OBJECT_ID_USER_AIRCRAFT, 0, 0,
sizeof(FuelDataSet_t), &localFuel);
}
File diff suppressed because it is too large Load Diff
+49
View File
@@ -0,0 +1,49 @@
#include "log.h"
void toLog(FILE *file, const char *format, double *optional) {
static FILE *logFile;
static bool logFileFailed = false;
if (logFile == NULL) {
logFile = fopen("\\work\\toLog.txt", "w");
if (logFile == NULL) {
logFileFailed = true;
toLog(stderr, "Error creating logfile.\n");
} else {
toLog(stdout, "Logfile created.\n");
}
}
if (!logFileFailed) {
time_t rawtime;
time(&rawtime);
char *_new = (char *)calloc(strlen(format) + 24 + 1, sizeof(char));
if (_new == NULL) {
fprintf(stderr, MODULE_NAME "Failed to allocate string for toLog.\n");
return;
}
strftime(_new, 24, "%FT%TZ | ", gmtime(&rawtime));
strncat(_new, format, strlen(format));
if (optional != nullptr) fprintf(logFile, _new, *optional);
else
fprintf(logFile, _new);
fflush(logFile);
free(_new);
}
char *_new = (char *)calloc(strlen(format) + strlen(MODULE_NAME) + 1, sizeof(char));
if (_new == NULL) {
fprintf(stderr, MODULE_NAME "Failed to allocate string for internal console.\n");
return;
}
strncpy(_new, MODULE_NAME, strlen(MODULE_NAME));
strncat(_new, format, strlen(format));
if (optional != nullptr) fprintf(file, _new, *optional);
else
fprintf(file, _new);
free(_new);
}
+333
View File
@@ -0,0 +1,333 @@
#include "pax.h"
// ZFW Entry, fill pax first (pax+bag), rest is cargo
void distribute(paxPayloadData_t *const targetPayload, const FuelData_t *const fuel, const double ZFWTarget,
const UserData_t *const userData, const UserOptions_t *const userOptions) {
// Find payload, num pax and extra cargo
double payload = ZFWTarget - targetPayload->empty - targetPayload->pilot - targetPayload->firstOfficer -
targetPayload->engineer - targetPayload->cabinCrewFront - targetPayload->cabinCrewRear -
targetPayload->leftAux - targetPayload->rightAux;
unsigned short numPax = max(0.0, min((double)MAX_PAX, floor(payload / (PAX_WEIGHT(userData->isImperial, userOptions) +
BAG_WEIGHT(userData->isImperial, userOptions)))));
unsigned int cargo = round(payload - numPax * PAX_WEIGHT(userData->isImperial, userOptions) -
numPax * BAG_WEIGHT(userData->isImperial, userOptions));
distribute(targetPayload, fuel, numPax, cargo, userData, userOptions);
}
// SimBrief Entry, SB pax count and extra cargo
void distribute(paxPayloadData_t *const targetPayload, const FuelData_t *const fuel, unsigned short numPax, unsigned int cargo,
const UserData_t *const userData, const UserOptions_t *const userOptions) {
// Clear
targetPayload->paxCount.business1 = targetPayload->paxCount.business2 = targetPayload->paxCount.economy1 =
targetPayload->paxCount.economy2 = targetPayload->paxCount.total = 0;
targetPayload->forwardCargo = targetPayload->rearCargo = 0;
unsigned short _numPax = 0;
unsigned int count = MAX_PAX;
// Initial distribution pax + bags
while (numPax > 0 && count > 0) {
if (numPax >= 4) {
if (targetPayload->paxCount.business1 < MAX_BUSINESS_1) {
targetPayload->paxCount.business1++;
_numPax++;
}
if (targetPayload->paxCount.business2 < MAX_BUSINESS_2) {
targetPayload->paxCount.business2++;
_numPax++;
}
if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
_numPax++;
}
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
_numPax++;
}
} else if (numPax == 3) {
if (targetPayload->paxCount.business2 < MAX_BUSINESS_2) {
targetPayload->paxCount.business2++;
_numPax++;
}
if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
_numPax++;
}
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
_numPax++;
}
} else if (numPax == 2) {
if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
_numPax++;
}
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
_numPax++;
}
} else if (numPax == 1) {
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
_numPax++;
}
}
numPax -= _numPax;
targetPayload->paxCount.total += _numPax;
if (_numPax % 2 == 0) {
targetPayload->forwardCargo += (_numPax / 2) * BAG_WEIGHT(userData->isImperial, userOptions);
targetPayload->rearCargo += (_numPax / 2) * BAG_WEIGHT(userData->isImperial, userOptions);
} else {
_numPax--;
targetPayload->forwardCargo += (_numPax / 2 + 1) * BAG_WEIGHT(userData->isImperial, userOptions);
targetPayload->rearCargo += (_numPax / 2) * BAG_WEIGHT(userData->isImperial, userOptions);
}
_numPax = 0;
count--;
}
count = MAX_FRONT_CARGO(userData->isImperial);
// Initial distribution of remaining cargo
while (cargo > 0 && count > 0) {
if (targetPayload->forwardCargo < MAX_FRONT_CARGO(userData->isImperial)) {
targetPayload->forwardCargo++;
cargo--;
}
if (targetPayload->rearCargo < MAX_REAR_CARGO(userData->isImperial, userData->isER) && cargo > 0) {
targetPayload->rearCargo++;
cargo--;
}
count--;
}
// Refinement pax
count = MAX_PAX;
unsigned char minBusiness1 = round(targetPayload->paxCount.business1 / 3);
unsigned char minBusiness2 = round(targetPayload->paxCount.business2 / 3);
unsigned char minEconomy1 = round(targetPayload->paxCount.economy1 / 3);
unsigned char minEconomy2 = round(targetPayload->paxCount.economy2 / 3);
while (count > 0) {
generatePayload(targetPayload, userData->isImperial, userOptions);
calculateCGs(targetPayload, fuel, userData->isImperial);
// in front of target
if (targetPayload->ZFWCG < targetPayload->CGTarget - CG_TOLERANCE) {
if (targetPayload->paxCount.business1 > minBusiness1) {
targetPayload->paxCount.business1--;
} else if (targetPayload->paxCount.business2 > minBusiness2) {
targetPayload->paxCount.business2--;
} else if (targetPayload->paxCount.economy1 > minEconomy1) {
targetPayload->paxCount.economy1--;
} else {
break;
}
if (targetPayload->paxCount.economy2 < MAX_ECONOMY_2) {
targetPayload->paxCount.economy2++;
} else if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
} else if (targetPayload->paxCount.business2 < MAX_BUSINESS_2) {
targetPayload->paxCount.business2++;
} else {
targetPayload->paxCount.business1++;
}
}
// behind target
else if (targetPayload->ZFWCG > targetPayload->CGTarget + CG_TOLERANCE) {
if (targetPayload->paxCount.economy2 > minEconomy2) {
targetPayload->paxCount.economy2--;
} else if (targetPayload->paxCount.economy1 > minEconomy1) {
targetPayload->paxCount.economy1--;
} else if (targetPayload->paxCount.business2 > minBusiness2) {
targetPayload->paxCount.business2--;
} else {
break;
}
if (targetPayload->paxCount.business1 < MAX_BUSINESS_1) {
targetPayload->paxCount.business1++;
} else if (targetPayload->paxCount.business2 < MAX_BUSINESS_2) {
targetPayload->paxCount.business2++;
} else if (targetPayload->paxCount.economy1 < MAX_ECONOMY_1) {
targetPayload->paxCount.economy1++;
} else {
targetPayload->paxCount.economy2++;
}
} else {
break;
}
count--;
}
// Refinement cargo
count = MAX_FRONT_CARGO(userData->isImperial) + MAX_REAR_CARGO(userData->isImperial, userData->isER);
while (count > 0) {
generatePayload(targetPayload, userData->isImperial, userOptions);
calculateCGs(targetPayload, fuel, userData->isImperial);
// in front of target
if (targetPayload->ZFWCG < targetPayload->CGTarget - CG_TOLERANCE) {
if (targetPayload->forwardCargo > 0 && targetPayload->rearCargo < MAX_REAR_CARGO(userData->isImperial, userData->isER)) {
if (targetPayload->forwardCargo > BAG_WEIGHT(userData->isImperial, userOptions) &&
targetPayload->rearCargo < MAX_FRONT_CARGO(userData->isImperial) - BAG_WEIGHT(userData->isImperial, userOptions)) {
targetPayload->forwardCargo -= BAG_WEIGHT(userData->isImperial, userOptions);
targetPayload->rearCargo += BAG_WEIGHT(userData->isImperial, userOptions);
} else {
targetPayload->forwardCargo--;
targetPayload->rearCargo++;
}
} else {
break;
}
}
// behind target
else if (targetPayload->ZFWCG > targetPayload->CGTarget + CG_TOLERANCE) {
if (targetPayload->rearCargo > 0 && targetPayload->forwardCargo < MAX_FRONT_CARGO(userData->isImperial)) {
if (targetPayload->rearCargo > BAG_WEIGHT(userData->isImperial, userOptions) &&
targetPayload->forwardCargo <
MAX_REAR_CARGO(userData->isImperial, userData->isER) - BAG_WEIGHT(userData->isImperial, userOptions)) {
targetPayload->rearCargo -= BAG_WEIGHT(userData->isImperial, userOptions);
targetPayload->forwardCargo += BAG_WEIGHT(userData->isImperial, userOptions);
} else {
targetPayload->rearCargo--;
targetPayload->forwardCargo++;
}
} else {
break;
}
} else {
break;
}
count--;
}
}
// Updates pax stations with their respective weights
// Used internally and used for Station Entry (pax only, cargo is set directly)
void generatePayload(paxPayloadData_t *const targetPayload, const bool isImperial, const UserOptions_t *const userOptions) {
targetPayload->business1Left = targetPayload->business1Center = targetPayload->business1Right =
(targetPayload->paxCount.business1 / 3.0) * PAX_WEIGHT(isImperial, userOptions);
targetPayload->business2Left = targetPayload->business2Center = targetPayload->business2Right =
(targetPayload->paxCount.business2 / 3.0) * PAX_WEIGHT(isImperial, userOptions);
targetPayload->economy1Left = targetPayload->economy1Center = targetPayload->economy1Right =
(targetPayload->paxCount.economy1 / 3.0) * PAX_WEIGHT(isImperial, userOptions);
targetPayload->economy2Left = targetPayload->economy2Center = targetPayload->economy2Right =
(targetPayload->paxCount.economy2 / 3.0) * PAX_WEIGHT(isImperial, userOptions);
targetPayload->total = targetPayload->empty + targetPayload->pilot + targetPayload->firstOfficer + targetPayload->engineer +
targetPayload->cabinCrewFront + targetPayload->business1Left + targetPayload->business1Center +
targetPayload->business1Right + targetPayload->business2Left + targetPayload->business2Center +
targetPayload->business2Right + targetPayload->economy1Left + targetPayload->economy1Center +
targetPayload->economy1Right + targetPayload->economy2Left + targetPayload->economy2Center +
targetPayload->economy2Right + targetPayload->cabinCrewRear + targetPayload->forwardCargo +
targetPayload->rearCargo + targetPayload->leftAux + targetPayload->rightAux;
}
// Normalise to Pounds
// MANDATORY BEFORE SETTING WEIGHTS
// USE ON COPY OF GLOBAL STATE ONLY
void normalisePayload(paxPayloadData_t *const targetPayload, const bool isImperial) {
targetPayload->empty = TO_POUNDS(isImperial, targetPayload->empty);
targetPayload->pilot = TO_POUNDS(isImperial, targetPayload->pilot);
targetPayload->firstOfficer = TO_POUNDS(isImperial, targetPayload->firstOfficer);
targetPayload->engineer = TO_POUNDS(isImperial, targetPayload->engineer);
targetPayload->cabinCrewFront = TO_POUNDS(isImperial, targetPayload->cabinCrewFront);
targetPayload->business1Left = TO_POUNDS(isImperial, targetPayload->business1Left);
targetPayload->business1Center = TO_POUNDS(isImperial, targetPayload->business1Center);
targetPayload->business1Right = TO_POUNDS(isImperial, targetPayload->business1Right);
targetPayload->business2Left = TO_POUNDS(isImperial, targetPayload->business2Left);
targetPayload->business2Center = TO_POUNDS(isImperial, targetPayload->business2Center);
targetPayload->business2Right = TO_POUNDS(isImperial, targetPayload->business2Right);
targetPayload->economy1Left = TO_POUNDS(isImperial, targetPayload->economy1Left);
targetPayload->economy1Center = TO_POUNDS(isImperial, targetPayload->economy1Center);
targetPayload->economy1Right = TO_POUNDS(isImperial, targetPayload->economy1Right);
targetPayload->economy2Left = TO_POUNDS(isImperial, targetPayload->economy2Left);
targetPayload->economy2Center = TO_POUNDS(isImperial, targetPayload->economy2Center);
targetPayload->economy2Right = TO_POUNDS(isImperial, targetPayload->economy2Right);
targetPayload->cabinCrewRear = TO_POUNDS(isImperial, targetPayload->cabinCrewRear);
targetPayload->forwardCargo = TO_POUNDS(isImperial, targetPayload->forwardCargo);
targetPayload->rearCargo = TO_POUNDS(isImperial, targetPayload->rearCargo);
targetPayload->leftAux = TO_POUNDS(isImperial, targetPayload->leftAux);
targetPayload->rightAux = TO_POUNDS(isImperial, targetPayload->rightAux);
}
void calculateCGs(paxPayloadData_t *const targetPayload, const FuelData_t *const fuel, const bool isImperial) {
paxPayloadData_t localPayload = {};
memcpy(&localPayload, targetPayload, sizeof(localPayload));
normalisePayload(&localPayload, isImperial);
double totalMoment =
localPayload.empty * ARM_EMPTY + localPayload.pilot * ARM_PILOT + localPayload.firstOfficer * ARM_FIRST_OFFICER +
localPayload.engineer * ARM_ENGINEER + localPayload.cabinCrewFront * ARM_PAX_CABIN_CREW_FRONT +
localPayload.business1Left * ARM_PAX_BUSINESS1_LEFT + localPayload.business1Center * ARM_PAX_BUSINESS1_CENTER +
localPayload.business1Right * ARM_PAX_BUSINESS1_RIGHT + localPayload.business2Left * ARM_PAX_BUSINESS2_LEFT +
localPayload.business2Center * ARM_PAX_BUSINESS2_CENTER + localPayload.business2Right * ARM_PAX_BUSINESS2_RIGHT +
localPayload.economy1Left * ARM_PAX_ECONOMY1_LEFT + localPayload.economy1Center * ARM_PAX_ECONOMY1_CENTER +
localPayload.economy1Right * ARM_PAX_ECONOMY1_RIGHT + localPayload.economy2Left * ARM_PAX_ECONOMY2_LEFT +
localPayload.economy2Center * ARM_PAX_ECONOMY2_CENTER + localPayload.economy2Right * ARM_PAX_ECONOMY2_RIGHT +
localPayload.cabinCrewRear * ARM_PAX_CABIN_CREW_REAR + localPayload.forwardCargo * ARM_FORWARD_CARGO +
localPayload.rearCargo * ARM_REAR_CARGO + localPayload.leftAux * ARM_LEFT_AUX + localPayload.rightAux * ARM_RIGHT_AUX;
double totalWeight = localPayload.empty + localPayload.pilot + localPayload.firstOfficer + localPayload.engineer +
localPayload.cabinCrewFront + localPayload.business1Left + localPayload.business1Center +
localPayload.business1Right + localPayload.business2Left + localPayload.business2Center +
localPayload.business2Right + localPayload.economy1Left + localPayload.economy1Center +
localPayload.economy1Right + localPayload.economy2Left + localPayload.economy2Center +
localPayload.economy2Right + localPayload.cabinCrewRear + localPayload.forwardCargo +
localPayload.rearCargo + localPayload.leftAux + localPayload.rightAux;
targetPayload->ZFWCG = TO_PERCENT_MAC(totalMoment / totalWeight);
totalMoment += fuel->main1 * ARM_MAIN1 + fuel->main3 * ARM_MAIN3 + fuel->main2 * ARM_MAIN2 + fuel->upperAux * ARM_UPPER_AUX +
fuel->lowerAux * ARM_LOWER_AUX + fuel->main1Tip * ARM_MAIN1_TIP + fuel->main3Tip * ARM_MAIN3_TIP +
fuel->tail * ARM_TAIL + fuel->forwardAux1 * ARM_FORWARD_AUX1 + fuel->forwardAux2 * ARM_FORWARD_AUX2;
totalWeight += fuel->total;
targetPayload->TOCG = TO_PERCENT_MAC(totalMoment / totalWeight);
}
void load(const paxPayloadData_t *const targetPayload, const FuelData_t *const fuel, const HANDLE simConnect,
const bool isImperial) {
paxPayloadData_t localPayload = {};
memcpy(&localPayload, targetPayload, sizeof(localPayload));
normalisePayload(&localPayload, isImperial);
calculateCGs(&localPayload, fuel, isImperial);
localPayload._ZFWCG = localPayload.ZFWCG / 100.0;
toLog(stdout, "Payload set with ZFWCG: %f.\n", &localPayload.ZFWCG);
SimConnect_SetDataOnSimObject(simConnect, DATA_DEFINITION_PAYLOAD_PAX, SIMCONNECT_OBJECT_ID_USER_AIRCRAFT, 0, 0,
sizeof(paxPayloadDataSet_t), &localPayload);
}
void unload(const HANDLE simConnect, const FuelData_t *const fuel, const double empty, const bool isER) {
paxPayloadData_t localPayload = {};
localPayload.empty = empty;
localPayload.cabinCrewFront = FRONT_CREW_WEIGHT(true);
localPayload.cabinCrewRear = REAR_CREW_WEIGHT(true);
localPayload.leftAux = localPayload.rightAux = isER ? AUX_WEIGHT(true) : 0;
localPayload.pilot = localPayload.firstOfficer = localPayload.engineer = PILOT_WEIGHT(true);
calculateCGs(&localPayload, fuel, true);
localPayload._ZFWCG = localPayload.ZFWCG / 100.0;
toLog(stdout, "Payload set with ZFWCG: %f.\n", &localPayload.ZFWCG);
SimConnect_SetDataOnSimObject(simConnect, DATA_DEFINITION_PAYLOAD_PAX, SIMCONNECT_OBJECT_ID_USER_AIRCRAFT, 0, 0,
sizeof(paxPayloadDataSet_t), &localPayload);
}
double PAX_WEIGHT(const bool isImperial, const UserOptions_t *const options) {
return (isImperial) ? (options->paxWeightLBS) : (options->paxWeightKG);
}
double BAG_WEIGHT(const bool isImperial, const UserOptions_t *const options) {
return (isImperial) ? (options->bagWeightLBS) : (options->bagWeightKG);
}
@@ -0,0 +1,64 @@
const fs = require('fs');
const path = require('path');
const BASE_DIRS = ['.'];
let THRESHOLD = parseInt(process.argv.at(-1) ?? 2048);
THRESHOLD = isNaN(THRESHOLD) ? 2048 : THRESHOLD;
console.log(`Threshold at ${THRESHOLD} bytes`);
let LEVEL =
process.argv.includes('--level') ? process.argv[process.argv.findIndex((p) => p === '--level') + 1] : undefined;
if (LEVEL !== 'info') LEVEL = undefined;
console.log(`Log level ${LEVEL ?? 'default'}`);
BASE_DIRS.forEach((BASE_DIR) => {
console.log(`Analysis for ${BASE_DIR}`);
const output = fs.openSync(path.join(BASE_DIR, 'stack-analysis.log'), 'w');
let functions = [];
let files = fs.readdirSync(BASE_DIR);
files = files.filter((file) => file.endsWith('.su'));
files.forEach((file) => {
const content = fs.readFileSync(path.join(BASE_DIR, file), {
encoding: 'utf8',
});
const _functions = content.split('\n');
_functions.forEach((_function) => {
const fields = _function.split('\t');
if (fields.length != 3) return;
functions.push({
name: fields[0],
cost: parseInt(fields[1]),
type: fields[2],
});
});
fs.unlinkSync(path.join(BASE_DIR, file));
});
functions = functions.sort((a, b) => b.cost - a.cost);
functions.forEach((_function) => {
if (_function.cost === THRESHOLD) {
console.warn(
`\x1b[33mFunction \x1b[1m${_function.name}\x1b[0m \x1b[33mat threshold (\x1b[1m${_function.cost}\x1b[0m\x1b[33m)\x1b[0m`
);
} else if (_function.cost >= THRESHOLD) {
console.error(
`\x1b[31mFunction \x1b[1m${_function.name}\x1b[0m \x1b[31mexceeds threshold (\x1b[1m${_function.cost}\x1b[0m\x1b[31m)\x1b[0m`
);
} else if (LEVEL === 'info') {
console.error(
`\x1b[32mFunction \x1b[1m${_function.name}\x1b[0m \x1b[32mbelow threshold (\x1b[1m${_function.cost}\x1b[0m\x1b[32m)\x1b[0m`
);
}
fs.writeSync(output, `${_function.cost}\t${_function.type}\t${_function.name}\n`, null, { encoding: 'utf8' });
});
fs.closeSync(output);
});
-290
View File
@@ -1,290 +0,0 @@
#pragma once
// Constants
//TODO: Make User adjustable
// Based on ICAO/LH findings
#define PAX_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (190.0) : (86.0))
#define BAG_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (50.0) : (23.0))
// 190lbs default
#define PILOT_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (190.0) : (86.0))
// 2x 190lbs default
#define FRONT_CREW_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (380.0) : (172.0))
// 5x 190lbs default
#define REAR_CREW_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (950.0) : (430.0))
// 200lbs per tank (one LD3)
#define AUX_WEIGHT(IS_IMPERIAL) ((IS_IMPERIAL) ? (200.0) : (91.0))
//PMC pallet due to 104in door
#define MAX_FRONT_CARGO(IS_IMPERIAL) ((IS_IMPERIAL) ? (6.0 * 15000.0) : (6.0 * 6804.0))
#define MAX_UPPER_CARGO(IS_IMPERIAL) ((IS_IMPERIAL) ? (6.5 * 15000.0) : (6.5 * 6804.0))
//LD3s due to 70in door
#define MAX_REAR_CARGO(IS_IMPERIAL, IS_ER) ((IS_IMPERIAL) ? ((IS_ER ? 12.0 : 14.0) * 3500.0) : ((IS_ER ? 12.0 : 14.0) * 1588.0))
// All actual Business seats
#define MAX_BUSINESS_1 30
// First 5 rows of economy
#define MAX_BUSINESS_2 45
// Next 14 rows
#define MAX_ECONOMY_1 86
// Remaining rows
#define MAX_ECONOMY_2 137
// Total
#define MAX_PAX 298
// Max ZFW
#define MAX_PAX_ZFW(IS_IMPERIAL) ((IS_IMPERIAL) ? (400000) : (181437))
#define MAX_F_ZFW(IS_IMPERIAL) ((IS_IMPERIAL) ? (451300) : (204706))
// Max TOW
#define MAX_TOW(IS_IMPERIAL) ((IS_IMPERIAL) ? (625500) : (283722))
#define MAX_TOW_ER(IS_IMPERIAL) ((IS_IMPERIAL) ? (630500) : (285990))
// Max Fuel
#define MAX_FUEL(IS_IMPERIAL) ((IS_IMPERIAL) ? (256207) : (116213))
#define MAX_FUEL_ER(IS_IMPERIAL) ((IS_IMPERIAL) ? (282619) : (128193))
// Arms
// Shared part 1
#define ARM_EMPTY -159.6
// Pax Only
#define ARM_PILOT 984.0
#define ARM_FIRST_OFFICER 984.0
#define ARM_ENGINEER 960.0
#define ARM_PAX_CABIN_CREW_FRONT 792.0
#define ARM_PAX_BUSINESS1_LEFT 540.0
#define ARM_PAX_BUSINESS1_CENTER 540.0
#define ARM_PAX_BUSINESS1_RIGHT 540.0
#define ARM_PAX_BUSINESS2_LEFT 300.0
#define ARM_PAX_BUSINESS2_CENTER 300.0
#define ARM_PAX_BUSINESS2_RIGHT 300.0
#define ARM_PAX_ECONOMY1_LEFT -240.0
#define ARM_PAX_ECONOMY1_CENTER -240.0
#define ARM_PAX_ECONOMY1_RIGHT -240.0
#define ARM_PAX_ECONOMY2_LEFT -600.0
#define ARM_PAX_ECONOMY2_CENTER -600.0
#define ARM_PAX_ECONOMY2_RIGHT -600.0
#define ARM_PAX_CABIN_CREW_REAR -660.0
// Cargo only
#define ARM_F_UPPER1_LEFT 660
#define ARM_F_UPPER1_RIGHT 660
#define ARM_F_UPPER2_LEFT 240
#define ARM_F_UPPER2_RIGHT 240
#define ARM_F_UPPER3_LEFT -240
#define ARM_F_UPPER3_RIGHT -240
#define ARM_F_UPPER4_LEFT -600
#define ARM_F_UPPER4_RIGHT -600
// Shared part 2
#define ARM_FORWARD_CARGO 360.0
#define ARM_REAR_CARGO -360.0
#define ARM_LEFT_AUX 60.0
#define ARM_RIGHT_AUX 60.0
// Fuel
#define ARM_MAIN1 -240.0
#define ARM_MAIN3 -240.0
#define ARM_MAIN2 120.0
#define ARM_UPPER_AUX 0.0
#define ARM_LOWER_AUX 0.0
#define ARM_MAIN1_TIP -468.0
#define ARM_MAIN3_TIP -468.0
#define ARM_TAIL -840.0
#define ARM_FORWARD_AUX1 60.0
#define ARM_FORWARD_AUX2 60.0
// MAC Stuff
// TODO: Extract following four from CFG at runtime
#define ROOT_CHORD 34.68
#define WING_SPAN 170.5
#define WING_AREA 3648.0
#define QUARTER_MAC -165.0 //aero_center
#define TIP_CHORD ((2.0 * WING_AREA) / WING_SPAN - ROOT_CHORD)
#define TAPER_RATIO (TIP_CHORD / ROOT_CHORD)
#define MAC ((2.0 / 3.0) * ROOT_CHORD * ((1.0 + TAPER_RATIO + (TAPER_RATIO * TAPER_RATIO)) / (1.0 + TAPER_RATIO)) * 12.0)
#define LEMAC (QUARTER_MAC + (1.0 / 4.0) * MAC)
#define TO_PERCENT_MAC(POS) ((((POS) - LEMAC) / MAC) * -100.0)
// CG Limits
#define MIN_CG 12.0
#define MAX_CG 34.0
#define CG_TOLERANCE 0.05
// Conversions
#define TO_POUNDS(IS_IMPERIAL, VALUE) ((IS_IMPERIAL) ? (VALUE) : (VALUE) * 2.20462262185)
#define FROM_POUNDS(IS_IMPERIAL, VALUE) ((IS_IMPERIAL) ? (VALUE) : (VALUE) * (1.0 / 2.20462262185))
// GSX States
#define GSX_SERVICE_ACTIVE 5
// SimConnect ENUMs
enum DATA_DEFINITIONS {
DATA_DEFINITION_EMPTY_WEIGHT,
DATA_DEFINITION_PAYLOAD_PAX,
DATA_DEFINITION_PAYLOAD_F,
DATA_DEFINITION_FUEL,
DATA_DEFINITION_GSX,
DATA_DEFINITION_USER_DATA,
};
enum DATA_REQUESTS {
DATA_REQUEST_EMPTY_WEIGHT,
DATA_REQUEST_PAYLOAD_PAX,
DATA_REQUEST_PAYLOAD_F,
DATA_REQUEST_FUEL,
DATA_REQUEST_GSX,
DATA_REQUEST_USER_DATA,
};
// Data
typedef struct {
double isCargo;
double isER;
double isImperial;
} UserData_t;
typedef struct {
double boardingState; // See manual, 5 => active
double deboardingState; // See manual, 5 => active
double passengersBoarded; // Num pax
double passengersDeboarded; // Num pax
double cargoBoarded; // In percent
double cargoDeboarded; // In percent
} GSXData_t;
typedef struct {
// SimConnect mapped
double pilot;
double firstOfficer;
double engineer;
double cabinCrewFront;
double business1Left;
double business1Center;
double business1Right;
double business2Left;
double business2Center;
double business2Right;
double economy1Left;
double economy1Center;
double economy1Right;
double economy2Left;
double economy2Center;
double economy2Right;
double cabinCrewRear;
double forwardCargo;
double rearCargo;
double leftAux;
double rightAux;
// Additional properties
double empty;
double total;
double CGTarget;
double ZFWCG;
double TOCG;
struct paxCount {
unsigned char business1;
unsigned char business2;
unsigned char economy1;
unsigned char economy2;
unsigned short total;
} paxCount;
} paxPayloadData_t;
typedef struct {
double pilot;
double firstOfficer;
double engineer;
double cabinCrewFront;
double business1Left;
double business1Center;
double business1Right;
double business2Left;
double business2Center;
double business2Right;
double economy1Left;
double economy1Center;
double economy1Right;
double economy2Left;
double economy2Center;
double economy2Right;
double cabinCrewRear;
double forwardCargo;
double rearCargo;
double leftAux;
double rightAux;
} paxPayloadDataSet_t;
typedef struct {
// SimConnect mapped
double pilot;
double firstOfficer;
double engineer;
double upper1Left;
double upper1Right;
double upper2Left;
double upper2Right;
double upper3Left;
double upper3Right;
double upper4Left;
double upper4Right;
double lowerForward;
double lowerRear;
double leftAux;
double rightAux;
// Additional properties
double empty;
double total;
double CGTarget;
double ZFWCG;
double TOCG;
struct stations {
unsigned int upper1;
unsigned int upper2;
unsigned int upper3;
unsigned int upper4;
unsigned int total;
} stations;
} fPayloadData_t;
typedef struct {
// SimConnect mapped
double pilot;
double firstOfficer;
double engineer;
double upper1Left;
double upper1Right;
double upper2Left;
double upper2Right;
double upper3Left;
double upper3Right;
double upper4Left;
double upper4Right;
double lowerForward;
double lowerRear;
double leftAux;
double rightAux;
} fPayloadDataSet_t;
typedef struct {
// SimConnect mapped
double poundsPerGallon; // DO NOT USE
double main1;
double main3;
double main2;
double upperAux;
double lowerAux;
double main1Tip;
double main3Tip;
double tail;
double forwardAux1;
double forwardAux2;
// Additional properties
double total;
} FuelData_t;
typedef struct {
bool GSXSync;
double paxWeightKG;
double bagWeightKG;
double paxWeightLBS;
double bagWeightLBS;
} UserOptions_t;

Some files were not shown because too many files have changed in this diff Show More