Set new Ki function#

void uz_PI_Controller_set_Ki(uz_PI_Controller *self, float new_Ki)#

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

Parameters:
  • self – uz_PI_Controller instance

  • new_Ki – new value for Ki. Must be greater or equal than 0.0f

Example#

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

Description#

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