Skip to content

docs: cleaner and more concise transfer function of Derivative() #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/Blocks/continuous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,23 @@ end
Derivative(; name, k = 1, T, x = 0.0)

Outputs an approximate derivative of the input. The transfer function of this block is
Initial value of the state ``x`` can be set with `x`

```
k k
─ - ──────────
T 2 ⎛ 1⎞
T ⋅⎜s + ─⎟
⎝ T⎠
k k ks
─ - ─────── = ──────
T sT² + T sT + 1
```

and a state-space realization is given by `ss(-1/T, 1/T, -k/T, k/T)`
where `T` is the time constant of the filter.
A smaller `T` leads to a more ideal approximation of the derivative.

Initial value of the state ``x`` can be set with `x`.

# Parameters:

- `k`: Gain
- `T`: [s] Time constants (T>0 required; T=0 is ideal derivative block)
- `T`: [s] Time constant (T>0 required; T=0 is ideal derivative block)

# Unknowns:

Expand Down