File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 3535 Derivative(; name, k = 1, T, x = 0.0)
3636
3737Outputs an approximate derivative of the input. The transfer function of this block is
38- Initial value of the state ``x`` can be set with `x`
3938
4039```
41- k k
42- ─ - ──────────
43- T 2 ⎛ 1⎞
44- T ⋅⎜s + ─⎟
45- ⎝ T⎠
40+ k k ks
41+ ─ - ─────── = ──────
42+ T sT² + T sT + 1
4643```
4744
4845and a state-space realization is given by `ss(-1/T, 1/T, -k/T, k/T)`
4946where `T` is the time constant of the filter.
5047A smaller `T` leads to a more ideal approximation of the derivative.
5148
49+ Initial value of the state ``x`` can be set with `x`.
50+
5251# Parameters:
5352
5453 - `k`: Gain
55- - `T`: [s] Time constants (T>0 required; T=0 is ideal derivative block)
54+ - `T`: [s] Time constant (T>0 required; T=0 is ideal derivative block)
5655
5756# Unknowns:
5857
You can’t perform that action at this time.
0 commit comments