/// <summary>
 /// Converting CentumPID to Noninteractive Controller Algorithm.
 /// Only for P or PI controller.
 /// </summary>
 /// <param name="ctr">CentumPID Controller Algorithm </param>
 public void Convert(ControllerCentumPID ctr)
 {
     if (ctr.D == 0)
     {
         P = 100 / ctr.P;
         I = ctr.I;
         D = 0;
     }
 }
예제 #2
0
 /// <summary>
 /// Converting CentumPID to Parallel Controller Algorithm.
 /// </summary>
 /// <param name="ctr">CentumPID Controller Algorithm </param>
 public void CentumPIDToParallel(ControllerCentumPID ctr)
 {
     P = 100 / ctr.P;
     I = 100 / (ctr.P * ctr.I);
     D = 100 * ctr.D / ctr.P;
 }
 /// <summary>
 /// Converting CentumPID to Noninteractive Controller Algorithm.
 /// </summary>
 /// <param name="ctr">CentumPID Controller Algorithm </param>
 public void Convert(ControllerCentumPID ctr)
 {
     P = 100 / ctr.P;
     I = ctr.I;
     D = ctr.D;
 }