Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A more stable angular momentum correction. #2533

Merged
merged 11 commits into from
Apr 18, 2020

Conversation

eggrobin
Copy link
Member

This appears to significantly improve the behaviour reported in #2519.

It is not perfect. In the save from #2519 (comment), while we get no uncontrolled spin-up, we get more oscillations than in stock, slowing the rocket down, so that it reaches the water without burning up.

Note that this adds back some traces and toggles for debugging. They will be hidden in a separate pull request (but I would like to keep the plumbing around for now; we may not be quite done with this issue yet).

ksp_plugin/pile_up.cpp Show resolved Hide resolved
ksp_plugin/interface_vessel.cpp Show resolved Hide resolved
ksp_plugin/plugin.cpp Outdated Show resolved Hide resolved
ksp_plugin/plugin.cpp Outdated Show resolved Hide resolved
ksp_plugin_adapter/main_window.cs Outdated Show resolved Hide resolved
ksp_plugin/pile_up.cpp Outdated Show resolved Hide resolved
actual_equivalent_angular_velocity,
actual_pile_up_equivalent_rotation.Forget<OrthogonalMap>()),
correct_angular_velocity ? actual_equivalent_angular_velocity
: NonRotatingPileUp::nonrotating,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.

ksp_plugin/pile_up.cpp Show resolved Hide resolved
ksp_plugin/pile_up.cpp Outdated Show resolved Hide resolved
<< actual_equivalent_angular_velocity.Norm() /
(2 * π * Radian / quantities::si::Minute)
<< " rpm\n"
<< (correcting_orientation ? "CORRECTING ORIENTATION" : u8"—");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to yell?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YES

@pleroy pleroy added the LGTM label Apr 18, 2020
@eggrobin eggrobin merged commit 78b0192 into mockingbirdnest:master Apr 18, 2020
@nepphhh
Copy link

nepphhh commented Apr 20, 2020

Tested the binaries in KSP v1.8.1 in a mess of an RP-1 career/dev mod environment. Thanks to egg for providing them.

Results: https://gfycat.com/jubilantmeaslydartfrog

Report:

  1. The mad spinning is no more.
  2. There are some [new] strange wobbles, an intermediate-axis roll after burnout as you exit atmosphere. The onset of this effect is fairly defined, and it can be easily spotted at ~46 km in the video above.
  3. There is the old mild roll on ascent. This has been tracked down to be PF's fault. To what extent it may also be responsible for point 2 is anybody's guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants