Automatic reference current generator#

Description#

This state is not an identification state. It merely assists the OnlineID state. It gives reference currents of a circular determined current map to quickly cycle through different operating points and identify flux map values over a wide operating range. It has an input for the speed so that only the appropriate q-current to the rotation direction is set. This prevents the DC source from having to deal with feedback. It is already embedded in the OnlineID object.

Necessary measurement values#

  • omega_m

AutoRefCurrents object#

typedef struct uz_ParaID_AutoRefCurrents_t uz_ParaID_AutoRefCurrents_t#

object definition for uz_ParaID_AutoRefCurrents_t

AutoRefCurrents config#

struct uz_ParaID_AutoRefCurrentsConfig_t#

configuration struct for AutoRefCurrents config specific settings

Public Members

boolean_T enableCRS#

flag to enable the state

boolean_T Reset#

flag to reset the state

real32_T iq_points#

amount of iq-points that will be cycled through

real32_T id_points#

amount of id-points that will be cycled through

real32_T max_current#

max combined current for the generator

AutoRefCurrents output#

struct uz_ParaID_AutoRefCurrents_output_t#

output struct for AutoRefCurrents

Public Members

uz_3ph_dq_t i_dq_ref#

reference dq-currents

AutoRefCurrents functions#

uz_ParaID_AutoRefCurrents_t *uz_AutoRefCurrents_init(void)#

Initializes the uz_ParaID_AutoRefCurrents_t object.

Returns:

uz_ParaID_AutoRefCurrents_t* pointer to object

void uz_AutoRefCurrents_step(uz_ParaID_AutoRefCurrents_t *self)#

steps the AutoRefCurrent state once

Parameters:
  • self – pointer to object

void uz_AutoRefCurrents_set_Config(uz_ParaID_AutoRefCurrents_t *self, uz_ParaID_AutoRefCurrentsConfig_t Config)#

Sets the config struct for the AutoRefCurrents.

Parameters:
  • self – pointer to uz_ParaID_AutoRefCurrents_t object

  • Config – configuration struct for AutoRefCurrents

void uz_AutoRefCurrents_set_ActualValues(uz_ParaID_AutoRefCurrents_t *self, uz_ParaID_ActualValues_t ActualValues)#

Sets the ActualValues struct for the AutoRefCurrents.

Parameters:
  • self – pointer to uz_ParaID_AutoRefCurrents_t object

  • ActualValues – struct for the measurement values

void uz_AutoRefCurrents_set_GlobalConfig(uz_ParaID_AutoRefCurrents_t *self, uz_ParaID_GlobalConfig_t GlobalConfig)#

Sets the GlobalConfig struct for the AutoRefCurrents.

Parameters:
  • self – pointer to uz_ParaID_AutoRefCurrents_t object

  • GlobalConfig – struct for the general settings of the ParameterID

void uz_AutoRefCurrents_set_ControlFlags(uz_ParaID_AutoRefCurrents_t *self, uz_ParaID_ControlFlags_t *ControlFlags)#

Sets the ControlFlags struct for the AutoRefCurrents.

Parameters:
  • self – pointer to uz_ParaID_AutoRefCurrents_t object

  • ControlFlags – pointer to the struct with the enable signals of the ParameterID

uz_ParaID_AutoRefCurrents_output_t *uz_AutoRefCurrents_get_output(uz_ParaID_AutoRefCurrents_t *self)#

Gets the pointer to the output struct of the AutoRefCurrents.

Parameters:
  • self – pointer to uz_ParaID_AutoRefCurrents_t object

Returns:

uz_ParaID_AutoRefCurrents_output_t* pointer to the output struct