Skip to content

Commit 92a1086

Browse files
committed
export some conversion functions
1 parent 710b5c2 commit 92a1086

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/ControlSystemsBase/src/pid_design.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export pid, pid_tf, pid_ss, pid_2dof, pid_ss_2dof, pidplots, leadlink, laglink, leadlinkat, leadlinkcurve, stabregionPID, loopshapingPI, placePI, loopshapingPID
2+
export convert_pidparams_from_parallel, convert_pidparams_from_standard, convert_pidparams_from_to, convert_pidparams_to_parallel, convert_pidparams_to_standard
23

34
"""
45
C = pid(param_p, param_i, [param_d]; form=:standard, state_space=false, [Tf], [Ts], filter_order=2, d=1/√(2))
@@ -739,6 +740,13 @@ end
739740

740741
"""
741742
convert_pidparams_from_to(kp, ki, kd, from::Symbol, to::Symbol)
743+
744+
Convert PID parameters from `from` form to `to` form.
745+
746+
The `from` and `to` forms can be chosen as one of the following
747+
* `:standard` - ``K_p(1 + 1/(T_i s) + T_d s)``
748+
* `:series` - ``K_c(1 + 1/(τ_i s))(τ_d s + 1)``
749+
* `:parallel` - ``K_p + K_i/s + K_d s``
742750
"""
743751
function convert_pidparams_from_to(kp, ki, kd, from::Symbol, to::Symbol)
744752
Kp, Ki, Kd = convert_pidparams_to_parallel(kp, ki, kd, from)

0 commit comments

Comments
 (0)