Skip to content

Commit b7f1011

Browse files
refactor: improve type-stability of generate_control_function
1 parent 54bedf5 commit b7f1011

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/inputoutput.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ function generate_control_function(sys::AbstractSystem, inputs = unbound_inputs(
231231
# add to inputs for the purposes of io processing
232232
inputs = [inputs; disturbance_inputs]
233233
end
234-
234+
inputs = vec(unwrap_vars(inputs))
235235
dvs = unknowns(sys)
236-
ps = parameters(sys; initial_parameters = true)
236+
ps::Vector{SymbolicT} = parameters(sys; initial_parameters = true)
237237
ps = setdiff(ps, inputs)
238238
if disturbance_inputs !== nothing
239239
# remove from inputs since we do not want them as actual inputs to the dynamics

0 commit comments

Comments
 (0)