From 251fac827a8f6602103cc9c396758946a96ed584 Mon Sep 17 00:00:00 2001 From: "sushi.at" Date: Thu, 23 Nov 2023 16:05:58 +0000 Subject: [PATCH] Updated XP11/12 engine type dataref to fix fuel weight issue --- .../Models/WeightAndBalanceDataRef.cs | 16 +++++++++------- OpenSky.Agent/Properties/AssemblyInfo.cs | 4 ++-- changelog.txt | 5 +++++ 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/OpenSky.Agent.UdpXPlane11/Models/WeightAndBalanceDataRef.cs b/OpenSky.Agent.UdpXPlane11/Models/WeightAndBalanceDataRef.cs index d4f40a2..c178e51 100644 --- a/OpenSky.Agent.UdpXPlane11/Models/WeightAndBalanceDataRef.cs +++ b/OpenSky.Agent.UdpXPlane11/Models/WeightAndBalanceDataRef.cs @@ -154,15 +154,17 @@ private void DataRefUpdated(DataRefElement element, float value) { this.FuelWeightPerGallon = (int)value switch { - 0 => 6, - 1 => 6, - 2 => 6.7, + 0 => 6, // Recip carb + 1 => 6, // Recip injected + 2 => 6.7, // Free turbo deprecated 3 => 0, // Electric engine - 4 => 6.7, - 5 => 6.7, + 4 => 6.7, // Lo Bypass Jet deprecated + 5 => 6.7, // Single spool jet 6 => 0, // Rocket - 7 => 0, // Tip rockets - 8 => 6.7, + 7 => 6.7, // Multi spool jet + 8 => 6.7, // Turbo Prop Fixed deprecated + 9 => 6.7, // Free turbo prop + 10 => 6.7, // Fixed turbo prop _ => 0 }; updateFuelValues = true; diff --git a/OpenSky.Agent/Properties/AssemblyInfo.cs b/OpenSky.Agent/Properties/AssemblyInfo.cs index ccc5344..64dff84 100644 --- a/OpenSky.Agent/Properties/AssemblyInfo.cs +++ b/OpenSky.Agent/Properties/AssemblyInfo.cs @@ -21,8 +21,8 @@ [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)] -[assembly: AssemblyVersion("0.5.1")] -[assembly: AssemblyFileVersion("0.5.1")] +[assembly: AssemblyVersion("0.5.2")] +[assembly: AssemblyFileVersion("0.5.2")] // This allows us to detect debug mode in XAML #if DEBUG diff --git a/changelog.txt b/changelog.txt index f1daef4..e127196 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,11 @@ OpenSky Flight Tracking Agent Changelog ====================================================================================== +-------------------------------------------------------------------------------------- +Version 0.5.2 (ALPHA5) +-------------------------------------------------------------------------------------- +- Updated XP11/12 engine type dataref to fix fuel weight issue + -------------------------------------------------------------------------------------- Version 0.5.1 (ALPHA5) --------------------------------------------------------------------------------------