Skip to content
Success

Changes

Summary

  1. Fix inverse rotation maneuver bugs (commit: 703e9ff) (details)
Commit 703e9ffdeaff7aa685e05be161a3b60d60ba0211 by lamont
Fix inverse rotation maneuver bugs

GetOrbitalStateVectorsAtUT() is particularly whack in the way that it
applies the inverse rotation constructed at a future time via using
Planetarium.ZupAtT().  That means that for the most part it is only
useful for constructing values which can only be compared to other
vectors constructed at the same time.  This bug only occurs when the
vessel is below the inverse rotation threshold, though, so most of
the time works fine when there's no rotation being applied.

The changes to RightHandedStateVectorsAtUT mean that we apply our
own rotation in the current frames rotation to get RH rotating
vectors.  This is consistent with the old API, but should probably
be retired and everything migrated to RH non-rotating vectors now
that I can see how to get them out of the API correctly.

This may also fix other bugs in consumers of the underlying
maneuvers class (e.g. rendezvous autopilot, etc).

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 703e9ff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)