3.3.18.12 mcFlxI_MTPAInit

C


/* Initialize MTPA module */
void  mcFlxI_FluxWeakeningInit( tmcFlx_Parameters_s * const pParameters )	

Summary

Initializes the MTPA module

Description

This function initializes the MTPA module by setting up the necessary parameters and linking state variables. It updates the state variable structure, reads the motor parameters from the parameter module structure, updates the Ldq table and back EMF constant, and sets the initialization flag.

Precondition

None.

Parameters

ParamDescription
pParametersA pointer to the flux control module structure, which includes the MTPA, flux weakening, and flux control parameters.

Returns

None

Example

// Define the flux module data structure
tmcFlx_Parameters_s fluxParameters;

/** Initialize parameters */
mcFlxI_FluxWeakeningInit(&fluxParameters);
    

Remarks

None.