Set flux approximation#

void uz_CurrentControl_set_flux_approx(uz_CurrentControl_t *self, uz_3ph_dq_t flux_approx_real, uz_3ph_dq_t flux_approx_reference)#

Function to change the flux-linkage value during runtime.

Parameters:
  • self – uz_CurrentControl_t instance

  • flux_approx_real – new flux-linkage value for measured current.

  • flux_approx_reference – new flux-linkage for reference current.

Listing 89 Example function call to set the approximated flux linkages in a CurrentControl instance.#
1int main(void) {
2struct uz_CurrentControl_config config = {0};
3struct uz_3ph_dq_t flux_approx_real = {.d = 0.00038f, .q = 0.0018f, .zero = 0.0f};
4struct uz_3ph_dq_t flux_approx_reference = {.d = 0.00040f, .q = 0.0019f, .zero = 0.0f};
5uz_CurrentControl_set_flux_approx(instance,flux_approx_real,flux_approx_reference);
6}

Description#

This function sets the parameters of the approximated flux for usage in other CurrentControl functions. To calculate the flux approximations see Flux approximation .