3.5.1 mcRpeI_RotorPositionEstimInit

C


/* Initialize rotor position estimation(RPE) module */
void  mcRpeI_RotorPositionEstimInit( tmcRpe_Parameters_s * const pParameters )	

Summary

Initialize rotor position estimation module

Description

This function initializes the rotor position estimator (RPE) module for a Permanent Magnet Synchronous Motor (PMSM) motor. It configures the necessary parameters and links the state variables to the module, ensuring that the estimator is correctly configured to begin operation.

Precondition

None.

Parameters

ParamDescription
pParametersA pointer to the rotor position estimation module parameter structure

Returns

None

Example

// Define the rotor position estimation module data structure
tmcRpe_Parameters_s rpeParameters;

/** Initialize parameters */
mcRpeI_RotorPositionEstimInit(&rpeParameters);
    

Remarks

Note: Ensure that the pParameters structure is properly updated with valid values before calling this function