Updates saturation limits#
-
void uz_SpeedControl_update_limits(uz_SpeedControl_t *self, float upper_limit, float lower_limit)#
Function to change the saturation limits of the PI-Controller during runtime.
- Parameters:
self – pointer to uz_SpeedControl_t object
upper_limit – new value for upper limit. Must be greater than lower limit
lower_limit – new value for lower limit
Example#
1int main(void) {
2float upper_limit = 14.5f;
3float lower_limit = -14.5f;
4 uz_SpeedControl_update_limits(SC_instance, upper_limit, lower_limit);
5}
Description#
Updates the limits of the saturation function during runtime.