Skip to content

Commit 1c5d9ab

Browse files
committed
docs: fix dc motor initialization
1 parent e64b532 commit 1c5d9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/tutorials/dc_motor_pi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ so that it can be represented as a system of `ODEs` (ordinary differential equat
7777

7878
```@example dc_motor_pi
7979
sys = structural_simplify(model)
80-
prob = ODEProblem(sys, unknowns(sys) .=> 0.0, (0, 6.0))
80+
prob = ODEProblem(sys, [sys.L1.i => 0.0,], (0, 6.0))
8181
sol = solve(prob)
8282
8383
p1 = plot(sol.t, sol[sys.inertia.w], ylabel = "Angular Vel. in rad/s",

0 commit comments

Comments
 (0)