Change MPC controller sample
MPCobj = d2d(MPCobj,Ts)
The d2d function changes the sample time of the MPC controller MPCobj to Ts. All models are sampled or resampled as soon as the QP matrices must be computed, for example when sim or mpcmove are called.
d2d
MPCobj
Ts
sim
mpcmove
mpc | set
mpc
set