Skip to content
Success

Changes

Summary

  1. Tweak DecouplingAnalyzer algorithm (commit: cbd3964) (details)
Commit cbd396424c627d1376c1c007b6a1429fec6eb719 by lamont
Tweak DecouplingAnalyzer algorithm

As we walk through the vessel we should never decrease the
decoupledInStage value to a lower value based on the inverseStage of
the decoupler.

If that happens then what we've done is fire a decoupler that is already
decoupled.  In that case the decoupler is rendered "sterile" and is
treated like just another part.

This is a departure from old behavior, but is necessary to get some
analysis to be correct, and to agree with the autostaging behavior of
mechjeb (and to make PVG work correctly).
(commit: cbd3964)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)