public override void OnStart(PartModule.StartState state) { pid = new PIDControllerV2(0, 0, 0, 1, -1); setPIDParameters(); lastAct = Vector3d.zero; base.OnStart(state); }
public override void OnStart(PartModule.StartState state) { double Kd = 0.53 / Tf; double Kp = Kd / (3 * Math.Sqrt(2) * Tf); double Ki = Kp / (12 * Math.Sqrt(2) * Tf); pid = new PIDControllerV2(Kp, Ki, Kd, 1, -1); lastAct = Vector3d.zero; base.OnStart(state); }
public MechJebModuleRCSController(MechJebCore core) : base(core) { priority = 600; Kd = 0.53 / Tf; Kp = Kd / (3 * Math.Sqrt(2) * Tf); Ki = Kp / (12 * Math.Sqrt(2) * Tf); pid = new PIDControllerV2(Kp, Ki, Kd, 1, -1); }
public MechJebModuleRCSController(MechJebCore core) : base(core) { priority = 600; pid = new PIDControllerV2(0, 0, 0, 1, -1); }
public override void OnStart(PartModule.StartState state) { double Kd = 0.53 / Tf; double Kp = Kd / (3 * Math.Sqrt(2) * Tf); double Ki = Kp / (12 * Math.Sqrt(2) * Tf); pid = new PIDControllerV2(Kp, Ki, Kd, 1, -1); base.OnStart(state); }
public MechJebModuleRCSController(MechJebCore core) : base(core) { priority = 600; pid = new PIDControllerV2(Kp, Ki, Kd, 1, -1); }
public override void OnModuleEnabled() { pid = new PIDControllerV2(Kp, Ki, Kd, 1, -1); lastAct = Vector3d.zero; base.OnModuleEnabled(); }