File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 20
20
#region Using Directives
21
21
22
22
using System ;
23
+ using System . Linq ;
23
24
24
25
using KerbalEngineer . Extensions ;
25
26
using KerbalEngineer . Flight . Readouts . Vessel ;
@@ -75,6 +76,8 @@ public static ManoeuvreProcessor Instance
75
76
76
77
public static double RadialDeltaV { get ; private set ; }
77
78
79
+ public static double TripDeltaV { get ; private set ; }
80
+
78
81
public static bool ShowDetails { get ; set ; }
79
82
80
83
public static double TotalDeltaV { get ; private set ; }
@@ -135,6 +138,12 @@ public void Update()
135
138
BurnTime = burnTime ;
136
139
HalfBurnTime = midPointTime ;
137
140
141
+ var tripDeltaV = TotalDeltaV ;
142
+ foreach ( var n in FlightGlobals . ActiveVessel . patchedConicSolver . maneuverNodes . Skip ( 1 ) ) {
143
+ tripDeltaV += n . DeltaV . magnitude ;
144
+ }
145
+ TripDeltaV = tripDeltaV ;
146
+
138
147
ShowDetails = true ;
139
148
}
140
149
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ static ReadoutLibrary()
96
96
readouts . Add ( new SpeedAtApoapsis ( ) ) ;
97
97
readouts . Add ( new SpeedAtPeriapsis ( ) ) ;
98
98
readouts . Add ( new TimeToAtmosphere ( ) ) ;
99
+ readouts . Add ( new TripTotalDeltaV ( ) ) ;
99
100
100
101
// Surface
101
102
readouts . Add ( new AltitudeSeaLevel ( ) ) ;
Original file line number Diff line number Diff line change 86
86
<Compile Include =" Flight\Readouts\Orbital\ManoeuvreNode\PostBurnInclination.cs" />
87
87
<Compile Include =" Flight\Readouts\Orbital\ManoeuvreNode\PostBurnPeriapsis.cs" />
88
88
<Compile Include =" Flight\Readouts\Orbital\ManoeuvreNode\PostBurnPeriod.cs" />
89
+ <Compile Include =" Flight\Readouts\Orbital\ManoeuvreNode\TripTotalDeltaV.cs" />
89
90
<Compile Include =" Flight\Readouts\Orbital\MeanAnomalyAtEpoc.cs" />
90
91
<Compile Include =" Flight\Readouts\Orbital\MeanAnomaly.cs" />
91
92
<Compile Include =" Flight\Readouts\Orbital\EccentricAnomaly.cs" />
You can’t perform that action at this time.
0 commit comments