3.3.26.3 mcPosI_PositionControlManual

C


/* Perform manual position control */
void mcPosI_PositionControlManual(  const tmcPos_Parameters_s * const pParameters,
                                                         const float32_t  Out )
	

Summary

Perform the position control operation in manual mode.

Description

This function updates the position control module output to a specified value in manual mode. Depending on the state of the system, it either update the PI controller output (n_ref) to a specified value or resets the PI controller.

Precondition

None.

Parameters

ParamDescription
pParametersA pointer to the position control module parameter structure.
OutOutput speed reference value for manual control.

Returns

None

Example

// Define the position control module data structure
tmcPos_Parameters_s posParameters;
float32_t nref = 500.0f;
/* Position control - manual mode */
mcPosI_PositionControlManual(&posParameters, nref);
    

Remarks

None.