MechJeb2

MechJeb2

4M Downloads

"guess does not bracket the root" exception from hohmann transfer

lamont-granquist opened this issue ยท 1 comments

commented
[EXC 12:53:30.415] ArgumentException: Brent's rootfinding method: guess does not bracket the root
        MuMech.Brent.Root (MuMech.BrentFun f, System.Double a, System.Double b, System.Double rtol, System.Double& x, System.Double& y, System.Object o, System.Int32 maxiter, System.Int32 sign) (at <a1d8247125e0454aa88adab450d412d2>:0)
        MuMech.OrbitalManeuverCalculator.DeltaVToChangePeriapsis (Orbit o, System.Double UT, System.Double newPeR) (at <a1d8247125e0454aa88adab450d412d2>:0)
        MuMech.OrbitalManeuverCalculator.DeltaVAndApsisPhaseAngleOfHohmannTransfer (Orbit o, Orbit target, System.Double UT, System.Double& apsisPhaseAngle) (at <a1d8247125e0454aa88adab450d412d2>:0)
        MuMech.OrbitalManeuverCalculator+<>c__DisplayClass12_0.<DeltaVAndTimeForHohmannTransfer>b__0 (System.Double testTime, System.Object ign) (at <a1d8247125e0454aa88adab450d412d2>:0)
        MuMech.Brent.Root (MuMech.BrentFun f, System.Double a, System.Double b, System.Double rtol, System.Double& x, System.Double& y, System.Object o, System.Int32 maxiter, System.Int32 sign) (at <a1d8247125e0454aa88adab450d412d2>:0)
        MuMech.OrbitalManeuverCalculator.DeltaVAndTimeForHohmannTransfer (Orbit o, Orbit target, System.Double UT, System.Double& burnUT) (at <a1d8247125e0454aa88adab450d412d2>:0)
        MuMech.OperationGeneric.MakeNodesImpl (Orbit o, System.Double universalTime, MuMech.MechJebModuleTargetController target) (at <a1d8247125e0454aa88adab450d412d2>:0)
        MuMech.Operation.MakeNodes (Orbit o, System.Double universalTime, MuMech.MechJebModuleTargetController target) (at <a1d8247125e0454aa88adab450d412d2>:0)
        UnityEngine.Debug:LogException(Exception)
        MuMech.Operation:MakeNodes(Orbit, Double, MechJebModuleTargetController)
        MuMech.MechJebModuleManeuverPlanner:WindowGUI(Int32)
        MuMech.DisplayModule:ProfiledWindowGUI(Int32)
        UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

starting from an 0.2 elliptical orbit to rendezvous with a circular one (this transfer will likely be very bad anyway, but it shouldn't throw, and should either come up with the best dumb guess it can, or else respond with a more useful error to the player).

commented

well this is gone now