Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1d9f60aa1110
Choose a base ref
...
head repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 828547f2774f
Choose a head ref

Commits on May 13, 2020

  1. Copy the full SHA
    57d1ec0 View commit details
  2. header

    eggrobin committed May 13, 2020
    Copy the full SHA
    a28708b View commit details

Commits on May 14, 2020

  1. Copy the full SHA
    4a755a1 View commit details
  2. flags

    eggrobin committed May 14, 2020
    Copy the full SHA
    d679c1e View commit details
  3. invert

    eggrobin committed May 14, 2020
    Copy the full SHA
    17c0e73 View commit details
  4. Fix the Frobenius spin.

    eggrobin committed May 14, 2020
    Copy the full SHA
    c104d14 View commit details
  5. many ways to approach this

    eggrobin committed May 14, 2020
    Copy the full SHA
    3f406a3 View commit details
  6. logger

    eggrobin committed May 14, 2020
    Copy the full SHA
    bcbc807 View commit details
  7. time and axes

    eggrobin committed May 14, 2020
    Copy the full SHA
    f73a0bb View commit details
  8. Copy the full SHA
    bd61de6 View commit details

Commits on May 15, 2020

  1. clean things up a bit

    eggrobin committed May 15, 2020
    Copy the full SHA
    45688aa View commit details
  2. Copy the full SHA
    f0cb3ca View commit details
  3. wat

    eggrobin committed May 15, 2020
    Copy the full SHA
    9440f9f View commit details

Commits on May 16, 2020

  1. normalization is hard

    eggrobin committed May 16, 2020
    Copy the full SHA
    1762ef2 View commit details
  2. Copy the full SHA
    9cdc0cc View commit details
  3. pick the slowest part

    eggrobin committed May 16, 2020
    Copy the full SHA
    98a9b95 View commit details
  4. units

    eggrobin committed May 16, 2020
    Copy the full SHA
    840b4ae View commit details
  5. str

    eggrobin committed May 16, 2020
    Copy the full SHA
    e7d5d2f View commit details
  6. Copy the full SHA
    8ef1fae View commit details
  7. remove the logger

    eggrobin committed May 16, 2020
    Copy the full SHA
    2cf8193 View commit details
  8. Copy the full SHA
    3cd38d8 View commit details
  9. Copy the full SHA
    1e91402 View commit details
  10. remove a deprecated test

    eggrobin committed May 16, 2020
    Copy the full SHA
    def4aec View commit details
  11. declaration

    eggrobin committed May 16, 2020
    Copy the full SHA
    d42c607 View commit details
  12. let’s not go there

    eggrobin committed May 16, 2020
    Copy the full SHA
    f48f7cb View commit details
  13. Remove the tests

    eggrobin committed May 16, 2020
    Copy the full SHA
    b175f10 View commit details
  14. Merge pull request #2574 from eggrobin/angular-momentum-accounting

    A new approach to conserving angular momentum
    eggrobin authored May 16, 2020
    Copy the full SHA
    828547f View commit details
Showing with 172 additions and 495 deletions.
  1. +5 −1 geometry/rotation_body.hpp
  2. +3 −7 ksp_plugin/interface_vessel.cpp
  3. +154 −290 ksp_plugin/pile_up.cpp
  4. +1 −22 ksp_plugin/pile_up.hpp
  5. +5 −14 ksp_plugin_adapter/main_window.cs
  6. +3 −158 ksp_plugin_test/pile_up_test.cpp
  7. +1 −3 serialization/journal.proto
6 changes: 5 additions & 1 deletion geometry/rotation_body.hpp
Original file line number Diff line number Diff line change
@@ -198,7 +198,11 @@ Bivector<double, FromFrame> Rotation<FromFrame, ToFrame>::RotationAxis() const {

template<typename FromFrame, typename ToFrame>
Angle Rotation<FromFrame, ToFrame>::RotationAngle() const {
return 2 * ArcTan(quaternion_.imaginary_part().Norm(),
// NOTE(egg): We intentionally use the single-parameter arctangent, as we want
// a result in [-π, π], thus an arctangent in [-π/2, π/2].
// The two-parameter arctangent, with a positive numerator, would lie in
// [0, π], and thus the result in [0, 2π].
return 2 * ArcTan(quaternion_.imaginary_part().Norm() /
quaternion_.real_part());
}

10 changes: 3 additions & 7 deletions ksp_plugin/interface_vessel.cpp
Original file line number Diff line number Diff line change
@@ -192,14 +192,10 @@ XYZ __cdecl principia__VesselVelocity(Plugin const* const plugin,
}

void __cdecl principia__SetAngularMomentumConservation(
bool const correct_orientation,
bool const correct_angular_velocity,
bool const thresholding) {
bool const conserve_angular_momentum) {
journal::Method<journal::SetAngularMomentumConservation> m(
{correct_orientation, correct_angular_velocity, thresholding});
ksp_plugin::PileUp::correct_orientation = correct_orientation;
ksp_plugin::PileUp::correct_angular_velocity = correct_angular_velocity;
ksp_plugin::PileUp::thresholding = thresholding;
{conserve_angular_momentum});
ksp_plugin::PileUp::conserve_angular_momentum = conserve_angular_momentum;
return m.Return();
}

Loading