Beispiel #1
0
 public AttitudeController(Vessel vessel)
 {
     this.vessel      = new Services.Vessel(vessel);
     ReferenceFrame   = this.vessel.SurfaceReferenceFrame;
     StoppingTime     = new Vector3d(0.5, 0.5, 0.5);
     DecelerationTime = new Vector3d(5, 5, 5);
     AttenuationAngle = new Vector3d(1, 1, 1);
     RollThreshold    = 5;
     AutoTune         = true;
     Overshoot        = new Vector3d(0.01, 0.01, 0.01);
     TimeToPeak       = new Vector3d(3, 3, 3);
     Start();
 }
Beispiel #2
0
 internal AutoPilot(global::Vessel vessel)
 {
     if (!engaged.ContainsKey(vessel.id))
     {
         engaged [vessel.id] = null;
     }
     vesselId           = vessel.id;
     attitudeController = new AttitudeController(vessel);
     this.vessel        = new Services.Vessel(vessel);
     throttleController = new PIDController(0);
     maxAcc             = -1;
     throttleParameter  = 0.5;
     throttleController.SetParameters(0, throttleParameter, 0, -1.0d, 0.0d);
 }