3.5.8 mcRpeI_MechanicalAngleGet

C


/* Get mechanical angle */
float32_t mcRpeI_MechanicalAngleGet(  const tmcRpe_Parameters_s * const pParameters );
	

Summary

Get mechanical angle

Description

This function is used to read the estimated mechanical angle from the rotor position estimation module's parameter structure in ZS/MT hybrid estimator mode (HFI & PLL).

Precondition

None.

Parameters

ParamDescription
pParametersA pointer to the rotor position estimation module parameter structure

Returns

Returns the estimated mechanical angle in rad per sec.

Example

// Define the rotor position estimation module data structure
tmcRpe_Parameters_s rpeParameters;
Float32_t angle;
/** Get mechanical angle  */
angle = mcRpeI_MechanicalAngleGet(&rpeParameters);
    

Remarks

None.