Skip to content

Commit

Permalink
Updated XP11/12 engine type dataref to fix fuel weight issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sushiat committed Nov 23, 2023
1 parent 9c621d1 commit 251fac8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
16 changes: 9 additions & 7 deletions OpenSky.Agent.UdpXPlane11/Models/WeightAndBalanceDataRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions OpenSky.Agent/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
--------------------------------------------------------------------------------------
Expand Down

0 comments on commit 251fac8

Please sign in to comment.