@@ -54,7 +54,7 @@ public enum ManeuverType
5454/// <summary>
5555/// The selected time Reference
5656/// </summary>
57- public enum TimeRef
57+ public enum TimeReference
5858{
5959 None ,
6060 COMPUTED ,
@@ -949,7 +949,7 @@ public bool SetNewSMA(double burnUT, double newSMA, double burnOffsetFactor = -0
949949 }
950950
951951 // No longer takes double burnUT. Need to sort out how this can be called as an API method
952- public bool MatchPlanes ( TimeRef time_ref , double burnOffsetFactor = - 0.5 )
952+ public bool MatchPlanes ( TimeReference time_ref , double burnOffsetFactor = - 0.5 )
953953 {
954954 double _UT = Game . UniverseModel . UniverseTime ;
955955 PatchedConicsOrbit _orbit = _activeVessel . Orbit ;
@@ -970,18 +970,18 @@ public bool MatchPlanes(TimeRef time_ref, double burnOffsetFactor = -0.5)
970970 FPStatus . Ok ( $ "Ready to Match Planes with { _currentTarget . Name } { BurnTimeOption . TimeRefDesc } ") ;
971971
972972 Vector3d _deltaV = Vector3d . zero ;
973- if ( time_ref == TimeRef . REL_ASCENDING )
973+ if ( time_ref == TimeReference . REL_ASCENDING )
974974 _deltaV = OrbitalManeuverCalculator . DeltaVAndTimeToMatchPlanesAscending ( _orbit , tgtOrbit , _UT , out burnUTout ) ;
975- else if ( time_ref == TimeRef . REL_DESCENDING )
975+ else if ( time_ref == TimeReference . REL_DESCENDING )
976976 _deltaV = OrbitalManeuverCalculator . DeltaVAndTimeToMatchPlanesDescending ( _orbit , tgtOrbit , _UT , out burnUTout ) ;
977- else if ( time_ref == TimeRef . REL_NEAREST_AD )
977+ else if ( time_ref == TimeReference . REL_NEAREST_AD )
978978 {
979979 if ( _orbit . TimeOfAscendingNode ( tgtOrbit , _UT ) < _orbit . TimeOfDescendingNode ( tgtOrbit , _UT ) )
980980 _deltaV = OrbitalManeuverCalculator . DeltaVAndTimeToMatchPlanesAscending ( _orbit , tgtOrbit , _UT , out burnUTout ) ;
981981 else
982982 _deltaV = OrbitalManeuverCalculator . DeltaVAndTimeToMatchPlanesDescending ( _orbit , tgtOrbit , _UT , out burnUTout ) ;
983983 }
984- else if ( time_ref == TimeRef . REL_HIGHEST_AD )
984+ else if ( time_ref == TimeReference . REL_HIGHEST_AD )
985985 {
986986 var anTime = _orbit . TimeOfAscendingNode ( tgtOrbit , _UT ) ;
987987 var dnTime = _orbit . TimeOfDescendingNode ( tgtOrbit , _UT ) ;
@@ -1168,7 +1168,7 @@ public bool MoonReturn(double burnUT, double targetMRPeR, double burnOffsetFacto
11681168 PatchedConicsOrbit _orbit = _activeVessel . Orbit ;
11691169 Vector3d _deltaV ;
11701170
1171- Logger . LogDebug ( $ "MoonReturn: Return from { _orbit . referenceBody . Name } { BurnTimeOption . TimeRefDesc } ") ;
1171+ Logger . LogDebug ( $ "MoonReturn: Return from { _orbit . referenceBody . Name } { BurnTimeOption . TimeRefDesc } seeking Pe { targetMRPeR / 1000 : N3 } km ") ;
11721172 var _e = _orbit . eccentricity ;
11731173
11741174 FPStatus . Warning ( $ "Ready to Return from { _orbit . referenceBody . Name } ?") ;
@@ -1249,7 +1249,7 @@ public bool PlanetaryXfer(double burnUT, double burnOffsetFactor = -0.5)
12491249
12501250 bool _syncPhaseAngle = true ;
12511251 // Check the BurnOptionsDropdown
1252- if ( FpUiController . BurnOptionsDropdown . value == BurnTimeOption . TextTimeRef [ TimeRef . NEXT_WINDOW ] )
1252+ if ( FpUiController . BurnOptionsDropdown . value == BurnTimeOption . TextTimeRef [ TimeReference . NEXT_WINDOW ] )
12531253 _syncPhaseAngle = true ;
12541254 else
12551255 _syncPhaseAngle = false ;
0 commit comments