function
Control.Mpc.Test.doubleIntegratorStep
Exact zero-order-hold discretization of a double integrator
Base classes
Follow base classes for inherited declarations; this page lists explicit declarations only.
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function doubleIntegratorStep
"Exact zero-order-hold discretization of a double integrator"
extends Control.Mpc.PartialDynamics;
algorithm
nextState := {
state[1] + samplePeriod * state[2]
+ 0.5 * samplePeriod * samplePeriod * controlInput[1],
state[2] + samplePeriod * controlInput[1]};
end doubleIntegratorStep;