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

The surface navball #1263

Merged

Conversation

eggrobin
Copy link
Member

Which is flipped, as it happens.

@pleroy pleroy added the LGTM label Mar 15, 2017
@pleroy pleroy merged commit 78eb6dc into mockingbirdnest:Cardano Mar 15, 2017
@@ -70,6 +71,7 @@ using physics::KeplerianElements;
using physics::RotatingBody;
using physics::RigidMotion;
using physics::RigidTransformation;
using physics::BodySurfaceFrameField;
Copy link
Member

Choose a reason for hiding this comment

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

Alphabetize.

auto plotting_frame_as_body_surface_dynamic_frame =
dynamic_cast<BodySurfaceDynamicFrame<Barycentric, Navigation>*>(
&*plotting_frame_);
if (plotting_frame_as_body_surface_dynamic_frame != nullptr) {
Copy link
Member

Choose a reason for hiding this comment

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

Use == and swap the branches.

@@ -908,24 +910,29 @@ std::unique_ptr<FrameField<World, Navball>> Plugin::NavballFrameField(
public:
Copy link
Member

Choose a reason for hiding this comment

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

Add TODO(phl): Clean up this mess!.

CoordinateFrameField<Navigation, RightHandedNavball>>(),
sun_world_position);
std::unique_ptr<FrameField<Navigation, RightHandedNavball>> frame_field;
auto plotting_frame_as_body_surface_dynamic_frame =
Copy link
Member

Choose a reason for hiding this comment

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

const

@@ -42,8 +42,6 @@ public partial class PrincipiaPluginAdapter
private IntPtr plugin_ = IntPtr.Zero;

private bool display_patched_conics_ = false;
[KSPField(isPersistant = true)]
private bool fix_navball_in_plotting_frame_ = true;
Copy link
Member

Choose a reason for hiding this comment

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

This reminds me that I'll need to update the Wiki to reflect the new UI.

pleroy added a commit to pleroy/Principia that referenced this pull request Mar 15, 2017
eggrobin added a commit that referenced this pull request Mar 15, 2017
Comments on #1263 and make the tests pass.
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.

None yet

2 participants