Skip to content

Commit

Permalink
Merge pull request #832 from JuliaControl/albheim-patch-1
Browse files Browse the repository at this point in the history
remove instance with h where it should be Ts
  • Loading branch information
baggepinnen authored Apr 28, 2023
2 parents 1e1512e + b2dff5d commit a5db7d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ControlSystemsBase/src/pid_design.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,14 @@ KN \\dfrac{s + b}{s + bN} = K \\dfrac{1 + s/b}{1 + s/(bN)}
See also `leadlinkat` `laglink`
"""
function leadlink(b, N, K=1; h=nothing, Ts=nothing)
function leadlink(b, N, K=1; Ts=nothing)
Ts !== nothing && (Ts 0 || throw(ArgumentError("Negative `Ts` is not supported.")))
N > 1 || @warn "N should be ≥ 1 for the link to be phase advancing."
numerator = [1/b, 1]
denominator = [1/(b*N), 1]
gain = K
G = tf(gain*numerator,denominator)
return isnothing(Ts) ? G : c2d(G,Ts)

end

"""
Expand Down

0 comments on commit a5db7d9

Please sign in to comment.