示例#1
0
 public PIDConstant(ComputeParams cps, PIDControlAlgorithm algor = PIDControlAlgorithm.PID, bool liveUpdEnable = false, bool reverse = false, double tcoef = 1)
 {
     this.ComputeParams     = cps;
     this.ControlAlgorithm  = algor;
     this.LiveUpdateEnable  = liveUpdEnable;
     this.Reverse           = reverse;
     this.TargetCoefficient = tcoef;
 }
示例#2
0
 public PIDConstant(double cp, double ti, double td, PIDControlAlgorithm algor = PIDControlAlgorithm.PID, bool liveUpdEnable = false, bool reverse = false, double tcoef = 1)
 {
     this.CP = cp;
     this.TI = ti;
     this.TD = td;
     this.ControlAlgorithm  = algor;
     this.LiveUpdateEnable  = liveUpdEnable;
     this.Reverse           = reverse;
     this.TargetCoefficient = tcoef;
 }