3.5.11 mcRpeI_CarrierSignalInjection
C
/* Inject HF pulse to the DQ axis voltage */
void mcRpeI_CarrierSignalInjection(tmcRpe_Parameters_s * pParameters, tmcTypes_DQ_s * const pUdq );
Summary
Inject HF pulse to the DQ axis voltage.
Description
This function is used to injects a carrier signal into the PMSM motor to estimate rotor position during low-speed operation, particularly in hybrid estimators that combine High-Frequency Injection (HFI) and Phase-Locked Loop (PLL) techniques.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the rotor position estimation module parameter structure |
pUdq | A Pointer to the structure holding DQ voltages. |
Returns
Returns the estimated mechanical speed in rpm.
Example
// Define the rotor position estimation module data structure
tmcRpe_Parameters_s rpeParameters;
Float32_t speed;
/** Get mechanical speed */
speed = mcRpeI_MechanicalSpeedGet(&rpeParameters);
Remarks
None.