Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#region Using Directives

using System;
using System.Linq;

using KerbalEngineer.Extensions;
using KerbalEngineer.Flight.Readouts.Vessel;
Expand Down Expand Up @@ -75,6 +76,8 @@ public static ManoeuvreProcessor Instance

public static double RadialDeltaV { get; private set; }

public static double TripDeltaV { get; private set; }

public static bool ShowDetails { get; set; }

public static double TotalDeltaV { get; private set; }
Expand Down Expand Up @@ -135,6 +138,12 @@ public void Update()
BurnTime = burnTime;
HalfBurnTime = midPointTime;

var tripDeltaV = TotalDeltaV;
foreach (var n in FlightGlobals.ActiveVessel.patchedConicSolver.maneuverNodes.Skip(1) ) {
tripDeltaV += n.DeltaV.magnitude;
}
TripDeltaV = tripDeltaV;

ShowDetails = true;
}

Expand Down
1 change: 1 addition & 0 deletions KerbalEngineer/Flight/Readouts/ReadoutLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ static ReadoutLibrary()
readouts.Add(new SpeedAtApoapsis());
readouts.Add(new SpeedAtPeriapsis());
readouts.Add(new TimeToAtmosphere());
readouts.Add(new TripTotalDeltaV());

// Surface
readouts.Add(new AltitudeSeaLevel());
Expand Down
1 change: 1 addition & 0 deletions KerbalEngineer/KerbalEngineer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
<Compile Include="Flight\Readouts\Orbital\ManoeuvreNode\PostBurnInclination.cs" />
<Compile Include="Flight\Readouts\Orbital\ManoeuvreNode\PostBurnPeriapsis.cs" />
<Compile Include="Flight\Readouts\Orbital\ManoeuvreNode\PostBurnPeriod.cs" />
<Compile Include="Flight\Readouts\Orbital\ManoeuvreNode\TripTotalDeltaV.cs" />
<Compile Include="Flight\Readouts\Orbital\MeanAnomalyAtEpoc.cs" />
<Compile Include="Flight\Readouts\Orbital\MeanAnomaly.cs" />
<Compile Include="Flight\Readouts\Orbital\EccentricAnomaly.cs" />
Expand Down