3.5.9 mcRpeI_ElectricalSpeedGet
C
/* Get electrical speed */
float32_t mcRpeI_ElectricalSpeedGet( const tmcRpe_Parameters_s * const pParameters );
Summary
Get electrical speed
Description
This function is used to read the estimated electrical speed from the rotor position estimation module's parameter structure in ZS/MT hybrid estimator mode (HFI & PLL).
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the rotor position estimation module parameter structure |
Returns
Returns the estimated electrical speed in rpm.
Example
// Define the rotor position estimation module data structure
tmcRpe_Parameters_s rpeParameters;
Float32_t speed;
/** Get electrical speed */
speed = mcRpeI_ElectricalSpeedGet(&rpeParameters);
Remarks
None.