public override void Init()
 {
     base.Init();
     CFG.AP2.AddHandler(this, Autopilot2.ToOrbit);
     ToOrbit.AttachTCA(TCA);
     inclinationPID.setPID(C.InclinationPID);
 }
Exemplo n.º 2
0
 public override void Init()
 {
     base.Init();
     output_filter.Tau = C.LowPassF;
     translation_pid.setPID(C.ManualThrust.PID);
     needed_thrust_pid.setPID(C.NeededThrustPID);
     CFG.HF.AddSingleCallback(ControlCallback);
 }
 public TargetedToOrbitExecutor()
 {
     pitch.setPID(C.TargetPitchPID);
     pitch.Min = -AttitudeControlBase.C.MaxAttitudeError;
     pitch.Max = 0;
     throttle_correction.setPID(C.ThrottleCorrectionPID);
     norm_correction.setClamp(AttitudeControlBase.C.MaxAttitudeError);
     throttle_filter.Tau  = 1;
     angle2hor_filter.Tau = 1;
 }
 public ToOrbitExecutor() : base(null)
 {
     ErrorThreshold.Lower = ToOrbitAutopilot.C.Dtol / 10;
     ErrorThreshold.Upper = ToOrbitAutopilot.C.Dtol;
     pitch.setPID(C.PitchPID);
     pitch.setClamp(AttitudeControlBase.C.MaxAttitudeError);
     throttle.setPID(C.ThrottlePID);
     throttle.setClamp(0.5f);
     norm_correction.setPID(C.NormCorrectionPID);
     norm_correction.setClamp(AttitudeControlBase.C.MaxAttitudeError);
     TimeToApA.Value   = TrajectoryCalculator.C.ManeuverOffset;
     MinThrottle.Value = C.MinThrottle;
     MaxG.Value        = C.MaxG;
 }
 public void Init()
 {
     eStats = VSL.Engines.NoActiveEngines ?
              VSL.Engines.GetNearestEnginedStageStats() :
              VSL.Engines.GetEnginesStats(VSL.Engines.Active);
     pitch.setPID(TargetedToOrbitExecutor.C.TargetPitchPID);
     pitch.Min = -AttitudeControlBase.C.MaxAttitudeError;
     pitch.Reset();
     throttle.setPID(ToOrbitExecutor.C.ThrottlePID);
     throttle.setClamp(0.5f);
     throttle.Reset();
     throttle_correction.setPID(TargetedToOrbitExecutor.C.ThrottleCorrectionPID);
     throttle_correction.Reset();
     correction_started.Reset();
 }