Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
orbital stability mode doesn't require target UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Crzyrndm committed Jun 13, 2015
1 parent fe097a8 commit 36c7106
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Binary file modified GameData/Pilot Assistant/PilotAssistant.dll
Binary file not shown.
11 changes: 7 additions & 4 deletions PilotAssistant/FlightModules/SurfSAS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,15 @@ private void drawSSASWindow(int id)

if (bArmed)
{
if (currentMode == VesselAutopilot.AutopilotMode.StabilityAssist)
if (!(FlightUIController.speedDisplayMode == FlightUIController.SpeedDisplayModes.Orbit && currentMode == VesselAutopilot.AutopilotMode.StabilityAssist))
{
SASList.Pitch.GetSAS(this).SetPoint = TogPlusNumBox("Pitch:", SASList.Pitch, vesRef.vesselData.pitch, 80, 70);
SASList.Hdg.GetSAS(this).SetPoint = TogPlusNumBox("Heading:", SASList.Hdg, vesRef.vesselData.heading, 80, 70);
if (currentMode == VesselAutopilot.AutopilotMode.StabilityAssist)
{
SASList.Pitch.GetSAS(this).SetPoint = TogPlusNumBox("Pitch:", SASList.Pitch, vesRef.vesselData.pitch, 80, 70);
SASList.Hdg.GetSAS(this).SetPoint = TogPlusNumBox("Heading:", SASList.Hdg, vesRef.vesselData.heading, 80, 70);
}
SASList.Bank.GetSAS(this).SetPoint = TogPlusNumBox("Roll:", SASList.Bank, vesRef.vesselData.bank, 80, 70);
}
SASList.Bank.GetSAS(this).SetPoint = TogPlusNumBox("Roll:", SASList.Bank, vesRef.vesselData.bank, 80, 70);

GUILayout.Box("", GUILayout.Height(10)); // seperator

Expand Down

0 comments on commit 36c7106

Please sign in to comment.