You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://julialang.zulipchat.com/#narrow/stream/279055-sciml-bridged)
[](https://github.com/SciML/ColPrac)
Copy file name to clipboardExpand all lines: src/Blocks/continuous.jl
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ Critical damping corresponds to `d=1`, which yields the fastest step response wi
111
111
112
112
# Parameters:
113
113
- `k`: Gain
114
-
- `w`: Angular frequency
114
+
- `w`: [`rad/s`] Angular frequency
115
115
- `d`: Damping
116
116
- `x_start`: Initial value of state (output)
117
117
- `xd_start`: Initial value of derivative of state (output)
@@ -305,7 +305,7 @@ where the transfer function for the derivative includes additional filtering, se
305
305
- `wd`: [0,1] Set-point weighting in the derivative part.
306
306
- `Nd`: [1/s] Derivative limit, limits the derivative gain to Nd/Td. Reasonable values are ∈ [8, 20]. A higher value gives a better approximation of an ideal derivative at the expense of higher noise amplification.
307
307
- `Ni`: `Ni*Ti` controls the time constant `Ta` of anti-windup tracking. A common (default) choice is `Ta = √(Ti*Td)` which is realized by `Ni = √(Td / Ti)`. Anti-windup can be effectively turned off by setting `Ni = Inf`.
308
-
` `gains`: If `gains = true`, `Ti` and `Td` will be interpreted as gains with a fundamental PID transfer function on parallel form `ki=Ti, kd=Td, k + ki/s + kd*s`
308
+
- `gains`: If `gains = true`, `Ti` and `Td` will be interpreted as gains with a fundamental PID transfer function on parallel form `ki=Ti, kd=Td, k + ki/s + kd*s`.
309
309
310
310
# Connectors:
311
311
- `reference`
@@ -438,7 +438,7 @@ function StateSpace(; A, B, C, D = nothing, x_start = zeros(size(A, 1)), name)
438
438
end
439
439
@named input =RealInput(nin = nu)
440
440
@named output =RealOutput(nout = ny)
441
-
@variables x[1:nx](t)= x_start
441
+
@variablesx(t)[1:nx] = x_start
442
442
# pars = @parameters A=A B=B C=C D=D # This is buggy
443
443
eqs = [ #FIXME: if array equations work
444
444
[Differential(t)(x[i]) ~sum(A[i, k] * x[k] for k in1:nx) +
0 commit comments