Jump to main content

##

# 3.5.10 mcRpeI_ElectricalAngleGet

## C

    /* Get electrical angle */
    float32_t mcRpeI_ElectricalAngleGet(  const tmcRpe_Parameters_s * const pParameters );

## Summary

Get electrical angle

## Description

This function is used to read the estimated electrical angle 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 angle in rad per sec.

## Example

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

## Remarks

None.