KAS.KASModuleWinch.ChangePlugMode C# (CSharp) Method

ChangePlugMode() public method

public ChangePlugMode ( PlugState newPlugMode ) : void
newPlugMode PlugState
return void
        public void ChangePlugMode(PlugState newPlugMode)
        {
            if (headState == PlugState.PlugDocked || headState == PlugState.PlugUndocked) {
              KASModulePort orgPort = connectedPortInfo.module;
              UnplugHead(false);
              PlugHead(orgPort, newPlugMode, false);
            }
        }