Set new max modulation index#
-
void uz_CurrentControl_set_max_modulation_index(uz_CurrentControl_t *self, float max_modulation_index)#
Function to change the max_modulation_index of the Space Vector Limitation during runtime.
- Parameters:
self – uz_CurrentControl_t instance
max_modulation_index – Max possible modulation index for the chosen modulation method. I.e. 1/sqrt(3) for Space-Vector-Modulation
Example#
1int main(void) {
2 float max_modulation_index = 1.0f/sqrtf(3.0f);
3 uz_CurrentControl_set_max_modulation_index(CC_instance, max_modulation_index);
4}
Description#
Gives the option to change the max modulation index during runtime. This is necessary for the included Space vector limitation . The new value will be asserted and should be larger than 0.0f.