Skip to content

Commit

Permalink
fix: revert SISO to function syntax instead of mtkmodel syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
avinashresearch1 committed May 3, 2024
1 parent 13e2b1c commit b54c7b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Blocks/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ Single input single output (SISO) continuous system block.
- `u_start`: Initial value for the input
- `y_start`: Initial value for the output
"""
@mtkmodel SISO begin
@parameters begin
u_start = 0.0
y_start = 0.0
@component function SISO(; name, u_start = 0.0, y_start = 0.0)
pars = @parameters begin
u_start = u_start
y_start = y_start
end
@variables begin
vars = @variables begin
u(t), [guess = u_start, description = "Input of SISO system"]
y(t), [guess = y_start, description = "Output of SISO system"]
end
Expand All @@ -140,7 +140,7 @@ Single input single output (SISO) continuous system block.
@equations begin
u ~ input.u
y ~ output.u
end
return ODESystem(eqs, t, vars, pars; name = name, systems = [input, output])
end

"""
Expand Down

0 comments on commit b54c7b1

Please sign in to comment.