Set new Kp function#

void uz_PI_Controller_set_Kp(uz_PI_Controller *self, float new_Kp)#

Function to change the Kp-value of the PI-Controller during runtime.

Parameters:
  • self – uz_PI_Controller instance

  • new_Kp – new value for Kp. Must be greater or equal than 0.0f

Example#

Listing 128 Example function call. PI-Instance via init-function#
1#include "uz_piController.h"
2int main(void) {
3float new_Kp = 14.5f;
4   uz_PI_Controller_set_Kp(PI_instance, new_Kp);
5}

Description#

Updates the proportional gain of the PI-Controller during runtime. Asserts that the new value is greater or equal than 0.0f.