Skip to content

Commit 5386e3a

Browse files
authored
Remove legacy gain parameter
No needed with MTKv11 with parameter bindings
1 parent bd1e2b8 commit 5386e3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Blocks/continuous.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ U(s) = k (1 + \\dfrac{1}{sT}) E(S)
241241
242242
See also [`LimPI`](@ref)
243243
"""
244-
@component function PI(; name, k = 1.0, T = 1.0, gainPI__k = nothing)
244+
@component function PI(; name, k = 1.0, T = 1.0)
245245
@symcheck T > 0 ||
246246
throw(ArgumentError("Time constant `T` has to be strictly positive"))
247247

@@ -253,7 +253,7 @@ See also [`LimPI`](@ref)
253253
systems = @named begin
254254
err_input = RealInput() # control error
255255
ctr_output = RealOutput() # control signal
256-
gainPI = Gain(; k = gainPI__k)
256+
gainPI = Gain(; k)
257257
addPI = Add()
258258
int = Integrator(k = 1 / T, x = 0.0)
259259
end

0 commit comments

Comments
 (0)