Skip to content

Commit 3a7ccfb

Browse files
committed
fix: set 0.0 as the default of Integrator and Derivative
1 parent eae592b commit 3a7ccfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Blocks/continuous.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Initial value of integrator state ``x`` can be set with `x`
1515
1616
# Unknowns:
1717
18-
- `x`: State of Integrator (with initial guess of 0.0)
18+
- `x`: State of Integrator. Defaults to 0.0.
1919
"""
2020
@mtkmodel Integrator begin
2121
@extend u, y = siso = SISO()
2222
@variables begin
23-
x(t), [description = "State of Integrator", guess = 0.0]
23+
x(t) = 0.0, [description = "State of Integrator"]
2424
end
2525
@parameters begin
2626
k = 1, [description = "Gain"]
@@ -56,7 +56,7 @@ A smaller `T` leads to a more ideal approximation of the derivative.
5656
5757
# Unknowns:
5858
59-
- `x`: Unknown of Derivative (with initial guess of 0.0)
59+
- `x`: Unknown of Derivative. Defaults to 0.0.
6060
6161
# Connectors:
6262
@@ -66,7 +66,7 @@ A smaller `T` leads to a more ideal approximation of the derivative.
6666
@mtkmodel Derivative begin
6767
@extend u, y = siso = SISO()
6868
@variables begin
69-
x(t), [description = "Derivative-filter state", guess = 0.0]
69+
x(t) = 0.0, [description = "Derivative-filter state"]
7070
end
7171
@parameters begin
7272
T = T, [description = "Time constant"]

0 commit comments

Comments
 (0)