Jump to main content

##

# 3.3.26.6 mcPosI_PositionControlReset

## C

    /* Reset position control module */
    void  mcPosI_PositionControlReset( const tmcPos_Parameters_s * const pParameters )

## Summary

Resets the position control module to its initial state.

## Description

This function resets the position 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 position control module parameter structure

## Returns

None

## Example

    // Define the position control module data structure
    tmcPos_Parameters_s posParameters;

    /** Reset position control module */
     mcPosI_PositionControlReset(&posParameters);

## Remarks

None.