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

RFC: Remove zero initialization on Integrator, Derivative, and FirstOrder #308

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 5 additions & 5 deletions src/Blocks/continuous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Initial value of integrator state ``x`` can be set with `x`

# Unknowns:

- `x`: State of Integrator. Defaults to 0.0.
- `x`: State of Integrator.
"""
@mtkmodel Integrator begin
@extend u, y = siso = SISO()
@variables begin
x(t) = 0.0, [description = "State of Integrator"]
x(t), [description = "State of Integrator"]
end
@parameters begin
k = 1, [description = "Gain"]
Expand Down Expand Up @@ -55,7 +55,7 @@ Initial value of the state ``x`` can be set with `x`.

# Unknowns:

- `x`: Unknown of Derivative. Defaults to 0.0.
- `x`: Unknown of Derivative.

# Connectors:

Expand All @@ -65,7 +65,7 @@ Initial value of the state ``x`` can be set with `x`.
@mtkmodel Derivative begin
@extend u, y = siso = SISO()
@variables begin
x(t) = 0.0, [description = "Derivative-filter state"]
x(t), [description = "Derivative-filter state"]
end
@parameters begin
T = T, [description = "Time constant"]
Expand Down Expand Up @@ -122,7 +122,7 @@ See also [`SecondOrder`](@ref)
lowpass = true
end
@variables begin
x(t) = 0.0, [description = "State of FirstOrder filter"]
x(t), [description = "State of FirstOrder filter"]
end
@parameters begin
T = T, [description = "Time constant"]
Expand Down
Loading