/// <summary>
 /// Optimize a controller for a specific control loop
 /// </summary>
 /// <param name="control_loop">The PT2-control (with damping smaller-equal 1) loop in your Schematic</param>
 /// <param name="controller">The PI-controller you want to optimize</param>
 public static void Controller(PT2_wdse1 control_loop, Controller_PI controller)
 {
     controller._Vr = (2*control_loop._d*control_loop._d-1)/control_loop._Vs;
     controller._Tn = (control_loop._T / control_loop._d) * (2 - 1 / (control_loop._d * control_loop._d));
     controller.recalc_coefficients();
 }
 /// <summary>
 /// Optimize a controller for a specific control loop
 /// </summary>
 /// <param name="control_loop">The PT2-control (with damping smaller-equal 1) loop in your Schematic</param>
 /// <param name="controller">The I-controller you want to optimize</param>
 public static void Controller(PT2_wdse1 control_loop, Controller_I controller)
 {
     controller._Ti = 4*control_loop._d*control_loop._T*control_loop._Vs;
     controller.recalc_coefficients();
 }