Update saturation limits#

void uz_PI_Controller_update_limits(uz_PI_Controller *self, float upper_limit, float lower_limit)#

Function to change the saturation limits of the PI-Controller during runtime.

Parameters:
  • self – uz_PI_Controller instance

  • upper_limit – new value for upper limit. Must be greater than lower limit

  • lower_limit – new value for lower limit

Example#

Listing 139 Example function call. PI-Instance via init-function#
1#include "uz_piController.h"
2int main(void) {
3   float upper_limit = 5.0f;
4   float lower_limit = -5.0f;
5   PI_instance = uz_PI_Controller_update_limits(PI_instance, upper_limit, lower_limit);
6}

Description#

Updates the limits of the saturation function during runtime.