3.5.4 mcRpeI_ParametersSet
C
/* Set rotor position estimation parameters */
void mcRpeI_ParametersSet(tmcRpe_Parameters_s * const pParameters )
Summary
This function sets the parameters for rotor position estimation module
Description
This function initializes and configure the parameters for the Rotor Position Estimation (RPE) module in a ZS/MT hybrid estimator. It configures various thresholds, motor parameters, and tracking loop settings required for the position estimation and correction algorithm
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;
/** Initialize parameters */
mcRpeI_ParametersSet(&rpeParameters);
Remarks
Note: Ensure that the
pParameters
structure
is properly updated with valid values before calling this function