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: 097adab32e43
Choose a base ref
...
head repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fa50a9961eb1
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 14, 2017

  1. Fix #1370

    eggrobin committed May 14, 2017
    Copy the full SHA
    fb5cdb9 View commit details
  2. Merge pull request #1378 from eggrobin/radial-autopilot

    RadialIn is radial out
    pleroy authored May 14, 2017
    Copy the full SHA
    fa50a99 View commit details
Showing with 9 additions and 2 deletions.
  1. +9 −2 ksp_plugin_adapter/ksp_plugin_adapter.cs
11 changes: 9 additions & 2 deletions ksp_plugin_adapter/ksp_plugin_adapter.cs
Original file line number Diff line number Diff line change
@@ -739,11 +739,18 @@ private void LateUpdate() {
case VesselAutopilot.AutopilotMode.Retrograde:
rsas_target_ = -prograde;
break;
// NOTE(egg): For reasons that are unlikely to become clear again,
// the button labeled with the radial in icon sets the autopilot
// mode to |RadialOut|, and vice-versa. As a result, we must set
// the target to the outwards radial (negative normal) vector if the
// mode is |RadialIn|. Contrast with the navball vectors above,
// which do not exhibit this inconsistency (thus where
// |radialInVector| is set to |radial|).
case VesselAutopilot.AutopilotMode.RadialIn:
rsas_target_ = radial;
rsas_target_ = -radial;
break;
case VesselAutopilot.AutopilotMode.RadialOut:
rsas_target_ = -radial;
rsas_target_ = radial;
break;
case VesselAutopilot.AutopilotMode.Normal:
rsas_target_ = normal;