Set new Ki function#
-
void uz_SpeedControl_set_Ki(uz_SpeedControl_t *self, float new_Ki)#
Function to change the Ki-value of the PI-Controller during runtime.
- Parameters:
self – pointer to uz_SpeedControl_t object
new_Ki – value for Ki. Must be greater or equal than 0.0f
Example#
1int main(void) {
2float new_Ki = 14.5f;
3 uz_SpeedControl_set_Ki(SC_instance, new_Ki);
4}
Description#
Updates the integral gain of the PI-Controller inside the SpeedControl during runtime. Asserts that the new value is greater or equal than 0.0f.