Hi,
I seems related to your other post Using temporal convolutional Neural networks in acados
You can augment your system dynamics by auxiliary states in order to “remember” control inputs from previous stages. This can be implemented with the discrete dynamics module.
Overall, the acados OCP solver is really made for the classic OCP structure, in which each control only acts on the current stage.
Best,
Jonathan