Skip to content
Failed

Changes

Summary

  1. Overhaul of ReturnFromMoon initial guesser (commit: a61ca04) (details)
Commit a61ca041950f24c7a9f93f493f5ddcb3c122aa81 by lamont
Overhaul of ReturnFromMoon initial guesser

It now uses Brent's minimization algorithm to try to guess the
inclination of the return ellipse and if it is type I or type II
return orbit.

Restored the 1/2 time midpoint constraints since that helps
convergence speed in the hyperbolic initial conditions case and
seems to improve other ones as well.

This also now finds some better solutions as evidenced by the
one test which dropped from 1520 m/s to 1092 m/s.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a61ca04)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/Simple.cs (diff)
The file was modified MechJebLib/Functions/Astro.cs (diff)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)