Jump to main content

##

# 3.3.25.6 mcTorI_TorqueControlReset

## C

    /* Reset torque control module */
    void mcTorI_TorqueControlReset( const tmcTor_Parameters_s * const pParameters )

## Summary

Resets the torque control module.

## Description

This function resets the torque control module by linking the state variables and resetting the associated PI controller. It achieves by calling the `mcUtils_PiControlReset` function with a zero setpoint and PI controller state structure.

## Precondition

None.

## Parameters

Param | Description
--- | ---
pParameters | A pointer to the torque control module parameter structure

## Returns

None

## Example

    // Define the torque module data structure
    tmcTor_Parameters_s torqParameters;

    /** Reset torque control module */
    mcTorI_TorqueControlReset(&torqParameters);

## Remarks

None.