Skip to content

Commit

Permalink
extend clockedTest
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Oct 13, 2015
1 parent b85c207 commit d6113ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmodelica/cppruntime/clockedTest.mos
Expand Up @@ -18,8 +18,8 @@ model DID \"Double Integrator Discrete-time\"
output Real y1, y2;
equation
ud = sample(u, Clock(dt));
xd1 = previous(xd1) + p * ud * dt;
xd2 = previous(xd2) + previous(xd1) * dt + 0.5 * ud * dt * dt;
xd1 = previous(xd1) + p * ud * interval(ud);
xd2 = previous(xd2) + previous(xd1) * interval(xd1) + 0.5 * ud * interval(ud)^2;
y1 = hold(previous(xd1));
y2 = hold(previous(xd2));
end DID;
Expand Down

0 comments on commit d6113ef

Please sign in to comment.