Skip to content

Commit 6b6f9bb

Browse files
Merge pull request #438 from SciML/baggepinnen-patch-1
Clarify `Nd` parameter description in docstrings
2 parents d784769 + 58bfdce commit 6b6f9bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Blocks/continuous.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Text-book version of a PID-controller without actuator saturation and anti-windu
282282
- `k`: Gain
283283
- `Ti`: [s] Integrator time constant (Ti>0 required). If set to false, no integral action is used.
284284
- `Td`: [s] Derivative time constant (Td>0 required). If set to false, no derivative action is used.
285-
- `Nd`: [s] Time constant for the derivative approximation (Nd>0 required; Nd=0 is ideal derivative).
285+
- `Nd`: [s] Maximum derivative gain (inverse of filter time constant, Nd>0 required; Nd=0 is ideal derivative).
286286
- `int__x`: Initial value for the integrator.
287287
- `der__x`: Initial value for the derivative state.
288288
@@ -441,7 +441,7 @@ where the transfer function for the derivative includes additional filtering, se
441441
- `Td`: [s] Derivative time constant. Set to `false` to turn off derivative action.
442442
- `wp`: [0,1] Set-point weighting in the proportional part.
443443
- `wd`: [0,1] Set-point weighting in the derivative part.
444-
- `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.
444+
- `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.
445445
- `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`.
446446
- `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`.
447447

0 commit comments

Comments
 (0)