Skip to content
Success

Changes

Summary

  1. Allow physics timewarp while rotating to a maneuver node (commit: 0d7a1a7) (details)
  2. Ignore roll angular velocity in node executor (commit: 1ef55d2) (details)
  3. Fix Classic Ascent with sliders fully left (commit: 96b2ecd) (details)
  4. Don't spam the log file with "Null" (commit: 0d9594f) (details)
  5. Fix desiredThrust calculation in ProcessUllage() (commit: 595c67e) (details)
  6. Add 'Kill Rotation' flag to AttitudeController (commit: 22f8418) (details)
  7. Use 'Kill Rotation' flag in NodeExecutor (commit: d8c71ae) (details)
  8. fix: feature unexpectedly unlocking in career mode (commit: 9b2cfca) (details)
  9. fix: name mismatch in the unlock conditions for AscentMenu(AscentGuidance) feature. (commit: f802099) (details)
  10. For hotstaging, sum stages with the same number (commit: 1db1e8b) (details)
  11. grammar fix (commit: 3ba8014) (details)
  12. Fix TimeToPlane for equatorial orbits (commit: 979836c) (details)
  13. fix two strings missing in en and fr localization (commit: 6a6fbb1) (details)
  14. Commit fixes the bug from issue #2048 (commit: c767cd8) (details)
  15. Fix clamping of attach altitude (commit: 6f6320a) (details)
  16. v2.15.2 (commit: 548e41f) (details)
Commit 0d7a1a76e3aa476308a8f4c752cd453d9457deb8 by lamont
Allow physics timewarp while rotating to a maneuver node

Only reset to 1x warp if in on-rails timewarp.
(commit: 0d7a1a7)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 1ef55d238f10ca0f762b30fb94ca11b0d93f84d7 by lamont
Ignore roll angular velocity in node executor

Roll was included when determining if the craft had settled down, but
since it was deliberately left uncontrolled, the roll rate would never
decrease; this prevented the node executor from going to warp unless
'kicked' (when timewarp removes all angular momemtum).

Fixes #1981.
(commit: 1ef55d2)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 96b2ecd9ecdf07660129c07c68aa53ad4c3bd130 by lamont
Fix Classic Ascent with sliders fully left

It sometimes takes a few ticks before the base game updates the vessel's
situation. This means that `VerticalHeadingTo` will disable the
actuation controls during this time.

If the vessel switches from `VERTICAL_ASCENT` to `GRAVITY_TURN` before
the situation changes, the actuation controls never get re-enabled
(`VerticalHeadingTo` never gets called while, according to the game, the
vessel has lifted off). This can happen if the pitch start velocity is
very small, for example if the auto-turn velocity slider is all the way
to the left.

This change makes sure that the actuation controls also get enabled
properly while in the `GRAVITY_TURN` phase of flight, by enabling the
actuation controls at the same time as the axis controls in the
`AttitudeTo` method.

Fixes the root cause of the problem in #2025.
(commit: 96b2ecd)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
Commit 0d9594f15836f01eb5e99c5923fe25cbb30d0bd6 by lamont
Don't spam the log file with "Null"

When no exception occurred in the optimizer, PSG prints "Null" to the
debug log every second. This commit reduces this log spam; now it only
prints the exception if an exception actually occured.
(commit: 0d9594f)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
Commit 595c67ebdad7a95ba0687025583211bf8cfa38f8 by lamont
Fix desiredThrust calculation in ProcessUllage()
(commit: 595c67e)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
Commit 22f841831210bf814d896654aa4d00a1b2b74000 by lamont
Add 'Kill Rotation' flag to AttitudeController

Also clean up the 'SetAxisControl' toggles a bit; the axis control
settings were set the same in three different places. Now it's done only
once.
(commit: 22f8418)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
Commit d8c71aec6688d4280e5c4aa72233796a8f53cf7c by lamont
Use 'Kill Rotation' flag in NodeExecutor
(commit: d8c71ae)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 9b2cfca7db8fb83f65dee394e4a301d92a9ba179 by lamont
fix: feature unexpectedly unlocking in career mode
(commit: 9b2cfca)
The file was modified MechJeb2/ComputerModule.cs (diff)
The file was modified MechJeb2/DisplayModule.cs (diff)
Commit f80209908dc9c8b38ee9e296fecf331dfcaebc32 by lamont
fix: name mismatch in the unlock conditions for AscentMenu(AscentGuidance) feature.
(commit: f802099)
The file was modified Parts/MechJeb2_AR202/part.cfg (diff)
Commit 1db1e8b8f1fb421fbfc598e300edf2faf83a35e6 by lamont
For hotstaging, sum stages with the same number

If a stage has ullage motors that light at the same time as the main
engine, then hotstaging the _next_ stage does not work properly. Since
both the ullage motors and the "regular" engine have the same KSP stage
number, hotstaging starts when the ullage motors have less than
`HotStagingLeadTime` seconds left to burn, even if the main engine burn
time is much longer.

With this change, all burn times with the same KSP stage are added up
to calculate the `LastNonZeroDVStageBurnTime`.
(commit: 1db1e8b)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit 3ba80142b2e45ec72ff5fcaf1acc00f86f4ab7f6 by lamont
grammar fix

rescued from #2025

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 3ba8014)
The file was modified Localization/en-us.cfg (diff)
Commit 979836c1a02604b42b2392f18a119097ae14efb7 by lamont
Fix TimeToPlane for equatorial orbits

And make the tests green.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 979836c)
The file was modified MechJebLibTest/FunctionsTests.cs (diff)
The file was modified MechJebLib/Functions/Astro.cs (diff)
Commit 6a6fbb1f3563d85151177f66c7e75641b2db0758 by lamont
fix two strings missing in en and fr localization
(commit: 6a6fbb1)
The file was modified Localization/en-us.cfg (diff)
The file was modified Localization/fr-fr.cfg (diff)
Commit c767cd8c8de514f6ca108b9ee8c5602d8e54fc9b by lamont
Commit fixes the bug from issue #2048

The bug occurs when using the autoascent feature for
negative inclination orbits. Namely, the circularization burn was
explicitly trying to achieve the _abs(inclination)_ instead of the target.

The bug was fixed by removing the `Math.Abs()` from the
OrbitalManeuverCalculator.DeltaVToChangeInclination input.
(commit: c767cd8)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
Commit 6f6320af837908b46ab294fb95a72951d588c287 by lamont
Fix clamping of attach altitude

It should be between peR and apR (if apR > 0). Also clamp apR to be <0
or >= peR.
(commit: 6f6320a)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/Properties/AssemblyInfo.cs (diff)