Skip to content

Commit

Permalink
Merge pull request #38 from Falki-git/dev
Browse files Browse the repository at this point in the history
v1.8.1 Fixed Drag & Lift
  • Loading branch information
Falki-git authored Mar 24, 2024
2 parents f6c23aa + 2938aaf commit 9bb14bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion plugin_template/swinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Micro Engineer",
"description": "Get in-flight and VAB information about your current vessel",
"source": "https://github.com/Falki-git/MicroEngineer",
"version": "1.8.0",
"version": "1.8.1",
"version_check": "https://raw.githubusercontent.com/Falki-git/MicroEngineer/master/plugin_template/swinfo.json",
"ksp2_version": {
"min": "0.2.0",
Expand Down
28 changes: 4 additions & 24 deletions src/MicroEngineer/Entries/FlightEntries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,20 +244,10 @@ public TotalLift()

public override void RefreshData()
{
EntryValue = AeroForces.TotalLift;
EntryValue = AeroForces.TotalLift * 1000;
}

public override string ValueDisplay
{
get
{
if (EntryValue == null)
return "-";

double toReturn = (double)EntryValue * 1000;
return String.IsNullOrEmpty(base.Formatting) ? toReturn.ToString() : String.Format(base.Formatting, toReturn);
}
}
public override string ValueDisplay => base.ValueDisplay;
}

public class TotalDrag : FlightEntry
Expand All @@ -279,20 +269,10 @@ public TotalDrag()

public override void RefreshData()
{
EntryValue = AeroForces.TotalDrag;
EntryValue = AeroForces.TotalDrag * 1000;
}

public override string ValueDisplay
{
get
{
if (EntryValue == null)
return "-";

double toReturn = (double)EntryValue * 1000;
return String.IsNullOrEmpty(base.Formatting) ? toReturn.ToString() : String.Format(base.Formatting, toReturn);
}
}
public override string ValueDisplay => base.ValueDisplay;
}

public class LiftDivDrag : FlightEntry
Expand Down
2 changes: 1 addition & 1 deletion src/MicroEngineer/Utilities/TransferInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static bool CalculateParameters()
from.localPosition = Utility.ActiveVessel.Orbit.Position.localPosition;
from.currentOrbit = Utility.ActiveVessel.Orbit;

// Inner lookp => ActiveVessel (from)
// Inner loop => ActiveVessel (from)
for (int j = 0; j < numberOfLoopTries; j++)
{
if (from.referenceBody == to.referenceBody)
Expand Down

0 comments on commit 9bb14bd

Please sign in to comment.