I have MPC type problem running on microcontroller. I would like to update the lower and upper bounds (ldata and udata) with the external signal data (from ADC channels). How can I achieve this?.
Like this is how my matlab function looks like,
This functionality has be implemented in microcontroller. Here
Ed, xk data will be received from ADC channels after OSQP solver provides the solution.
In code generated, I can see that ldata and udata values are present in workspace.h it is being used in osqp.c but how to keep updating the values in my case.