Skip to content
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

Convert pid parameters to :parallel #900

Merged
merged 8 commits into from
Nov 17, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update lib/ControlSystemsBase/src/pid_design.jl
Co-authored-by: Fredrik Bagge Carlson <baggepinnen@gmail.com>
  • Loading branch information
mzaffalon and baggepinnen committed Nov 13, 2023
commit c48eda3d859548ca1002ee2807ef0b4a731e7813
2 changes: 1 addition & 1 deletion lib/ControlSystemsBase/src/pid_design.jl
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ The `form` can be chosen as one of the following
"""
function convert_pidparams_from_standard(Kp, Ti, Td, form::Symbol)
if form === :standard
return @. (Kp, Ti, Td)
return Kp, Ti, Td
elseif form === :series
Δ = Ti * (Ti - 4 * Td)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines are broken for parameter arrays

Δ < 0 && throw(DomainError("The condition Ti^2 ≥ 4Td*Ti is not satisfied: the PID parameters cannot be converted to series form"))
Expand Down
Loading