Jump to main content

##

# 3.5.7 mcRpeI_MechanicalSpeedGet

## C

    /* Get mechanical speed */
    float32_t mcRpeI_MechanicalSpeedGet(  const tmcRpe_Parameters_s * const pParameters );

## Summary

Get mechanical angle

## Description

This function is used to read the estimated mechanical 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 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.