public MechJebModuleDockingAutopilot(MechJebCore core)
     : base(core)
 {
     lateralPID = new PIDController(Kp, Ki, Kd);
 }
 public override void OnModuleEnabled()
 {
     core.rcs.users.Add(this);
     core.attitude.users.Add(this);
     lateralPID = new PIDController(Kp, Ki, Kd);
 }
 public override void OnStart(PartModule.StartState state)
 {
     headingPID = new PIDController(hPIDp, hPIDi, hPIDd);
     speedPID = new PIDController(sPIDp, sPIDi, sPIDd);
     if (HighLogic.LoadedSceneIsFlight && orbit != null) {
         lastBody = orbit.referenceBody;
     }
     base.OnStart(state);
 }
        public override void OnStart(PartModule.StartState state)
        {
            pid = new PIDController(0.05, 0.000001, 0.05);
            users.Add(this);

            base.OnStart(state);
        }
		public override void OnStart(PartModule.StartState state)
		{
			headingPID = new PIDController(hPIDp, hPIDi, hPIDd);
			speedPID = new PIDController(sPIDp, sPIDi, sPIDd);
			
			if (HighLogic.LoadedSceneIsFlight && orbit != null)
			{
				lastBody = orbit.referenceBody;
			}
			
//			MechJebRouteRenderer.NewLineRenderer(ref line);
//			line.enabled = false;
			
			GameEvents.onVesselWasModified.Add(OnVesselModified);
			
			base.OnStart(state);
		}
 public override void OnStart(PartModule.StartState state)
 {
     headingPID = new PIDController(0.05, 0.000001, 0.05);
     speedPID = new PIDController(5, 0.001, 1);
     base.OnStart(state);
 }