Update the regulator implementation.
- Note
- This is a mandatory function for a regulator module. As of now, only a synchronous regulator is supported. This means that this function must be called at regular intervals. Furthermore, the underlying implementation must be able to correctly handle variations in delta_t between calls to this function.
- Parameters
-
| ctx | [in/out] Pointer to the context of the module implementation. |
| ref_val_r | [in] Pointer to the reference value. |
| meas_val_y | [in] Pointer to the measured value. |
| control_val_u | [out] Pointer to the control value. |
- Returns
- 0 if successful, error otherwise.