3.3.26.1 mcPosI_PositionControlInit

C


/* Initialize position control module */
void  mcPosI_PositionControlInit( tmcPos_Parameters_s * const pParameters )	

Summary

Initializes the position control module.

Description

This function initializes the position control module by setting up the necessary parameters and linking state variables. It updates the state variable structure, configures the module parameters using the parameter module structure, sets the PI control parameters, and sets the initialization flag.

Precondition

None.

Parameters

ParamDescription
pParametersA pointer to the position control module parameter structure

Returns

None

Example

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

/** Initialize parameters */
mcPosI_PositionControlInit(&posParameters);;
    

Remarks

None.