Esempio n. 1
0
 public override void OnStart(PartModule.StartState state)
 {
     AccelerationPIDController = new PIDController(AccKp, AccKi, AccKd);
     PitchPIDController        = new PIDController(PitKp, PitKi, PitKd);
     RollPIDController         = new PIDController(RolKp, RolKi, RolKd);
     YawPIDController          = new PIDController(YawKp, YawKi, YawKd);
 }
        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)
 {
     AccelerationPIDController = new PIDController(AccKp, AccKi, AccKd);
     VertSpeedPIDController    = new PIDController(VerKp, VerKi, VerKd);
     RollPIDController         = new PIDController(RolKp, RolKi, RolKd);
     YawPIDController          = new PIDController(YawKp, YawKi, YawKd);
 }
Esempio n. 4
0
        public override void OnStart(PartModule.StartState state)
        {
            preventingUnstableIgnitionsMessage = new ScreenMessage(Localizer.Format("#MechJeb_Ascent_srcmsg1"), 2f, ScreenMessageStyle.UPPER_CENTER);//"<color=orange>[MechJeb]: Killing throttle to prevent unstable ignition</color>"
            pid = new PIDController(0.05, 0.000001, 0.05);
            users.Add(this);

            base.OnStart(state);
        }
        public override void OnStart(PartModule.StartState state)
        {
            preventingUnstableIgnitionsMessage = new ScreenMessage("<color=orange>[MechJeb]: Killing throttle to prevent unstable ignition</color>", 2f, ScreenMessageStyle.UPPER_CENTER);
            pid = new PIDController(0.15, 0.000001, 0.01, 1D, 0D);
            users.Add(this);

            base.OnStart(state);
        }
Esempio n. 6
0
 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)
        {
            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 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(0.05, 0.000001, 0.05);
     speedPID   = new PIDController(5, 0.001, 1);
     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;
     }
     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);
        }
Esempio n. 13
0
 public override void OnModuleEnabled()
 {
     core.rcs.users.Add(this);
     core.attitude.users.Add(this);
     lateralPID = new PIDController(Kp, Ki, Kd);
 }
Esempio n. 14
0
 public MechJebModuleDockingAutopilot(MechJebCore core)
     : base(core)
 {
     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;
			}
			
//			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);
 }