3.5.3 mcRpeI_RotorPositionEstimEnable
C
/* Enable rotor position estimation(RPE) module */ void mcRpeI_RotorPositionEstimEnable( tmcRpe_Parameters_s * const pParameters )
Summary
Enable the rotor position estimation module
Description
This function enables the rotor position estimator (RPE) module by linking the state variables, initializing the module if necessary, and enabling the RPE module. It checks the module initialization state and initialize the module if it is not already initialized. Then, it enables the control module using state variables and sets the enable flag.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the rotor position estimation module parameter structure. |
Returns
None
Example
// Define the rotor position estimation module data structure
tmcRpe_Parameters_s rpeParameters;
/** Enable rotor position estimation module */
mcRpeI_RotorPositionEstimEnable(&rpeParameters);
Remarks
Note: Ensure that the
pParameters
structure
is properly updated with valid values before calling this function