Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First, on the command line:
- LoadAssembly("MuMechLib.dll");
- using MuMech;
- main program:
- public class Program {
- public static void Test() {
- MechJebCore c = FlightGlobals.ActiveVessel.GetMasterMechJeb();
- MechJebModuleDockingAutopilot a = c.GetComputerModule<MechJebModuleDockingAutopilot>();
- c.rcs.enabled = false;
- c.rcs.Kp = 0.3;
- c.rcs.Ki = 0.08;
- c.rcs.Kd = 0.02;
- c.rcs.enabled = true;
- a.enabled = false;
- a.Kp = 1;
- a.Ki = 0;
- a.Kd = 0;
- a.enabled = true;
- //c.rcs.SetTargetWorldVelocity(c.vesselState.velocityVesselOrbit);
- }
- }
- afterwards, to refresh in the command line:
- Program.Test();
Advertisement
Add Comment
Please, Sign In to add comment